e34ad1dbf0213b849c5c3ad6c6acf8b5fdea34ba
[gnulib.git] / ChangeLog
1 2011-02-04  Bruno Haible  <bruno@clisp.org>
2
3         mbsrtowcs: Prepare for new module mbsrtowwcs.
4         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5         * lib/mbsrtowcs.c: Include it.
6         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7
8 2011-02-04  Bruno Haible  <bruno@clisp.org>
9
10         vasnprintf: Reduce use of malloc for small format strings.
11         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12         (arguments): Add room for the first 7 arguments.
13         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14         (char_directives, u8_directives, u16_directives, u32_directives): Add
15         room for the first 7 directives.
16         * lib/printf-parse.c: Include <string.h>.
17         (PRINTF_PARSE): Change memory handling code so that it uses the first
18         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20         Reported by Pádraig Brady <P@draigbrady.com>.
21
22 2011-01-31  Eric Blake  <eblake@redhat.com>
23
24         dup2: work around Haiku bug
25         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
27         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28         * tests/test-dup2.c (main): Enhance test.
29
30 2011-01-31  Simon Josefsson  <simon@josefsson.org>
31
32         doc: off_t is not available in eglibc 2.11.2 stdio.h.
33         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
34         declared by eglibc 2.11.2.
35         * lib/stdio.in.h: Likewise.
36
37 2011-01-31  Eric Blake  <eblake@redhat.com>
38
39         ignore-value: add missing test dependency
40         * tests/test-ignore-value.c: Revert previous change; stdio.h
41         provides off_t.
42         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43
44 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
45
46         mktime: clarify long_int width checking
47         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
48         the top level, to make it clearer that the assumption about
49         long_int width is being checked.  See
50         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
51
52 2011-01-30  Simon Josefsson  <simon@josefsson.org>
53
54         ignore-value: Fix self-test.
55         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56
57 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58
59         TYPE_MAXIMUM: avoid theoretically undefined behavior
60         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
61         negative number, which the C Standard says has undefined behavior.
62         In practice this is not a problem, but might as well do it by the book.
63         Reported by Rich Felker and Eric Blake; see
64         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
65         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
66         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
69         * m4/stdint.m4 (gl_STDINT_H): Likewise.
70         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
71
72         mktime: #undef mktime before #defining it
73         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
74
75         mktime: systematically normalize tm_isdst comparisons
76         * lib/mktime.c (isdst_differ): New function.
77         (__mktime_internal): Use it systematically for all isdst comparisons.
78         This completes the fix for libc BZ #6723, and removes the need for
79         normalizing tm_isdst.  See
80         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
81         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
82
83         mktime: fix some integer overflow issues and sidestep the rest
84
85         This was prompted by a bug report by Benjamin Lindner for MinGW
86         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
87         His bug is due to signed integer overflow (0 - INT_MIN), and I
88         I scanned through mktime.c looking for other integer overflow
89         problems, fixing all the bugs I found.
90
91         Although the C Standard says the resulting code is still not safe
92         in the presence of integer overflow, in practice it should be good
93         enough for all real-world two's-complement implementations, except
94         for debugging environments that deliberately trap on integer
95         overflow (e.g., gcc -ftrapv).
96
97         * lib/mktime.c (WRAPV): New macro.
98         (SHR): Also check that long_int and time_t shift right in the
99         usual way, before using the fast-but-unportable method.
100         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
101         used.  The code already assumed two's complement, so there's
102         no need to test for alternatives.  All uses removed.
103         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
104         the C standard.  Problem reported by Rich Felker in
105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
106         (twos_complement_arithmetic): Also check long_int and time_t.
107         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
108         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
109         (__mktime_internal): Avoid integer overflow with unary subtraction
110         in two instances where -1 - X is an adequate replacement for -X,
111         since the calculations are approximate.
112
113 2011-01-29  Eric Blake  <eblake@redhat.com>
114
115         mktime: avoid infinite loop
116         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
117         type; behavior is still undefined but portable to all known targets.
118         Reported by Rich Felker.
119
120 2011-01-29  Simon Josefsson  <simon@josefsson.org>
121
122         rename, unlink, same-inode: Relicense.
123         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
124         * modules/unlink (License): Likewise.
125         * modules/same-inode (License): Likewise.
126
127 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
128
129         mktime: avoid problems on NetBSD 5 / i386
130         * lib/mktime.c (long_int): New type.  This works around a problem
131         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
132         but time_t is 64 bits, and where I expect the existing code is
133         wrong in some cases.
134         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
135         (ydhms_diff): Bring back the compile-time check for wide-enough
136         year and yday.
137
138         mktime: fix misspelling in comment
139         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
140         This merges all recent glibc changes of importance.
141
142 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
143
144         move-if-change: cope with concurrent mv of identical file.
145         * build-aux/move-if-change (CMPPROG): Accept environment
146         variable as an override for `cmp'.
147         (usage): Document CMPPROG.
148         Adjust comparison to drop stdout.  Cope with failure of mv if
149         the target file exists and is identical to the source, for
150         parallel builds.
151         Report from H.J. Lu against binutils in PR binutils/12283.
152
153 2011-01-28  Bruce Korb  <bkorb@gnu.org>
154
155         * users.txt: Mention sharutils.
156
157 2011-01-28  Simon Josefsson  <simon@josefsson.org>
158
159         * users.txt: Mention OATH Toolkit.
160
161 2011-01-27  Bruno Haible  <bruno@clisp.org>
162
163         Prepare for supporting FreeBSD 10.
164         * build-aux/config.libpath: Remove handling of freebsd1*.
165
166 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
167
168         Prepare for supporting FreeBSD 10.
169         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
170         match FreeBSD 10.0.
171
172 2011-01-27  Bruno Haible  <bruno@clisp.org>
173
174         vma-iter, get-rusage-as: Add OpenBSD support.
175         * modules/vma-iter (configure.ac): Test for mquery.
176         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
177         * lib/vma-iter.c: Include <sys/mman.h>.
178         (vma_iterate): Add an implementation based on mquery().
179         * lib/resource-ext.h (get_rusage_as): Update comments.
180         * lib/get-rusage-as.c: Likewise.
181         * lib/get-rusage-data.c: Likewise.
182
183 2011-01-26  Karl Berry  <karl@gnu.org>
184
185         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
186         variables to make it easier to override the makeinfo program used.
187
188 2011-01-26  Eric Blake  <eblake@redhat.com>
189
190         fcntl: work around Haiku F_DUPFD bugs
191         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
192         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
193         cloexec bit on duplication.
194         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
195
196 2011-01-26  Bruno Haible  <bruno@clisp.org>
197
198         Enable memory leak tests on AIX.
199         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
200         * tests/test-fprintf-posix3.c (main): Likewise.
201
202 2011-01-26  Bruno Haible  <bruno@clisp.org>
203
204         Tests for module 'get-rusage-data'.
205         * modules/get-rusage-data-tests: New file.
206         * tests/test-get-rusage-data.c: New file.
207
208         New module 'get-rusage-data'.
209         * lib/resource-ext.h (get_rusage_data): New declaration.
210         * lib/get-rusage-data.c: New file.
211         * modules/get-rusage-data: New file.
212
213 2011-01-25  Bruno Haible  <bruno@clisp.org>
214
215         get-rusage-as: Allow for easier testing.
216         * lib/resource-ext.h (get_rusage_as): Add comment.
217         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
218         (main): New function for interactive testing.
219
220 2011-01-25  Bruno Haible  <bruno@clisp.org>
221
222         vma-iter: Treat Haiku like BeOS.
223         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
224         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
225
226 2011-01-25  Eric Blake  <eblake@redhat.com>
227
228         c-stack: fix regression on cygwin when libsigsegv is present
229         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
230
231 2011-01-24  Bruno Haible  <bruno@clisp.org>
232
233         vma-iter: Avoid empty intervals.
234         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
235         on an empty interval.
236
237 2011-01-24  Jim Meyering  <meyering@redhat.com>
238
239         u64: remove unnecessary #include
240         * lib/u64.h: Don't include <stddef.h>.  It was not used.
241
242 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
243
244         Allow the user to avoid the GNULIB_TEST_* macros.
245         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
246
247 2011-01-23  Bruno Haible  <bruno@clisp.org>
248
249         New module 'vma-iter'.
250         * lib/vma-iter.h: New file.
251         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
252         * modules/vma-iter: New file.
253         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
254         for get_rusage_as_via_iterator.
255         (vma_iterate_callback): New function.
256         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
257         * modules/get-rusage-as (Depends-on): Add vma-iter.
258
259 2011-01-23  Bruno Haible  <bruno@clisp.org>
260
261         uninorm: Tweak includes.
262         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
263         Reported by Jim Meyering.
264
265 2011-01-23  Bruno Haible  <bruno@clisp.org>
266
267         get-rusage-as: Improve on NetBSD.
268         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
269         /proc, like on FreeBSD.
270
271 2011-01-23  Jim Meyering  <meyering@redhat.com>
272
273         xreadlink.h: remove unnecessary #include
274         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
275
276         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
277         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
278
279 2011-01-23  Bruno Haible  <bruno@clisp.org>
280
281         get-rusage-as: Fix bug.
282         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
283         original limit when aborting the first loop.
284
285 2011-01-23  Bruno Haible  <bruno@clisp.org>
286
287         wctype: Ensure valid C syntax.
288         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
289         unconditionally, instead of gl_NEXT_HEADERS conditionally.
290
291 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
292
293         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
295         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
296         as they are needed only for configure's test case.
297         This removes two unnecessary symbols from config.h.
298
299         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
300         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
302         AC_CHECK_HEADERS_ONCE on a header that we also invoke
303         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
304         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
305         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
306         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
307         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
308         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
309         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
311         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
312         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
313         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
314         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
315         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
316         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
317
318 2011-01-21  Eric Blake  <eblake@redhat.com>
319
320         maintainer-makefile: work with older git for submodule check
321         * top/maint.mk (public-submodule-commit): Rewrite to avoid
322         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
323         Reported by Matthias Bolte.
324
325         bootstrap: minor portability fixes
326         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
327         (usage): Omit leading capital and trailing . on help phrases, per
328         GNU Coding Standards.
329         (check_versions, top level): Prefix messages with script name.
330
331 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
332
333         bootstrap: support --no-git option
334         * build-aux/bootstrap: Add --no-git option, to be used when
335         --gnulib-srcdir points to the exact desired checkout.
336
337 2011-01-21  Eric Blake  <eblake@redhat.com>
338
339         strerror_r-posix: work with glibc 2.13
340         * lib/strerror_r.c (strerror_r): Fix return type.
341
342 2011-01-21  Pádraig Brady  <P@draigBrady.com>
343             Bruno Haible  <bruno@clisp.org>
344
345         uN_strstr: New unit tests.
346         * modules/unistr/u8-strstr-tests: New file.
347         * modules/unistr/u16-strstr-tests: New file.
348         * modules/unistr/u32-strstr-tests: New file.
349         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
350         * tests/unistr/test-u8-strstr.c: New file.
351         * tests/unistr/test-u16-strstr.c: New file.
352         * tests/unistr/test-u32-strstr.c: New file.
353
354 2011-01-21  Pádraig Brady  <P@draigBrady.com>
355             Bruno Haible  <bruno@clisp.org>
356
357         Make uN_strstr functions O(n) worst-case.
358         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
359         16-bit and 32-bit unit cases, use the unibyte algorithm from
360         lib/mbsstr.c.
361         * lib/unistr/u8-strstr.c: Include <string.h>.
362         (UNIT_IS_UINT8_T): New macro.
363         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
364         (U_STRLEN, U_STRNLEN): New macros.
365         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
366         (U_STRLEN, U_STRNLEN): New macros.
367         * modules/unistr/u8-strstr (Depends-on): Add strstr.
368         (configure.ac): Update required libunistring version.
369         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
370         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
371         malloca.
372         (configure.ac): Update required libunistring version.
373         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
374         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
375         malloca.
376         (configure.ac): Update required libunistring version.
377
378 2011-01-21  Pádraig Brady  <P@draigBrady.com>
379             Bruno Haible  <bruno@clisp.org>
380
381         Prepare for faster uN_strstr functions.
382         * lib/str-kmp.h: Support definable UNITs.
383         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
384         needle_len argument.
385         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
386         * lib/mbscasestr.c (mbscasestr): Likewise.
387
388 2011-01-21  Pádraig Brady <P@draigBrady.com>
389
390         malloca-tests: make faster by unsetting MALLOC_PERTURB_
391         * tests/test-malloca.c (main): Unset the environment variable
392         to greatly speed up the test.
393         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
394         * modules/malloca-tests: Depend on unsetenv.
395
396 2011-01-21  Pádraig Brady <P@draigBrady.com>
397
398         ignore-value: remove stdint dependency
399         * lib/ignore-value.h: Remove <stdint.h>
400         * modules/ignore-value: Remove stdint dependency.
401
402 2011-01-21  Jim Meyering  <meyering@redhat.com>
403
404         maint.mk: adjust variable name to be consistent with other gl_ vars
405         * top/maint.mk (gl_public_submodule_commit): Rename the variable
406         to be lower case.
407
408 2011-01-20  Jim Meyering  <meyering@redhat.com>
409
410         maint.mk: make "check" depend on public-submodule-commit by default
411         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
412
413 2011-01-20  Bruno Haible  <bruno@clisp.org>
414
415         mbfile, mbiter: Complete change from 2008-12-21.
416         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
417         * m4/mbiter.m4 (gl_MBITER): Likewise.
418
419 2011-01-20  Jim Meyering  <meyering@redhat.com>
420
421         init.sh: insert space between each function name and "()"
422         * tests/init.sh: Make it a little easier to see that a function's
423         name is "warn_", and not "warn" when looking at the first part of
424         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
425
426 2011-01-20  Jim Meyering  <meyering@redhat.com>
427
428         mountlist: clean up code formatting
429         * lib/mountlist.c (read_file_system_list): Split a long line,
430         correct bracing style, use NULL in place of "(struct statfs *)0",
431         don't parenthesize return value, add spaces around "=" and after
432         ";-in-for-stmt".
433
434 2011-01-14  Markus Duft <mduft@gentoo.org>
435
436         mountlist: add support for Interix
437         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
438         Apply statvfs to all entries of /dev/fs.
439         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
440         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
441
442 2011-01-20  Jim Meyering  <meyering@redhat.com>
443
444         maint.mk: improve the public-submodule-commit rule
445         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
446         to suppress printing of its commands... unless V=1.
447         Add git submodule's --quiet option to suppress printing of e.g.,
448         "Entering gnulib" output.
449         "cd" into $(srcdir) before running git submodule.
450
451 2011-01-20  Bruno Haible  <bruno@clisp.org>
452
453         include_next: Fix bug introduced on 2011-01-18.
454         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
455         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
456         ac_cv_header_... variable if the second argument is not 'check'.
457         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
458         gl_NEXT_HEADERS_INTERNAL.
459
460 2011-01-20  Bruno Haible  <bruno@clisp.org>
461
462         Allow the user to avoid the GNULIB_TEST_* macros.
463         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
464         Suggested by Paul Eggert.
465
466 2011-01-14  Jim Meyering  <meyering@redhat.com>
467
468         bootstrap: avoid failure when there is no .gitmodules file
469         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
470         has been assigned to, even when its value is the empty string.
471         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
472         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
473         Reported by John W. Eaton <jwe@gnu.org>.
474
475 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
476
477         assume <ctype.h>, ..., <time.h> exist
478         For years gnulib has been assuming the existence of the headers
479         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
480         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
481         them, since they don't appear to be needed.
482         * README (Portability guidelines): Document this.
483         * lib/flock.c: Assume <fcntl.h> exists.
484         * lib/regex_internal.h: Assume <locale.h> exists.
485         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
486         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
487         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
488         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
489         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
490         * m4/regex.m4 (gl_REGEX): Likewise.
491         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
492         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
493         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
494         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
495         * tests/test-argp.c: Likewise.
496         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
497
498         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
499         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
500         AA_APPLE_UNIVERSAL_BUILD.  See
501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
502         * NEWS: Document this.
503
504 2011-01-19  Eric Blake  <eblake@redhat.com>
505
506         c-stack: assume stack overflow if SA_SIGINFO unsupported
507         * lib/c-stack.c (SIGACTION_WORKS): Rename...
508         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
509         sigaction will work.
510         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
511         behavior match Linux.
512         * tests/test-c-stack.c (main): Prefer NULL for pointers.
513
514         stdbool-tests: accomodate Haiku
515         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
516
517         binary-io: fix O_TEXT on Haiku
518         * modules/binary-io (Depends-on): Add fcntl-h.
519         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
520         than blindly undefining O_TEXT.
521         Reported by Scott McCreary.
522
523 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
524
525         include_next: do not check for standard headers like stddef.h
526
527         I found this problem when modifying Emacs to use gnulib.
528         I noticed that it added HAVE_STDDEF_H to config.h, even though
529         gnulib always assumes <stddef.h> exists as per README and this
530         symbol is unnecessary.
531         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
532         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
533         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
534         faster for headers like stddef.h that are known to exist.
535         (gl_CHECK_NEXT_HEADERS): Use it.
536         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
537         rather than gl_CHECK_NEXT_HEADERS.
538         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
539         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
540
541 2011-01-18  Eric Blake  <eblake@redhat.com>
542
543         ansi-c++-opt: skip C++ dependency style if C++ is unused
544         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
545         tests when we know C++ compilation is not desired.
546         Reported by Scott McCreary.
547
548 2011-01-18  Bruno Haible  <bruno@clisp.org>
549
550         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
551         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
552         (main): Perform test also when getrlimit and setrlimit don't exist or
553         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
554         limiting the address space size using setrlimit, compare the address
555         space size before and after the the test.
556         * tests/test-dprintf-posix2.c: Likewise.
557         * tests/test-fprintf-posix3.sh: Update skip messages.
558         * tests/test-dprintf-posix2.sh: Likewise.
559         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
560         * modules/dprintf-posix-tests (Depends-on): Likewise.
561         Reported by Bruce Korb <bkorb@gnu.org> and
562         Gary V. Vaughan <gary@gnu.org>.
563
564 2011-01-18  Bruno Haible  <bruno@clisp.org>
565
566         get-rusage-as: Improvement for Cygwin.
567         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
568         areas that are merely reserved.
569
570 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
571
572         strftime: remove dependencies on multibyte modules
573
574         strftime depended on mbrlen, mbsinit, and wchar, but these modules
575         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
576         only if __osf__ is defined, and I suspect OSF doesn't need these
577         other modules.  If my guess is wrong, we'll need to come up with a
578         variant of strftime that doesn't need the multibyte modules.
579
580         I discovered this problem when attempting modify Emacs to use the
581         strftime module.  With the previous gnulib, this caused Emacs to
582         need 31 new files, ranging from lib/config.charset to
583         m4/wint_t.m4.  This was overkill and I expect would be offputting
584         to the Emacs maintainers.  After this change, only 6 new files are
585         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
586         stdbool.m4, and tm_gmtoff.m4.
587
588         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
589         Suggested by Bruno Haible in
590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
592         and do not check for wchar.h.
593         * modules/strftime (Files): Remove m4/mbstate_t.m4.
594         (Depends-on): Remove mbrlen, mbsinit, wchar.
595
596 2011-01-18  Bruno Haible  <bruno@clisp.org>
597
598         Tests for module 'get-rusage-as'.
599         * modules/get-rusage-as-tests: New file.
600         * tests/test-get-rusage-as.c: New file.
601
602         New module 'get-rusage-as'.
603         * modules/get-rusage-as: New file.
604         * lib/resource-ext.h: New file.
605         * lib/get-rusage-as.c: New file.
606
607 2011-01-17  Eric Blake  <eblake@redhat.com>
608
609         sigaction: relax license from LGPLv3+ to LGPLv2+
610         * modules/sigaction (License): Relax to LGPLv2+.
611
612 2011-01-14  Bruno Haible  <bruno@clisp.org>
613
614         filemode: Make function declarations usable in C++ mode.
615         * lib/filemode.h: Enclose function declarations in extern "C" block.
616         Reported by John W. Eaton <jwe@gnu.org>.
617
618 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
619
620         save-cwd: no longer include "xgetcwd.h"
621         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
622         This avoids a compilation failure in projects that use save-cwd
623         without also using the xgetcwd module.
624
625 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
626
627         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
628         This is so that a program like Emacs, which needs only dtoastr,
629         does not have to bother with distributing and compiling ftoastr
630         and ldtoastr.
631         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
632         * modules/dtoastr, modules/ldtoastr: New files.
633         * modules/ftoastr: Now works just for 'float'.
634         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
635         (Makefile.am): Remove ftoastr.h (not needed and no effect),
636         dtoastr.c, ldtoastr.c.
637
638 2011-01-11  Jim Meyering  <meyering@redhat.com>
639
640         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
641         There is no need to work around the lack of the fchdir function,
642         since gnulib can now provide a replacement when required.
643         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
644         * modules/save-cwd (Depends-on): Add fchdir.
645
646 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
647
648         openat, save-cwd: avoid xmalloc
649
650         This removes a direct (but undocumented) dependency of openat on
651         xalloc, along with an indirect dependency via save-cwd.  It also
652         removes a dependency of save-cwd on xgetcwd, and thereby
653         indirectly on xalloc.  This change causes the openat substitute
654         to fall back on save_cwd when memory is tight, and for save_cwd to
655         fail instead of dying when memory is tight, but that's good enough.
656
657         * lib/openat-proc.c: Include stdlib.h (for malloc), not
658         xalloc.h (for xmalloc).
659         (openat_proc_name): Use malloc, not xmalloc.
660         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
661         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
662
663         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
664         This avoids heap allocation for file names whose lengths are in
665         the range 512..1023, with the upper bound increasing to at most
666         4031 depending on the platform's PATH_MAX.  (We do not want
667         pathmax.h here as it might supply a non-constant PATH_MAX.)
668         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
669         Perhaps they should be moved to malloca.h?
670         (OPENAT_BUFFER_SIZE): Use them.
671
672 2011-01-10  Bruno Haible  <bruno@clisp.org>
673
674         doc: Update users.txt.
675         * users.txt: Add recutils.
676
677 2011-01-09  Karl Berry  <karl@gnu.org>
678
679         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
680
681         * doc/configmake.texi: New file.
682         * doc/gnulib.texi: Include it.
683         * modules/configmake: Move documentation from here.
684
685 2011-01-09  Bruno Haible  <bruno@clisp.org>
686
687         Update to Unicode 6.0.0.
688         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
689         (get_lbp): Update for Unicode 6.0.0.
690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
691         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
692         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
693         U+11001, U+11038..U+11046. Remove U+06DE.
694         (uc_width): Fix bounds of planes.
695         * tests/uniwidth/test-uc_width2.sh: Same updates as in
696         lib/uniwidth/width.c.
697         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
698         trailing whitespace removed.
699         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
700         without comments, but with the original copyright notice.
701         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
702         * lib/unicase/ignorable.h: Likewise.
703         * lib/unicase/tocasefold.h: Likewise.
704         * lib/unicase/tolower.h: Likewise.
705         * lib/unicase/totitle.h: Likewise.
706         * lib/unicase/toupper.h: Likewise.
707         * lib/unictype/bidi_of.h: Likewise.
708         * lib/unictype/blocks.h: Likewise.
709         * lib/unictype/categ_C.h: Likewise.
710         * lib/unictype/categ_Cn.h: Likewise.
711         * lib/unictype/categ_L.h: Likewise.
712         * lib/unictype/categ_Ll.h: Likewise.
713         * lib/unictype/categ_Lm.h: Likewise.
714         * lib/unictype/categ_Lo.h: Likewise.
715         * lib/unictype/categ_Lu.h: Likewise.
716         * lib/unictype/categ_M.h: Likewise.
717         * lib/unictype/categ_Mc.h: Likewise.
718         * lib/unictype/categ_Me.h: Likewise.
719         * lib/unictype/categ_Mn.h: Likewise.
720         * lib/unictype/categ_N.h: Likewise.
721         * lib/unictype/categ_Nd.h: Likewise.
722         * lib/unictype/categ_No.h: Likewise.
723         * lib/unictype/categ_P.h: Likewise.
724         * lib/unictype/categ_Po.h: Likewise.
725         * lib/unictype/categ_S.h: Likewise.
726         * lib/unictype/categ_Sc.h: Likewise.
727         * lib/unictype/categ_Sk.h: Likewise.
728         * lib/unictype/categ_Sm.h: Likewise.
729         * lib/unictype/categ_So.h: Likewise.
730         * lib/unictype/categ_of.h: Likewise.
731         * lib/unictype/combining.h: Likewise.
732         * lib/unictype/ctype_alnum.h: Likewise.
733         * lib/unictype/ctype_alpha.h: Likewise.
734         * lib/unictype/ctype_graph.h: Likewise.
735         * lib/unictype/ctype_lower.h: Likewise.
736         * lib/unictype/ctype_print.h: Likewise.
737         * lib/unictype/ctype_punct.h: Likewise.
738         * lib/unictype/ctype_upper.h: Likewise.
739         * lib/unictype/decdigit.h: Likewise.
740         * lib/unictype/digit.h: Likewise.
741         * lib/unictype/numeric.h: Likewise.
742         * lib/unictype/pr_alphabetic.h: Likewise.
743         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
744         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
745         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
746         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
747         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
748         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
749         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
750         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
751         * lib/unictype/pr_case_ignorable.h: Likewise.
752         * lib/unictype/pr_cased.h: Likewise.
753         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
754         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
755         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
756         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
757         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
758         * lib/unictype/pr_combining.h: Likewise.
759         * lib/unictype/pr_composite.h: Likewise.
760         * lib/unictype/pr_currency_symbol.h: Likewise.
761         * lib/unictype/pr_decimal_digit.h: Likewise.
762         * lib/unictype/pr_deprecated.h: Likewise.
763         * lib/unictype/pr_format_control.h: Likewise.
764         * lib/unictype/pr_grapheme_base.h: Likewise.
765         * lib/unictype/pr_grapheme_extend.h: Likewise.
766         * lib/unictype/pr_grapheme_link.h: Likewise.
767         * lib/unictype/pr_id_continue.h: Likewise.
768         * lib/unictype/pr_id_start.h: Likewise.
769         * lib/unictype/pr_ideographic.h: Likewise.
770         * lib/unictype/pr_lowercase.h: Likewise.
771         * lib/unictype/pr_math.h: Likewise.
772         * lib/unictype/pr_numeric.h: Likewise.
773         * lib/unictype/pr_other_alphabetic.h: Likewise.
774         * lib/unictype/pr_other_id_continue.h: Likewise.
775         * lib/unictype/pr_other_math.h: Likewise.
776         * lib/unictype/pr_punctuation.h: Likewise.
777         * lib/unictype/pr_sentence_terminal.h: Likewise.
778         * lib/unictype/pr_terminal_punctuation.h: Likewise.
779         * lib/unictype/pr_unassigned_code_value.h: Likewise.
780         * lib/unictype/pr_unified_ideograph.h: Likewise.
781         * lib/unictype/pr_uppercase.h: Likewise.
782         * lib/unictype/pr_xid_continue.h: Likewise.
783         * lib/unictype/pr_xid_start.h: Likewise.
784         * lib/unictype/scripts.h: Likewise.
785         * lib/unictype/scripts_byname.gperf: Likewise.
786         * lib/unictype/sy_java_ident.h: Likewise.
787         * lib/unigbrk/gbrkprop.h: Likewise.
788         * lib/unilbrk/lbrkprop1.h: Likewise.
789         * lib/unilbrk/lbrkprop2.h: Likewise.
790         * lib/uninorm/decomposition-table2.h: Likewise.
791         * lib/uniwbrk/wbrkprop.h: Likewise.
792         * tests/unicase/test-cased.c: Likewise.
793         * tests/unicase/test-ignorable.c: Likewise.
794         * tests/unicase/test-uc_tolower.c: Likewise.
795         * tests/unicase/test-uc_totitle.c: Likewise.
796         * tests/unicase/test-uc_toupper.c: Likewise.
797         * tests/unictype/test-categ_C.c: Likewise.
798         * tests/unictype/test-categ_Cn.c: Likewise.
799         * tests/unictype/test-categ_L.c: Likewise.
800         * tests/unictype/test-categ_Ll.c: Likewise.
801         * tests/unictype/test-categ_Lm.c: Likewise.
802         * tests/unictype/test-categ_Lo.c: Likewise.
803         * tests/unictype/test-categ_Lu.c: Likewise.
804         * tests/unictype/test-categ_M.c: Likewise.
805         * tests/unictype/test-categ_Mc.c: Likewise.
806         * tests/unictype/test-categ_Me.c: Likewise.
807         * tests/unictype/test-categ_Mn.c: Likewise.
808         * tests/unictype/test-categ_N.c: Likewise.
809         * tests/unictype/test-categ_Nd.c: Likewise.
810         * tests/unictype/test-categ_No.c: Likewise.
811         * tests/unictype/test-categ_P.c: Likewise.
812         * tests/unictype/test-categ_Po.c: Likewise.
813         * tests/unictype/test-categ_S.c: Likewise.
814         * tests/unictype/test-categ_Sc.c: Likewise.
815         * tests/unictype/test-categ_Sk.c: Likewise.
816         * tests/unictype/test-categ_Sm.c: Likewise.
817         * tests/unictype/test-categ_So.c: Likewise.
818         * tests/unictype/test-ctype_alnum.c: Likewise.
819         * tests/unictype/test-ctype_alpha.c: Likewise.
820         * tests/unictype/test-ctype_graph.c: Likewise.
821         * tests/unictype/test-ctype_lower.c: Likewise.
822         * tests/unictype/test-ctype_print.c: Likewise.
823         * tests/unictype/test-ctype_punct.c: Likewise.
824         * tests/unictype/test-ctype_upper.c: Likewise.
825         * tests/unictype/test-decdigit.h: Likewise.
826         * tests/unictype/test-digit.h: Likewise.
827         * tests/unictype/test-numeric.h: Likewise.
828         * tests/unictype/test-pr_alphabetic.c: Likewise.
829         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
832         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
833         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
834         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
835         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
836         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
837         * tests/unictype/test-pr_case_ignorable.c: Likewise.
838         * tests/unictype/test-pr_cased.c: Likewise.
839         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
840         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
841         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
842         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
843         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
844         * tests/unictype/test-pr_combining.c: Likewise.
845         * tests/unictype/test-pr_composite.c: Likewise.
846         * tests/unictype/test-pr_currency_symbol.c: Likewise.
847         * tests/unictype/test-pr_decimal_digit.c: Likewise.
848         * tests/unictype/test-pr_deprecated.c: Likewise.
849         * tests/unictype/test-pr_format_control.c: Likewise.
850         * tests/unictype/test-pr_grapheme_base.c: Likewise.
851         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
852         * tests/unictype/test-pr_grapheme_link.c: Likewise.
853         * tests/unictype/test-pr_id_continue.c: Likewise.
854         * tests/unictype/test-pr_id_start.c: Likewise.
855         * tests/unictype/test-pr_ideographic.c: Likewise.
856         * tests/unictype/test-pr_lowercase.c: Likewise.
857         * tests/unictype/test-pr_math.c: Likewise.
858         * tests/unictype/test-pr_numeric.c: Likewise.
859         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
860         * tests/unictype/test-pr_other_id_continue.c: Likewise.
861         * tests/unictype/test-pr_other_math.c: Likewise.
862         * tests/unictype/test-pr_punctuation.c: Likewise.
863         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
864         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
865         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
866         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
867         * tests/unictype/test-pr_uppercase.c: Likewise.
868         * tests/unictype/test-pr_xid_continue.c: Likewise.
869         * tests/unictype/test-pr_xid_start.c: Likewise.
870         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
871         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
872         changes.
873         * lib/unictype/categ_Cc.h: Likewise.
874         * lib/unictype/categ_Cf.h: Likewise.
875         * lib/unictype/categ_Co.h: Likewise.
876         * lib/unictype/categ_Cs.h: Likewise.
877         * lib/unictype/categ_Lt.h: Likewise.
878         * lib/unictype/categ_Nl.h: Likewise.
879         * lib/unictype/categ_Pc.h: Likewise.
880         * lib/unictype/categ_Pd.h: Likewise.
881         * lib/unictype/categ_Pe.h: Likewise.
882         * lib/unictype/categ_Pf.h: Likewise.
883         * lib/unictype/categ_Pi.h: Likewise.
884         * lib/unictype/categ_Ps.h: Likewise.
885         * lib/unictype/categ_Z.h: Likewise.
886         * lib/unictype/categ_Zl.h: Likewise.
887         * lib/unictype/categ_Zp.h: Likewise.
888         * lib/unictype/categ_Zs.h: Likewise.
889         * lib/unictype/ctype_blank.h: Likewise.
890         * lib/unictype/ctype_cntrl.h: Likewise.
891         * lib/unictype/ctype_digit.h: Likewise.
892         * lib/unictype/ctype_space.h: Likewise.
893         * lib/unictype/ctype_xdigit.h: Likewise.
894         * lib/unictype/mirror.h: Likewise.
895         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
896         * lib/unictype/pr_bidi_block_separator.h: Likewise.
897         * lib/unictype/pr_bidi_common_separator.h: Likewise.
898         * lib/unictype/pr_bidi_control.h: Likewise.
899         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
900         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
901         * lib/unictype/pr_bidi_european_digit.h: Likewise.
902         * lib/unictype/pr_bidi_pdf.h: Likewise.
903         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
904         * lib/unictype/pr_bidi_whitespace.h: Likewise.
905         * lib/unictype/pr_dash.h: Likewise.
906         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
907         * lib/unictype/pr_diacritic.h: Likewise.
908         * lib/unictype/pr_extender.h: Likewise.
909         * lib/unictype/pr_hex_digit.h: Likewise.
910         * lib/unictype/pr_hyphen.h: Likewise.
911         * lib/unictype/pr_ids_binary_operator.h: Likewise.
912         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
913         * lib/unictype/pr_ignorable_control.h: Likewise.
914         * lib/unictype/pr_iso_control.h: Likewise.
915         * lib/unictype/pr_join_control.h: Likewise.
916         * lib/unictype/pr_left_of_pair.h: Likewise.
917         * lib/unictype/pr_line_separator.h: Likewise.
918         * lib/unictype/pr_logical_order_exception.h: Likewise.
919         * lib/unictype/pr_non_break.h: Likewise.
920         * lib/unictype/pr_not_a_character.h: Likewise.
921         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
922         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
923         * lib/unictype/pr_other_id_start.h: Likewise.
924         * lib/unictype/pr_other_lowercase.h: Likewise.
925         * lib/unictype/pr_other_uppercase.h: Likewise.
926         * lib/unictype/pr_paired_punctuation.h: Likewise.
927         * lib/unictype/pr_paragraph_separator.h: Likewise.
928         * lib/unictype/pr_pattern_syntax.h: Likewise.
929         * lib/unictype/pr_pattern_white_space.h: Likewise.
930         * lib/unictype/pr_private_use.h: Likewise.
931         * lib/unictype/pr_quotation_mark.h: Likewise.
932         * lib/unictype/pr_radical.h: Likewise.
933         * lib/unictype/pr_soft_dotted.h: Likewise.
934         * lib/unictype/pr_space.h: Likewise.
935         * lib/unictype/pr_titlecase.h: Likewise.
936         * lib/unictype/pr_variation_selector.h: Likewise.
937         * lib/unictype/pr_white_space.h: Likewise.
938         * lib/unictype/pr_zero_width.h: Likewise.
939         * lib/unictype/sy_c_ident.h: Likewise.
940         * lib/unictype/sy_c_whitespace.h: Likewise.
941         * lib/unictype/sy_java_whitespace.h: Likewise.
942         * lib/uninorm/composition-table.gperf: Likewise.
943         * lib/uninorm/decomposition-table1.h: Likewise.
944         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
945         LB8.
946         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
947         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
948         * modules/unictype/*: Bump version number of expected libunistring
949         version.
950
951 2011-01-09  Bruno Haible  <bruno@clisp.org>
952
953         Update to Unicode 5.2.0.
954         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
955         trailing whitespace removed.
956
957 2011-01-09  Bruno Haible  <bruno@clisp.org>
958
959         New Unicode character properties, from Unicode 5.2.0.
960         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
961         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
962         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
963         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
964         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
965         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
966         uc_is_property_cased, uc_is_property_case_ignorable,
967         uc_is_property_changes_when_lowercased,
968         uc_is_property_changes_when_uppercased,
969         uc_is_property_changes_when_titlecased,
970         uc_is_property_changes_when_casefolded,
971         uc_is_property_changes_when_casemapped): New declarations.
972         * lib/unictype/pr_byname.gperf: Add the new properties.
973         * modules/unictype/property-byname (Depends-on): Depend on the new
974         properties modules.
975         * modules/unictype/property-all (Depends-on): Likewise.
976         * MODULES.html.sh (Unicode string functions): Add
977         unictype/property-case-ignorable, unictype/property-cased,
978         unictype/property-changes-when-casefolded,
979         unictype/property-changes-when-casemapped,
980         unictype/property-changes-when-lowercased,
981         unictype/property-changes-when-titlecased,
982         unictype/property-changes-when-uppercased.
983
984         New module 'unictype/property-changes-when-casemapped'.
985         * modules/unictype/property-changes-when-casemapped: New file.
986         * lib/unictype/pr_changes_when_casemapped.c: New file.
987         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
988         generated by gen-uni-tables.
989         * modules/unictype/property-changes-when-casemapped-tests: New file.
990         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
991         automatically generated by gen-uni-tables.
992
993         New module 'unictype/property-changes-when-casefolded'.
994         * modules/unictype/property-changes-when-casefolded: New file.
995         * lib/unictype/pr_changes_when_casefolded.c: New file.
996         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
997         generated by gen-uni-tables.
998         * modules/unictype/property-changes-when-casefolded-tests: New file.
999         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1000         automatically generated by gen-uni-tables.
1001
1002         New module 'unictype/property-changes-when-titlecased'.
1003         * modules/unictype/property-changes-when-titlecased: New file.
1004         * lib/unictype/pr_changes_when_titlecased.c: New file.
1005         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1006         generated by gen-uni-tables.
1007         * modules/unictype/property-changes-when-titlecased-tests: New file.
1008         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1009         automatically generated by gen-uni-tables.
1010
1011         New module 'unictype/property-changes-when-uppercased'.
1012         * modules/unictype/property-changes-when-uppercased: New file.
1013         * lib/unictype/pr_changes_when_uppercased.c: New file.
1014         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1015         generated by gen-uni-tables.
1016         * modules/unictype/property-changes-when-uppercased-tests: New file.
1017         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1018         automatically generated by gen-uni-tables.
1019
1020         New module 'unictype/property-changes-when-lowercased'.
1021         * modules/unictype/property-changes-when-lowercased: New file.
1022         * lib/unictype/pr_changes_when_lowercased.c: New file.
1023         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1024         generated by gen-uni-tables.
1025         * modules/unictype/property-changes-when-lowercased-tests: New file.
1026         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1027         automatically generated by gen-uni-tables.
1028
1029         New module 'unictype/property-case-ignorable'.
1030         * modules/unictype/property-case-ignorable: New file.
1031         * lib/unictype/pr_case_ignorable.c: New file.
1032         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1033         by gen-uni-tables.
1034         * modules/unictype/property-case-ignorable-tests: New file.
1035         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1036         generated by gen-uni-tables.
1037
1038         New module 'unictype/property-cased'.
1039         * modules/unictype/property-cased: New file.
1040         * lib/unictype/pr_cased.c: New file.
1041         * lib/unictype/pr_cased.h: New file, automatically generated by
1042         gen-uni-tables.
1043         * modules/unictype/property-cased-tests: New file.
1044         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1045         gen-uni-tables.
1046
1047 2011-01-09  Bruno Haible  <bruno@clisp.org>
1048
1049         Update to Unicode 5.2.0.
1050         * lib/gen-uni-tables.c (output_predicate, output_category,
1051         output_combclass, output_bidi_category, output_decimal_digit_test,
1052         output_decimal_digit, output_digit_test, output_digit,
1053         output_numeric_test, output_numeric, output_mirror, output_scripts,
1054         output_scripts_byname, output_blocks, output_ident_category): Fix
1055         comment header.
1056         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1057         get_wbp.
1058         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1059         items.
1060         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1061         Changes_When_Lowercased, Changes_When_Uppercased,
1062         Changes_When_Titlecased, Changes_When_Casefolded,
1063         Changes_When_Casemapped.
1064         (is_property_alphabetic, is_property_default_ignorable_code_point):
1065         Update for Unicode 5.2.0.
1066         (is_property_cased, is_property_case_ignorable,
1067         is_property_changes_when_lowercased,
1068         is_property_changes_when_uppercased,
1069         is_property_changes_when_titlecased,
1070         is_property_changes_when_casefolded,
1071         is_property_changes_when_casemapped): New functions.
1072         (output_properties): Output also the properties cased, case_ignorable,
1073         changes_when_lowercased, changes_when_uppercased,
1074         changes_when_titlecased, changes_when_casefolded,
1075         changes_when_casemapped.
1076         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1077         Unicode TR#11 revision 17 -> 19.
1078         (LBP_CP): New enumeration value.
1079         (LBP_*): Adjust values accordingly.
1080         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1081         TR#14 revision 22 -> 24.
1082         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1083         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1084         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1085         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1086         is_WBP_MIDLETTER.
1087         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1088         the code1 and code2 of each composition rule.
1089         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1090         * lib/unicase/ignorable.h: Likewise.
1091         * lib/unicase/tocasefold.h: Likewise.
1092         * lib/unicase/tolower.h: Likewise.
1093         * lib/unicase/totitle.h: Likewise.
1094         * lib/unicase/toupper.h: Likewise.
1095         * lib/unictype/bidi_of.h: Likewise.
1096         * lib/unictype/blocks.h: Likewise.
1097         * lib/unictype/categ_C.h: Likewise.
1098         * lib/unictype/categ_Cf.h: Likewise.
1099         * lib/unictype/categ_Cn.h: Likewise.
1100         * lib/unictype/categ_L.h: Likewise.
1101         * lib/unictype/categ_Ll.h: Likewise.
1102         * lib/unictype/categ_Lm.h: Likewise.
1103         * lib/unictype/categ_Lo.h: Likewise.
1104         * lib/unictype/categ_Lu.h: Likewise.
1105         * lib/unictype/categ_M.h: Likewise.
1106         * lib/unictype/categ_Mc.h: Likewise.
1107         * lib/unictype/categ_Mn.h: Likewise.
1108         * lib/unictype/categ_N.h: Likewise.
1109         * lib/unictype/categ_Nd.h: Likewise.
1110         * lib/unictype/categ_Nl.h: Likewise.
1111         * lib/unictype/categ_No.h: Likewise.
1112         * lib/unictype/categ_P.h: Likewise.
1113         * lib/unictype/categ_Pd.h: Likewise.
1114         * lib/unictype/categ_Po.h: Likewise.
1115         * lib/unictype/categ_S.h: Likewise.
1116         * lib/unictype/categ_Sc.h: Likewise.
1117         * lib/unictype/categ_So.h: Likewise.
1118         * lib/unictype/categ_of.h: Likewise.
1119         * lib/unictype/combining.h: Likewise.
1120         * lib/unictype/ctype_alnum.h: Likewise.
1121         * lib/unictype/ctype_alpha.h: Likewise.
1122         * lib/unictype/ctype_graph.h: Likewise.
1123         * lib/unictype/ctype_lower.h: Likewise.
1124         * lib/unictype/ctype_print.h: Likewise.
1125         * lib/unictype/ctype_punct.h: Likewise.
1126         * lib/unictype/ctype_upper.h: Likewise.
1127         * lib/unictype/decdigit.h: Likewise.
1128         * lib/unictype/digit.h: Likewise.
1129         * lib/unictype/numeric.h: Likewise.
1130         * lib/unictype/pr_alphabetic.h: Likewise.
1131         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1132         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1133         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1134         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1135         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1136         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1137         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1138         * lib/unictype/pr_combining.h: Likewise.
1139         * lib/unictype/pr_composite.h: Likewise.
1140         * lib/unictype/pr_currency_symbol.h: Likewise.
1141         * lib/unictype/pr_dash.h: Likewise.
1142         * lib/unictype/pr_decimal_digit.h: Likewise.
1143         * lib/unictype/pr_deprecated.h: Likewise.
1144         * lib/unictype/pr_diacritic.h: Likewise.
1145         * lib/unictype/pr_extender.h: Likewise.
1146         * lib/unictype/pr_grapheme_base.h: Likewise.
1147         * lib/unictype/pr_grapheme_extend.h: Likewise.
1148         * lib/unictype/pr_grapheme_link.h: Likewise.
1149         * lib/unictype/pr_id_continue.h: Likewise.
1150         * lib/unictype/pr_id_start.h: Likewise.
1151         * lib/unictype/pr_ideographic.h: Likewise.
1152         * lib/unictype/pr_ignorable_control.h: Likewise.
1153         * lib/unictype/pr_logical_order_exception.h: Likewise.
1154         * lib/unictype/pr_lowercase.h: Likewise.
1155         * lib/unictype/pr_numeric.h: Likewise.
1156         * lib/unictype/pr_other_alphabetic.h: Likewise.
1157         * lib/unictype/pr_punctuation.h: Likewise.
1158         * lib/unictype/pr_sentence_terminal.h: Likewise.
1159         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1160         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1161         * lib/unictype/pr_unified_ideograph.h: Likewise.
1162         * lib/unictype/pr_uppercase.h: Likewise.
1163         * lib/unictype/pr_xid_continue.h: Likewise.
1164         * lib/unictype/pr_xid_start.h: Likewise.
1165         * lib/unictype/pr_zero_width.h: Likewise.
1166         * lib/unictype/scripts.h: Likewise.
1167         * lib/unictype/scripts_byname.gperf: Likewise.
1168         * lib/unictype/sy_java_ident.h: Likewise.
1169         * lib/unigbrk/gbrkprop.h: Likewise.
1170         * lib/unilbrk/lbrkprop1.h: Likewise.
1171         * lib/unilbrk/lbrkprop2.h: Likewise.
1172         * lib/unilbrk/lbrktables.h: Likewise.
1173         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1174         LBP_CP. Implement rule LB30.
1175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1176         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1177         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1178         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1179         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1180         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1181         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1182         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1183         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1184         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1185         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1186         bits instead of 16 bits in the code1 and code2 of each composition
1187         rule.
1188         (uc_composition): Update for Unicode 5.2.0.
1189         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1190         * lib/uninorm/decomposition-table2.h: Likewise.
1191         * lib/uniwbrk/wbrkprop.h: Likewise.
1192         * tests/unicase/test-cased.c: Likewise.
1193         * tests/unicase/test-ignorable.c: Likewise.
1194         * tests/unicase/test-uc_tolower.c: Likewise.
1195         * tests/unicase/test-uc_totitle.c: Likewise.
1196         * tests/unicase/test-uc_toupper.c: Likewise.
1197         * tests/unictype/test-categ_C.c: Likewise.
1198         * tests/unictype/test-categ_Cf.c: Likewise.
1199         * tests/unictype/test-categ_Cn.c: Likewise.
1200         * tests/unictype/test-categ_L.c: Likewise.
1201         * tests/unictype/test-categ_Ll.c: Likewise.
1202         * tests/unictype/test-categ_Lm.c: Likewise.
1203         * tests/unictype/test-categ_Lo.c: Likewise.
1204         * tests/unictype/test-categ_Lu.c: Likewise.
1205         * tests/unictype/test-categ_M.c: Likewise.
1206         * tests/unictype/test-categ_Mc.c: Likewise.
1207         * tests/unictype/test-categ_Mn.c: Likewise.
1208         * tests/unictype/test-categ_N.c: Likewise.
1209         * tests/unictype/test-categ_Nd.c: Likewise.
1210         * tests/unictype/test-categ_Nl.c: Likewise.
1211         * tests/unictype/test-categ_No.c: Likewise.
1212         * tests/unictype/test-categ_P.c: Likewise.
1213         * tests/unictype/test-categ_Pd.c: Likewise.
1214         * tests/unictype/test-categ_Po.c: Likewise.
1215         * tests/unictype/test-categ_S.c: Likewise.
1216         * tests/unictype/test-categ_Sc.c: Likewise.
1217         * tests/unictype/test-categ_So.c: Likewise.
1218         * tests/unictype/test-ctype_alnum.c: Likewise.
1219         * tests/unictype/test-ctype_alpha.c: Likewise.
1220         * tests/unictype/test-ctype_graph.c: Likewise.
1221         * tests/unictype/test-ctype_lower.c: Likewise.
1222         * tests/unictype/test-ctype_print.c: Likewise.
1223         * tests/unictype/test-ctype_punct.c: Likewise.
1224         * tests/unictype/test-ctype_upper.c: Likewise.
1225         * tests/unictype/test-decdigit.h: Likewise.
1226         * tests/unictype/test-digit.h: Likewise.
1227         * tests/unictype/test-numeric.h: Likewise.
1228         * tests/unictype/test-pr_alphabetic.c: Likewise.
1229         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1231         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1232         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1233         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1234         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1235         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1236         * tests/unictype/test-pr_combining.c: Likewise.
1237         * tests/unictype/test-pr_composite.c: Likewise.
1238         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1239         * tests/unictype/test-pr_dash.c: Likewise.
1240         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1241         * tests/unictype/test-pr_deprecated.c: Likewise.
1242         * tests/unictype/test-pr_diacritic.c: Likewise.
1243         * tests/unictype/test-pr_extender.c: Likewise.
1244         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1245         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1246         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1247         * tests/unictype/test-pr_id_continue.c: Likewise.
1248         * tests/unictype/test-pr_id_start.c: Likewise.
1249         * tests/unictype/test-pr_ideographic.c: Likewise.
1250         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1251         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1252         * tests/unictype/test-pr_lowercase.c: Likewise.
1253         * tests/unictype/test-pr_numeric.c: Likewise.
1254         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1255         * tests/unictype/test-pr_punctuation.c: Likewise.
1256         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1257         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1258         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1259         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1260         * tests/unictype/test-pr_uppercase.c: Likewise.
1261         * tests/unictype/test-pr_xid_continue.c: Likewise.
1262         * tests/unictype/test-pr_xid_start.c: Likewise.
1263         * tests/unictype/test-pr_zero_width.c: Likewise.
1264         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1265         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1266         changed behaviour: line breaking is now disallowed between a letter
1267         or '=' and '('.
1268         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1269         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1270         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1271         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1272         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1273         lib/uniwidth/width.c.
1274         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1275         without comments, but with the original copyright notice.
1276         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1277         changes.
1278         * lib/unictype/categ_Cc.h: Likewise.
1279         * lib/unictype/categ_Co.h: Likewise.
1280         * lib/unictype/categ_Cs.h: Likewise.
1281         * lib/unictype/categ_Lt.h: Likewise.
1282         * lib/unictype/categ_Me.h: Likewise.
1283         * lib/unictype/categ_Pc.h: Likewise.
1284         * lib/unictype/categ_Pe.h: Likewise.
1285         * lib/unictype/categ_Pf.h: Likewise.
1286         * lib/unictype/categ_Pi.h: Likewise.
1287         * lib/unictype/categ_Ps.h: Likewise.
1288         * lib/unictype/categ_Sk.h: Likewise.
1289         * lib/unictype/categ_Sm.h: Likewise.
1290         * lib/unictype/categ_Z.h: Likewise.
1291         * lib/unictype/categ_Zl.h: Likewise.
1292         * lib/unictype/categ_Zp.h: Likewise.
1293         * lib/unictype/categ_Zs.h: Likewise.
1294         * lib/unictype/ctype_blank.h: Likewise.
1295         * lib/unictype/ctype_cntrl.h: Likewise.
1296         * lib/unictype/ctype_digit.h: Likewise.
1297         * lib/unictype/ctype_space.h: Likewise.
1298         * lib/unictype/ctype_xdigit.h: Likewise.
1299         * lib/unictype/mirror.h: Likewise.
1300         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1301         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1302         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1303         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1304         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1305         * lib/unictype/pr_bidi_control.h: Likewise.
1306         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1307         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1308         * lib/unictype/pr_bidi_pdf.h: Likewise.
1309         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1310         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1311         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1312         * lib/unictype/pr_format_control.h: Likewise.
1313         * lib/unictype/pr_hex_digit.h: Likewise.
1314         * lib/unictype/pr_hyphen.h: Likewise.
1315         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1316         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1317         * lib/unictype/pr_iso_control.h: Likewise.
1318         * lib/unictype/pr_join_control.h: Likewise.
1319         * lib/unictype/pr_left_of_pair.h: Likewise.
1320         * lib/unictype/pr_line_separator.h: Likewise.
1321         * lib/unictype/pr_math.h: Likewise.
1322         * lib/unictype/pr_non_break.h: Likewise.
1323         * lib/unictype/pr_not_a_character.h: Likewise.
1324         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1325         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1326         * lib/unictype/pr_other_id_continue.h: Likewise.
1327         * lib/unictype/pr_other_id_start.h: Likewise.
1328         * lib/unictype/pr_other_lowercase.h: Likewise.
1329         * lib/unictype/pr_other_math.h: Likewise.
1330         * lib/unictype/pr_other_uppercase.h: Likewise.
1331         * lib/unictype/pr_paired_punctuation.h: Likewise.
1332         * lib/unictype/pr_paragraph_separator.h: Likewise.
1333         * lib/unictype/pr_pattern_syntax.h: Likewise.
1334         * lib/unictype/pr_pattern_white_space.h: Likewise.
1335         * lib/unictype/pr_private_use.h: Likewise.
1336         * lib/unictype/pr_quotation_mark.h: Likewise.
1337         * lib/unictype/pr_radical.h: Likewise.
1338         * lib/unictype/pr_soft_dotted.h: Likewise.
1339         * lib/unictype/pr_space.h: Likewise.
1340         * lib/unictype/pr_titlecase.h: Likewise.
1341         * lib/unictype/pr_variation_selector.h: Likewise.
1342         * lib/unictype/pr_white_space.h: Likewise.
1343         * lib/unictype/sy_c_ident.h: Likewise.
1344         * lib/unictype/sy_c_whitespace.h: Likewise.
1345         * lib/unictype/sy_java_whitespace.h: Likewise.
1346         * modules/uni*/*: Bump version number of expected libunistring version.
1347         Reported by Simon Josefsson.
1348
1349 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1350
1351         useless-if-before-free: fix typo in --help and make the internal,
1352         automatic version date update process work once again.
1353         --help output contained a NUL character instead of the
1354         backslash-zero that was intended.  Also, the "must lie within
1355         the first 8 lines" line is on line 9, and hence not getting
1356         automatically updated.
1357         * build-aux/useless-if-before-free: Fix the former by adding a
1358         backslash, and the latter by condensing the three lines of what-it-does
1359         to a single line, leaving one line of slack for the future.
1360
1361 2011-01-09  Bruno Haible  <bruno@clisp.org>
1362
1363         uniwidth/width: Fix width of U+1D173..U+1D17A.
1364         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1365         symbolic_width, output_width_property_test): New functions.
1366         (main): Invoke output_nonspacing_property, output_width_property_test.
1367         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1368         U+1D173..U+1D17A.
1369         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1370         1.
1371         * modules/uniwidth/*: Bump version number of expected libunistring
1372         version.
1373         * modules/unilbrk/*: Likewise.
1374
1375 2011-01-08  Bruno Haible  <bruno@clisp.org>
1376
1377         uninorm tests: Preserve copyright of Unicode data file.
1378         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1379         Mention modifications.
1380
1381 2011-01-08  Bruno Haible  <bruno@clisp.org>
1382
1383         gen-uni-tables: Prepare for Unicode 5.2.0.
1384         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1385         (debug_output_lbp, output_lbp): Update.
1386
1387 2011-01-08  Bruno Haible  <bruno@clisp.org>
1388
1389         unilbrk: Clarify gen-uni-tables.c code.
1390         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1391         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1392         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1393
1394 2011-01-07  Bruno Haible  <bruno@clisp.org>
1395
1396         strtod: Restore errno when successfully parsing Infinity or NaN.
1397         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1398         restore the original errno.
1399
1400 2011-01-07  Bruno Haible  <bruno@clisp.org>
1401
1402         remove test: Avoid failure on HP-UX 11.
1403         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1404
1405 2011-01-07  Bruno Haible  <bruno@clisp.org>
1406
1407         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1408         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1409         error code.
1410
1411 2011-01-07  Pádraig Brady <P@draigBrady.com>
1412
1413         ignore-value: fixup comments, and add Eric Blake
1414         as an author since he rewrote the macros.
1415         * lib/ignore-value.h (ignore_value):  State that
1416         we now support aggregates.  Also specify exactly
1417         when the GCC warn_unused_result feature was added.
1418
1419 2011-01-06  Eric Blake  <eblake@redhat.com>
1420
1421         ignore-value: support aggregate types
1422         * lib/ignore-value.h (ignore_value): Provide separate gcc
1423         definition.
1424         * modules/ignore-value-tests: New test module.
1425         * tests/test-ignore-value.c: New test.
1426
1427         maint.mk: improve sc_prohibit_strcmp regex
1428         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1429         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1430         definition of STRNEQ.
1431
1432         signal: work around Haiku issue with SIGBUS
1433         * lib/siglist.h: Add comment.
1434         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1435         strsignal's favoring of SIGSEGV.
1436         * tests/test-signal.c (main): Avoid test failure.
1437         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1438         Reported by Scott McCreary.
1439
1440         maint.mk: add pre-release check to ensure submodule commits are public
1441         * top/maint.mk (public-submodule-commit): New rule.
1442         (submodule-checks): New variable.
1443         (alpha beta stable): Depend on the variable.
1444
1445 2011-01-05  Pádraig Brady <P@draigBrady.com>
1446         and Jim Meyering  <meyering@redhat.com>
1447
1448         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1449         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1450         (ATTRIBUTE_DEPRECATED): Define.
1451         (_ignore_case): New function.
1452         (ignore_value): New macro, to replace the old function.
1453         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1454         * modules/ignore-value (Depends-on): Add stdint.
1455
1456 2011-01-04  Eric Blake  <eblake@redhat.com>
1457
1458         doc: regenerate INSTALL
1459         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1460         @firstparagraphindent support, now that autoconf dropped it.
1461         (INSTALL_PRELUDE): Reinstate old macro.
1462         * doc/install.texi: Resync from autoconf.
1463         * doc/INSTALL: Reflect recent autoconf update.
1464         * doc/INSTALL.ISO: Likewise.
1465         * doc/INSTALL.UTF-8: Likewise.
1466         Reported by Karl Berry.
1467
1468 2011-01-04  Bruce Korb  <address@hidden>
1469
1470         git-version-gen: avoid a sub-shell
1471         * build-aux/git-version-gen: Redirect stderr in `...` via
1472         "exec 2>...", rather than via an added sub-shell.
1473
1474 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1475
1476         git-version-gen: use (...) rather than sh -c '...'
1477         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1478         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1479
1480 2011-01-03  Jim Meyering  <meyering@redhat.com>
1481
1482         git-version-gen: convert leading TABs to spaces
1483         * build-aux/git-version-gen: Expand leading TABs.
1484
1485         git-version-gen: handle failed "git rev-list"
1486         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1487         from git and proceeding as if it had succeeded but printed no SHA1
1488         checksums, suppress the diagnostic and handle the failure.
1489         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1490
1491         git-version-gen: include command name in one more diagnostic
1492         * build-aux/git-version-gen: When the required .tarball-version file
1493         was missing or unreadable, you might see the diagnostic from "cat",
1494         but no trace of the name of the invoking script.  Now, you still see
1495         the diagnostic from cat, but also get one from "git-version-gen: ".
1496         Inspired by a patch from Bruce Korb.
1497
1498         update-copyright: adjust test to match changed code
1499         * tests/test-update-copyright.sh: Change test's expected output
1500         to match new actual output.
1501
1502 2011-01-02  Bruno Haible  <bruno@clisp.org>
1503
1504         getlogin_r: Avoid test failure on HP-UX 11.
1505         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1506         ERANGE when the second argument is zero.
1507         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1508         portability problem.
1509
1510 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1511
1512         * build-aux/update-copyright: doc Simon's changes
1513
1514 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1515
1516         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1517         environment variable.
1518
1519 2011-01-02  Bruno Haible  <bruno@clisp.org>
1520
1521         unigbrk: Avoid gcc warnings.
1522         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1523         unused variable.
1524         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1525         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1526         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1527         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1528         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1529         Change type of first argument to 'const char *'.
1530         (main): Remove unused variable.
1531         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1532         type of first argument to 'const char *'.
1533         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1534         Likewise.
1535         (main): Change type of variable 's'.
1536         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1537         to 'int'.
1538
1539 2011-01-02  Bruno Haible  <bruno@clisp.org>
1540
1541         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1543         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1544         bug.
1545         * lib/pwrite.c: Undo 2010-12-31 patch.
1546         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1547
1548 2011-01-02  Bruno Haible  <bruno@clisp.org>
1549
1550         pread: Fix test whether it works.
1551         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1552
1553 2011-01-02  Bruno Haible  <bruno@clisp.org>
1554
1555         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1556         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1557         ends in "6". Don't require a specific month name. Try also the locale
1558         names found on HP-UX 11 and Solaris 7.
1559
1560 2011-01-02  Bruno Haible  <bruno@clisp.org>
1561
1562         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1563         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1564         C linkage.
1565         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1566
1567 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1568
1569         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1570         for consistency, since the "cluster" term is not used elsewhere.
1571         * lib/unigbrk.in.h: Update name.
1572         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1573         * lib/unigbrk/u16-grapheme-next.c: Update name.
1574         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1575         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1576         * lib/unigbrk/u32-grapheme-next.c: Update name.
1577         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1578         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1579         * lib/unigbrk/u8-grapheme-next.c: Update name.
1580         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1581         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1582         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1583         Suggested by Bruno Haible.
1584
1585 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1586
1587         Remove module 'u8-grapheme-len' as too redundant with
1588         'u8-grapheme-next'.
1589         * modules/unigbrk/u8-grapheme-len: Delete file.
1590         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1591         * lib/unigbrk.in.h: Remove prototype for deleted function.
1592         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1593         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1594
1595         Remove module 'u16-grapheme-len' as too redundant with
1596         'u16-grapheme-next'.
1597         * modules/unigbrk/u16-grapheme-len: Delete file.
1598         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1599         * lib/unigbrk.in.h: Remove prototype for deleted function.
1600         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1601         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1602
1603         Remove module 'u32-grapheme-len' as too redundant with
1604         'u32-grapheme-next'.
1605         * modules/unigbrk/u32-grapheme-len: Delete file.
1606         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1607         * lib/unigbrk.in.h: Remove prototype for deleted function.
1608         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1609         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1610
1611         Suggested by Bruno Haible.
1612
1613 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1614
1615         * unigbrk.in.h: Fix typo: "ben" => "been".
1616         Reported by Bruno Haible.
1617
1618 2011-01-01  Jim Meyering  <meyering@redhat.com>
1619
1620         maint: update almost all copyright ranges to include 2011
1621         Run the new "make update-copyright" rule.
1622
1623 2011-01-01  Jim Meyering  <meyering@redhat.com>
1624
1625         maint: update-copyright: exempt doc/INSTALL*
1626         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1627         since they are generated.  Suggested by Bruno Haible.
1628
1629 2011-01-01  Jim Meyering  <meyering@redhat.com>
1630
1631         maint: refine the update-copyright rule
1632         * Makefile (update-copyright): Also exclude any file that includes
1633         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1634         code that merely generates the comment.
1635
1636 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1637
1638         New module 'u8-grapheme-len'.
1639         * modules/unigbrk/u8-grapheme-len: New file.
1640         * modules/unigbrk/u8-grapheme-len-tests: New file.
1641         * lib/unigbrk.in.h: Add prototype for new function.
1642         * lib/unigbrk/u8-grapheme-len.c: New file.
1643         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1644
1645         New module 'u16-grapheme-len'.
1646         * modules/unigbrk/u16-grapheme-len: New file.
1647         * modules/unigbrk/u16-grapheme-len-tests: New file.
1648         * lib/unigbrk.in.h: Add prototype for new function.
1649         * lib/unigbrk/u16-grapheme-len.c: New file.
1650         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1651
1652         New module 'u32-grapheme-len'.
1653         * modules/unigbrk/u32-grapheme-len: New file.
1654         * modules/unigbrk/u32-grapheme-len-tests: New file.
1655         * lib/unigbrk.in.h: Add prototype for new function.
1656         * lib/unigbrk/u32-grapheme-len.c: New file.
1657         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1658
1659         New module 'u8-grapheme-next'.
1660         * modules/unigbrk/u8-grapheme-next: New file.
1661         * modules/unigbrk/u8-grapheme-next-tests: New file.
1662         * lib/unigbrk.in.h: Add prototype for new function.
1663         * lib/unigbrk/u8-grapheme-next.c: New file.
1664         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1665
1666         New module 'u16-grapheme-next'.
1667         * modules/unigbrk/u16-grapheme-next: New file.
1668         * modules/unigbrk/u16-grapheme-next-tests: New file.
1669         * lib/unigbrk.in.h: Add prototype for new function.
1670         * lib/unigbrk/u16-grapheme-next.c: New file.
1671         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1672
1673         New module 'u32-grapheme-next'.
1674         * modules/unigbrk/u32-grapheme-next: New file.
1675         * modules/unigbrk/u32-grapheme-next-tests: New file.
1676         * lib/unigbrk.in.h: Add prototype for new function.
1677         * lib/unigbrk/u32-grapheme-next.c: New file.
1678         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1679
1680         New module 'u8-grapheme-prev'.
1681         * modules/unigbrk/u8-grapheme-prev: New file.
1682         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1683         * lib/unigbrk.in.h: Add prototype for new function.
1684         * lib/unigbrk/u8-grapheme-prev.c: New file.
1685         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1686
1687         New module 'u16-grapheme-prev'.
1688         * modules/unigbrk/u16-grapheme-prev: New file.
1689         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1690         * lib/unigbrk.in.h: Add prototype for new function.
1691         * lib/unigbrk/u16-grapheme-prev.c: New file.
1692         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1693
1694         New module 'u32-grapheme-prev'.
1695         * modules/unigbrk/u32-grapheme-prev: New file.
1696         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1697         * lib/unigbrk.in.h: Add prototype for new function.
1698         * lib/unigbrk/u32-grapheme-prev.c: New file.
1699         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1700
1701         New module 'u8-grapheme-breaks'.
1702         * modules/unigbrk/u8-grapheme-breaks: New file.
1703         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1704         * lib/unigbrk.in.h: Add prototype for new function.
1705         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1706         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1707
1708         New module 'u16-grapheme-breaks'.
1709         * modules/unigbrk/u16-grapheme-breaks: New file.
1710         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1711         * lib/unigbrk.in.h: Add prototype for new function.
1712         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1713         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1714
1715         New module 'u32-grapheme-breaks'.
1716         * modules/unigbrk/u32-grapheme-breaks: New file.
1717         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1718         * lib/unigbrk.in.h: Add prototype for new function.
1719         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1720         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1721
1722         New module 'ulc-grapheme-breaks'.
1723         * modules/unigbrk/ulc-grapheme-breaks: New file.
1724         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1725         * m4/locale-ar.m4: New file.
1726         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1727         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1728         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1729
1730 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1731
1732         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1733         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1734         modified how this file was generated before I initially submitted
1735         the module, but failed to regenerate it.  This meant that several
1736         of the level2 entries were wrong.
1737         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1738         Remove the division-by-2 that is folded into the table now that
1739         gbrkprop.h has been regenerated properly.  Now -1 entries are
1740         handled correctly.
1741
1742         New module 'unigbrk/uc-gbrk-prop-tests'.
1743         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1744         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1745         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1746         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1747
1748 2011-01-01  Bruno Haible  <bruno@clisp.org>
1749
1750         Avoid use of hexadecimal escapes.
1751         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1752         instead of hexadecimal escapes.
1753
1754 2011-01-01  Jim Meyering  <meyering@redhat.com>
1755
1756         maint: new rule to update copyright year ranges
1757         * Makefile (update-copyright): New rule.
1758
1759         maint: indent with TABs in Makefile
1760         * Makefile: Expand leading sequences of spaces to TABs
1761
1762         version-etc: update the copyright year it reports
1763         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1764
1765 2010-12-31  Bruno Haible  <bruno@clisp.org>
1766
1767         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1768         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1769         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1770         zero.
1771
1772 2010-12-31  Bruno Haible  <bruno@clisp.org>
1773
1774         pwrite: Work around HP-UX 11.11 bug.
1775         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1776         works and set REPLACE_PWRITE if not.
1777         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1778         function.
1779         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1780
1781 2010-12-31  Bruno Haible  <bruno@clisp.org>
1782
1783         pread: Work around HP-UX 11 bugs.
1784         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1785         and set REPLACE_PREAD if not.
1786         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1787
1788 2010-12-31  Eric Blake  <eblake@redhat.com>
1789
1790         nl_langinfo: fix YESEXPR on Irix 6.5
1791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1792         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1793         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1794         it.
1795
1796 2010-12-31  Bruno Haible  <bruno@clisp.org>
1797
1798         iconv: Document HP-UX 11 bug.
1799         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1800
1801 2010-12-31  Bruno Haible  <bruno@clisp.org>
1802
1803         ldexpl: Fix link error on HP-UX 11.
1804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1805         LDEXPL_LIBM, using $ISNANL_LIBM.
1806
1807 2010-12-31  Eric Blake  <eblake@redhat.com>
1808
1809         ftello: avoid compilation failure with SunStudio c89
1810         * lib/ftello.c (ftello): Use lseek, not llseek.
1811
1812         tests: avoid failing coreutils tests on cygwin
1813         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1814         (create_exe_shims_): Return 0 when skipping.
1815
1816 2010-12-31  Bruno Haible  <bruno@clisp.org>
1817
1818         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1819         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1820
1821 2010-12-31  Bruno Haible  <bruno@clisp.org>
1822
1823         waitpid: Fix link error in C++ mode.
1824         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1825
1826 2010-12-31  Bruno Haible  <bruno@clisp.org>
1827
1828         isnan: Use GCC built-ins when possible.
1829         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1830         __builtin_isnan.
1831         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1832         (isnan): Define using GCC built-ins for GCC >= 4.0.
1833
1834 2010-12-31  Bruno Haible  <bruno@clisp.org>
1835
1836         isnand: Fix mistake.
1837         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1838         __builtin_isnand.
1839
1840 2010-12-31  Bruno Haible  <bruno@clisp.org>
1841
1842         open: Avoid C++ error on HP-UX 11.
1843         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1844
1845 2010-12-31  Bruno Haible  <bruno@clisp.org>
1846
1847         time_r: Add missing declarations on HP-UX 11.
1848         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1849         instead of HAVE_LOCALTIME_R.
1850         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1851         HAVE_LOCALTIME_R always.
1852         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1853         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1854         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1855         HAVE_LOCALTIME_R.
1856         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1857         * doc/posix-functions/localtime_r.texi: Likewise.
1858
1859 2010-12-29  Eric Blake  <eblake@redhat.com>
1860
1861         mountlist: tweak previous commit
1862         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1863         Reported by Paul Eggert.
1864
1865         mountlist: fix local drive detection on cygwin
1866         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1867         that works for cygwin.
1868
1869 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1870
1871         ftoastr, snprintf: ftoastr + snprintf module
1872         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1873         since the snprintf module now should be good enough here.
1874         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1875         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1876         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1877         GNULIB_SNPRINTF only for the test directory, and the latter
1878         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1879         seems to suffice by itself.
1880
1881 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1882
1883         alloca: one step towards thread-safety
1884         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1885         need for a static variable.  All callers changed.  This does not
1886         make the alloca replacement thread-safe, but it's one step.
1887
1888         tests: minor indenting change
1889         * tests/init.sh: Sync from coreutils housekeeping patch
1890         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1891         to keep lines within 80 columns.
1892
1893 2010-12-28  Jim Meyering  <meyering@redhat.com>
1894
1895         regex: don't infloop on persistent failing calloc
1896         * lib/regexec.c (build_trtable): Return failure indication upon
1897         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1898         In glibc, this was fixed for version 2.13:
1899         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1900
1901 2010-12-28  Bruno Haible  <bruno@clisp.org>
1902             Paul Eggert <eggert@cs.ucla.edu>
1903
1904         linkat: Make implementation robust against system behaviour variations.
1905         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1906         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1907         way, and to -2 if it needs a generic runtime test.
1908         * lib/linkat.c (solaris_optimized_link_immediate,
1909         solaris_optimized_link_follow): New functions.
1910         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1911         (check_same_link): Use it.
1912
1913 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1914
1915         New module 'unigbrk/base'.
1916         * modules/unigbrk/base: New file.
1917         * lib/unigbrk.in.h: New file.
1918
1919         New module 'unigbrk/uc-gbrk-prop'.
1920         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1921         * modules/unigbrk/uc-gbrk-prop: New file.
1922         * lib/unigbrk/gbrkprop.h: New file.
1923         * lib/unigbrk/uc-gbrk-prop.c: New file.
1924
1925         New module 'unigbrk/uc-is-grapheme-break'.
1926         * modules/unigbrk/uc-is-grapheme-break: New file.
1927         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1928         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1929         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1930         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1931         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1932
1933         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1934
1935 2010-12-27  Bruno Haible  <bruno@clisp.org>
1936
1937         linkat test: Avoid failure on Solaris 11 2010-11.
1938         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1939
1940 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1941
1942         utimens: work around glibc rounding bug on more platforms
1943         * lib/utimens.c (fdutimens): Work around rounding bug even if
1944         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1945         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1946
1947 2010-12-27  Bruno Haible  <bruno@clisp.org>
1948
1949         select tests: Improve comments.
1950         * tests/test-select.c (do_select): Add comments.
1951
1952 2010-12-27  Bruno Haible  <bruno@clisp.org>
1953
1954         select tests: Safer way of handling timeout.
1955         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1956         at every invocation.
1957
1958 2010-12-27  Bruno Haible  <bruno@clisp.org>
1959
1960         select tests: Use 'bool' where appropriate.
1961         * tests/test-select.c (connect_to_socket): Change argument type to
1962         'bool'.
1963
1964 2010-12-27  Bruno Haible  <bruno@clisp.org>
1965
1966         select tests: Use existing modules.
1967         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1968         (configure.ac): Don't test for unistd.h.
1969         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1970         declared in <unistd.h>.
1971
1972 2010-12-27  Bruno Haible  <bruno@clisp.org>
1973
1974         mbrtowc: Work around a Solaris 7 bug.
1975         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1976         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1977         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1978         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1979         MBRTOWC_NULL_ARG1_BUG.
1980         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1981         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1982         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1983         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1984
1985 2010-12-27  Jim Meyering  <meyering@redhat.com>
1986
1987         read-file.c: tweak syntax
1988         * lib/read-file.c (fread_file): Remove space after "*" in function
1989         definitions.
1990
1991 2010-12-27  Bruno Haible  <bruno@clisp.org>
1992
1993         times test: Avoid gcc warnings on OSF/1.
1994         * tests/test-times.c (main): Cast printf arguments from clock_t to
1995         'long int'.
1996
1997 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         utimens: work around glibc rounding bug on older Linux kernels
2000         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2001         on Linux with a glibc whose utimes might not work, then work
2002         around a longstanding glibc bug involving rounding rather than
2003         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2005
2006 2010-12-26  Bruno Haible  <bruno@clisp.org>
2007
2008         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2009         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2010         _GL_CXXALIAS_SYS.
2011         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2012
2013 2010-12-26  Bruno Haible  <bruno@clisp.org>
2014
2015         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2016         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2017         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2018         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2019         looking for the declaration.
2020         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2021         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2022         problem.
2023         * doc/posix-functions/inet_pton.texi: Likewise.
2024
2025 2010-12-26  Bruno Haible  <bruno@clisp.org>
2026
2027         arpa_inet: Use the common idioms with C++ support.
2028         * lib/arpa_inet.in.h: Include c++defs.h.
2029         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2030         support.
2031         * modules/arpa_inet (Depends-on): Add c++defs.
2032         (Makefile.am): Substitute the contents of c++defs.h.
2033         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2034         * modules/arpa_inet-c++-tests: New file.
2035         * tests/test-arpa_inet-c++.cc: New file.
2036
2037 2010-12-25  Bruno Haible  <bruno@clisp.org>
2038
2039         Fix more C++ link errors on Solaris 8.
2040         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2041         $(LIB_EACCESS).
2042         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2043         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2044         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2045         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2046         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2047
2048 2010-12-25  Bruno Haible  <bruno@clisp.org>
2049
2050         printf-posix: Fix link error when a non-GCC compiler is used.
2051         * lib/stdio.in.h (printf): When not using GCC, override printf
2052         correctly.
2053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2054
2055 2010-12-25  Bruno Haible  <bruno@clisp.org>
2056
2057         strerror_r-posix: Update doc.
2058         * doc/posix-functions/strerror_r.texi: Update doc about the return
2059         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2060
2061 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2062
2063         utimens: simplify the logic of the previous change
2064         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2065         This should not affect whether the test succeeds or fails.
2066
2067         utimens: configure better on hosts with NFS clock skew
2068         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2069         uses the clock of the local host.  It might use the clock of the
2070         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2072
2073 2010-12-25  Bruno Haible  <bruno@clisp.org>
2074
2075         ptsname test: Avoid failure on Solaris.
2076         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2077         open a pseudo-terminal; don't use BSD-style ptys.
2078         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2079
2080 2010-12-25  Bruno Haible  <bruno@clisp.org>
2081
2082         ptsname: Avoid ERANGE failure on some systems.
2083         * lib/ptsname.c (buffer): Increase size.
2084
2085 2010-12-25  Bruno Haible  <bruno@clisp.org>
2086
2087         rename, renameat: Avoid test failures at NFS mounted locations.
2088         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2089         so that subsequent mkdir calls succeed.
2090
2091 2010-12-25  Bruno Haible  <bruno@clisp.org>
2092
2093         iswblank: Fix C++ link error on Solaris 8.
2094         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2095         _GL_FUNCDECL_SYS.
2096
2097 2010-12-25  Bruno Haible  <bruno@clisp.org>
2098
2099         unistd: Fix C++ link error on Solaris 8.
2100         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2101
2102 2010-12-25  Bruno Haible  <bruno@clisp.org>
2103
2104         readlink doc: Mention an old glibc bug.
2105         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2106
2107 2010-12-25  Bruno Haible  <bruno@clisp.org>
2108
2109         fcntl-h: Fix for use of C++ on glibc systems.
2110         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2111         also on glibc systems in C++ mode.
2112         Reported by Gary V. Vaughan <gary@gnu.org>.
2113
2114 2010-12-25  Bruno Haible  <bruno@clisp.org>
2115
2116         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2117         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2118
2119 2010-12-25  Bruno Haible  <bruno@clisp.org>
2120
2121         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2122         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2123         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2124         test whether truncl works according to ISO C 99 with IEC 60559.
2125         * m4/truncl-ieee.m4: New file.
2126         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2127         m4/signbit.m4.
2128         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2129
2130 2010-12-25  Bruno Haible  <bruno@clisp.org>
2131
2132         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2133         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2134         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2135         test whether ceill works according to ISO C 99 with IEC 60559.
2136         * m4/ceill-ieee.m4: New file.
2137         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2138         m4/signbit.m4.
2139         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2140
2141 2010-12-25  Bruno Haible  <bruno@clisp.org>
2142
2143         Ensure all prerequisites of <wchar.h> are included.
2144         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2145         before <wchar.h>.
2146         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2147         gl_MBRLEN_NUL_RETVAL): Likewise.
2148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2150         AC_FUNC_MBRTOWC): Likewise.
2151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2152         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2154         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2155         Likewise.
2156         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2157         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2158         (gl_WCHAR_H): Improve comments.
2159         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2160
2161 2010-12-25  Bruno Haible  <bruno@clisp.org>
2162
2163         strtok_r: Fix C syntax error in autoconf macro.
2164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2165         characters in test program.
2166
2167 2010-12-24  Bruno Haible  <bruno@clisp.org>
2168
2169         ceil, trunc, round: Fix gcc warnings.
2170         * lib/ceil.c (MIN): Undefine before redefining.
2171         * lib/trunc.c (MIN): Likewise.
2172         * lib/round.c (MIN): Likewise.
2173         Include <math.h> first.
2174
2175 2010-12-24  Bruno Haible  <bruno@clisp.org>
2176
2177         select tests: Avoid failures on OSF/1 5.1.
2178         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2179         failure of closing the last socket; it may fail with ECONNRESET.
2180
2181 2010-12-24  Eric Blake  <eblake@redhat.com>
2182
2183         stdint: avoid HP-UX 10.20 preprocessor bug
2184         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2185         than #if.
2186         * tests/test-floor2.c (main): Likewise.
2187         Reported by Peter O'Gorman.
2188
2189         pipe: make obsoletion transition easier
2190         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2191         * modules/pipe (Files): Include revived file.
2192         (Include): Drop reference, to mirror getdate's behavior.
2193
2194 2010-12-24  Bruno Haible  <bruno@clisp.org>
2195
2196         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2197         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2198         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2200
2201 2010-12-24  Bruno Haible  <bruno@clisp.org>
2202
2203         gethostname: Ensure declaration on NonStop Kernel.
2204         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2206
2207 2010-12-24  Bruno Haible  <bruno@clisp.org>
2208
2209         sys_select: Ensure all necessary types on NonStop Kernel.
2210         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2211         include <sys/time.h>.
2212         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2213         NonStop Kernel.
2214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2215
2216 2010-12-24  Bruno Haible  <bruno@clisp.org>
2217
2218         sys_select: Remove unneeded include.
2219         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2220         have <sys/select.h>.
2221
2222 2010-12-24  Bruno Haible  <bruno@clisp.org>
2223
2224         gethostname: Provide a fallback for HOST_NAME_MAX.
2225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2226         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2227         instead.
2228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2229
2230 2010-12-24  Bruno Haible  <bruno@clisp.org>
2231
2232         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2233         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2234         (SA_RESTART): Likewise.
2235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2236
2237 2010-12-24  Bruno Haible  <bruno@clisp.org>
2238
2239         signal: Define NSIG.
2240         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2241         * tests/test-signal.c (nsig): New variable.
2242         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2243
2244 2010-12-24  Bruno Haible  <bruno@clisp.org>
2245
2246         rename, renameat: Avoid test failures on OSF/1 5.1.
2247         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2248         alternative error codes.
2249         * tests/test-renameat.c (main): Likewise.
2250
2251 2010-12-24  Bruno Haible  <bruno@clisp.org>
2252
2253         *printf: Detect large precisions bug on Solaris 10/SPARC.
2254         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2255         by Paul Eggert.
2256         * tests/test-snprintf-posix.h (test_function): Add this test code here
2257         too.
2258         * tests/test-sprintf-posix.h (test_function): Likewise.
2259         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2260         * tests/test-vasprintf-posix.c (test_function): Likewise.
2261         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2262         around by gnulib.
2263         * doc/posix-functions/printf.texi: Likewise.
2264         * doc/posix-functions/snprintf.texi: Likewise.
2265         * doc/posix-functions/sprintf.texi: Likewise.
2266         * doc/posix-functions/vfprintf.texi: Likewise.
2267         * doc/posix-functions/vprintf.texi: Likewise.
2268         * doc/posix-functions/vsnprintf.texi: Likewise.
2269         * doc/posix-functions/vsprintf.texi: Likewise.
2270         * doc/posix-functions/dprintf.texi: Undo last commit.
2271         * doc/posix-functions/vdprintf.texi: Likewise.
2272
2273 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2274
2275         tests: port test-fdutimensat.c to Solaris 8
2276         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2277         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2278         On Solaris 8, it fails with errno == ENOSYS, because there is no
2279         futimens (so it can't use the fd), and there is no lutimens (so it
2280         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2281
2282         vsnprintf: make more consistent with snprintf; doc fixes
2283
2284         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2285         the byte count return problem was promoted from the snprintf-posix
2286         to the snprintf module.
2287         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2289         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2290         * tests/test-snprintf.c (main): Check the byte count returned.
2291         * tests/test-vsnprintf.c (main): Likewise.
2292
2293 2010-12-23  Eric Blake  <eblake@redhat.com>
2294
2295         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2296         * modules/sigpipe (License): Relax license.
2297
2298 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         doc: document Solaris printf bug with large float precisions
2301         * doc/posix-functions/dprintf.texi (dprintf):
2302         * doc/posix-functions/fprintf.texi (fprintf):
2303         * doc/posix-functions/printf.texi (printf):
2304         * doc/posix-functions/snprintf.texi (snprintf):
2305         * doc/posix-functions/sprintf.texi (sprintf):
2306         * doc/posix-functions/vdprintf.texi (vdprintf):
2307         * doc/posix-functions/vfprintf.texi (vfprintf):
2308         * doc/posix-functions/vprintf.texi (vprintf):
2309         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2310         * doc/posix-functions/vsprintf.texi (vsprintf):
2311         Mention that these functions mishandle large floating point
2312         precisions on Solaris 10.  The same bug is also present in Solaris
2313         8, and I assume earlier.  This causes "cd gnulib-tests; make
2314         check" to fail on Solaris 8 (and I assume, later) when building
2315         the latest coreutils, in test-vasprintf-posix's call to
2316         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2317         the wide flavors (e.g., wprintf) so this patch just updates the
2318         documentation for the narrow ones.
2319
2320         test-posixtm.c: add two tests
2321         * tests/test-posixtm.c: Add two tests, to highlight the
2322         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2323         around this bug; this is merely to document it.
2324
2325 2010-12-22  Bruno Haible  <bruno@clisp.org>
2326
2327         getlogin_r: Work around portability problem on OSF/1.
2328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2329         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2330         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2331         test for a truncated result.
2332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2333         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2334         * modules/getlogin_r (Depends-on): Add memchr.
2335         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2336
2337 2010-12-22  Bruno Haible  <bruno@clisp.org>
2338
2339         ptsname: Avoid test failure on OSF/1 5.1.
2340         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2341         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2342         (same_slave): New function.
2343         (main): Use it to compare ptsname's result with the expected file name.
2344
2345 2010-12-22  Bruno Haible  <bruno@clisp.org>
2346
2347         Port extended stdio modules to HP NonStop Kernel.
2348         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2349         macros.
2350         * lib/fbufmode.c: Update comments.
2351         * lib/fflush.c: Likewise.
2352         * lib/fpurge.c: Likewise.
2353         * lib/freadable.c: Likewise.
2354         * lib/freadahead.c: Likewise.
2355         * lib/freading.c: Likewise.
2356         * lib/freadptr.c: Likewise.
2357         * lib/freadseek.c: Likewise.
2358         * lib/fseeko.c: Likewise.
2359         * lib/fseterr.c: Likewise.
2360         * lib/fwritable.c: Likewise.
2361         * lib/fwriting.c: Likewise.
2362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2363
2364 2010-12-22  Bruno Haible  <bruno@clisp.org>
2365
2366         ttyname_r: Work around bug on OSF/1 5.1.
2367         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2368         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2369         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2370         present.
2371         * lib/ttyname_r.c (ttyname_r): Update comments.
2372
2373 2010-12-22  Bruno Haible  <bruno@clisp.org>
2374
2375         round: Implement result sign according to IEEE 754.
2376         * lib/round.c (MIN, MINUS_ZERO): New macros.
2377         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2378         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2379         * tests/test-round-ieee.c (main): Likewise.
2380         * tests/test-roundl-ieee.c (main): Likewise.
2381
2382         trunc: Implement result sign according to IEEE 754.
2383         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2384         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2385         * tests/test-trunc2.c: Include minus-zero.h.
2386         (MINUS_ZERO): New macro.
2387         (trunc_reference): Keep in sync with lib/trunc.c.
2388         * tests/test-truncf2.c: Include minus-zero.h.
2389         (MINUS_ZERO): New macro.
2390         (truncf_reference): Keep in sync with lib/trunc.c.
2391         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2392         * tests/test-trunc-ieee.c (main): Likewise.
2393         * tests/test-truncl-ieee.c (main): Likewise.
2394
2395         ceil: Implement result sign according to IEEE 754.
2396         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2397         (FUNC): Return -0.0 for -1 < x < 0.
2398         * tests/test-ceil2.c: Include minus-zero.h.
2399         (MINUS_ZERO): New macro.
2400         (ceil_reference): Keep in sync with lib/ceil.c.
2401         * tests/test-ceilf2.c: Include minus-zero.h.
2402         (MINUS_ZERO): New macro.
2403         (ceilf_reference): Keep in sync with lib/ceil.c.
2404         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2405         * tests/test-ceil-ieee.c (main): Likewise.
2406         * tests/test-ceill-ieee.c (main): Likewise.
2407
2408         floor: Implement result sign according to IEEE 754.
2409         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2410         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2411         * tests/test-floorf2.c (floorf_reference): Likewise.
2412         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2413         * tests/test-floor-ieee.c (main): Likewise.
2414         * tests/test-floorl-ieee.c (main): Likewise.
2415
2416 2010-12-22  Bruno Haible  <bruno@clisp.org>
2417
2418         getaddrinfo: Update doc.
2419         * doc/posix-functions/gai_strerror.texi: Return type is also different
2420         on AIX and HP-UX.
2421
2422 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         getaddrinfo, inet_ntop: Update doc for Solaris.
2425         * doc/posix-functions/gai_strerror.texi: Return type is also an
2426         issue on Solaris 9 and earlier.
2427         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2428         on Solaris 10 and earlier.
2429
2430 2010-12-21  Bruno Haible  <bruno@clisp.org>
2431
2432         New module 'roundl-ieee'.
2433         * modules/roundl-ieee: New file.
2434         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2435         test whether roundl works according to ISO C 99 with IEC 60559.
2436         * m4/roundl-ieee.m4: New file.
2437         * modules/roundl-ieee-tests: New file.
2438         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2439         * tests/test-roundl.c (main): Remove signbit tests.
2440         * modules/roundl-tests (Depends-on): Remove signbit.
2441         * doc/posix-functions/roundl.texi: Mention the new module.
2442
2443 2010-12-21  Bruno Haible  <bruno@clisp.org>
2444
2445         New module 'truncl-ieee'.
2446         * modules/truncl-ieee: New file.
2447         * modules/truncl-ieee-tests: New file.
2448         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2449         * tests/test-truncl.c (main): Remove signbit tests.
2450         * modules/truncl-tests (Depends-on): Remove signbit.
2451         * doc/posix-functions/truncl.texi: Mention the new module.
2452
2453 2010-12-21  Bruno Haible  <bruno@clisp.org>
2454
2455         New module 'ceill-ieee'.
2456         * modules/ceill-ieee: New file.
2457         * modules/ceill-ieee-tests: New file.
2458         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2459         * tests/test-ceill.c (main): Remove signbit tests.
2460         * modules/ceill-tests (Depends-on): Remove signbit.
2461         * doc/posix-functions/ceill.texi: Mention the new module.
2462
2463 2010-12-21  Bruno Haible  <bruno@clisp.org>
2464
2465         New module 'floorl-ieee'.
2466         * modules/floorl-ieee: New file.
2467         * modules/floorl-ieee-tests: New file.
2468         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2469         * tests/test-floorl.c (main): Remove signbit tests.
2470         * modules/floorl-tests (Depends-on): Remove signbit.
2471         * doc/posix-functions/floorl.texi: Mention the new module.
2472
2473 2010-12-21  Bruno Haible  <bruno@clisp.org>
2474
2475         New module 'round-ieee'.
2476         * modules/round-ieee: New file.
2477         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2478         whether round works according to ISO C 99 with IEC 60559.
2479         * m4/round-ieee.m4: New file.
2480         * modules/round-ieee-tests: New file.
2481         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2482         * tests/test-round1.c (main): Remove signbit tests.
2483         * modules/round-tests (Depends-on): Remove 'signbit'.
2484         * doc/posix-functions/round.texi: Mention the new module.
2485
2486 2010-12-21  Bruno Haible  <bruno@clisp.org>
2487
2488         New module 'trunc-ieee'.
2489         * modules/trunc-ieee: New file.
2490         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2491         whether trunc works according to ISO C 99 with IEC 60559.
2492         * m4/trunc-ieee.m4: New file.
2493         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2495         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2496         * modules/trunc-ieee-tests: New file.
2497         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2498         * tests/test-trunc1.c (main): Remove signbit tests.
2499         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2500         * doc/posix-functions/trunc.texi: Mention the new module.
2501
2502 2010-12-21  Bruno Haible  <bruno@clisp.org>
2503
2504         New module 'ceil-ieee'.
2505         * modules/ceil-ieee: New file.
2506         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2507         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2508         ISO C 99 with IEC 60559.
2509         * m4/ceil-ieee.m4: New file.
2510         * modules/ceil (Files): Add lib/ceil.c.
2511         (Depends-on): Add 'float'.
2512         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2513         * lib/math.in.h (ceil): New declaration.
2514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2515         REPLACE_CEIL.
2516         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2517         * modules/ceil-ieee-tests: New file.
2518         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2519         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2520         * doc/posix-functions/ceil.texi: Mention the new module.
2521
2522 2010-12-21  Bruno Haible  <bruno@clisp.org>
2523
2524         New module 'floor-ieee'.
2525         * modules/floor-ieee: New file.
2526         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2527         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2528         ISO C 99 with IEC 60559.
2529         * m4/floor-ieee.m4: New file.
2530         * modules/floor (Files): Add lib/floor.c.
2531         (Depends-on): Add 'float'.
2532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2533         * lib/math.in.h (floor): New declaration.
2534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2535         REPLACE_FLOOR.
2536         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2537         * modules/floor-ieee-tests: New file.
2538         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2539         * tests/test-math-c++.cc: Check the signature of 'floor'.
2540         * doc/posix-functions/floor.texi: Mention the new module.
2541
2542 2010-12-21  Bruno Haible  <bruno@clisp.org>
2543
2544         New module 'roundf-ieee'.
2545         * modules/roundf-ieee: New file.
2546         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2547         test whether roundf works according to ISO C 99 with IEC 60559.
2548         * m4/roundf-ieee.m4: New file.
2549         * modules/roundf-ieee-tests: New file.
2550         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2551         * tests/test-roundf1.c (main): Remove signbit tests.
2552         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2553         * doc/posix-functions/roundf.texi: Mention the new module.
2554
2555 2010-12-21  Bruno Haible  <bruno@clisp.org>
2556
2557         New module 'truncf-ieee'.
2558         * modules/truncf-ieee: New file.
2559         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2560         test whether truncf works according to ISO C 99 with IEC 60559.
2561         * m4/truncf-ieee.m4: New file.
2562         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2564         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2565         * modules/truncf-ieee-tests: New file.
2566         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2567         * tests/test-truncf1.c (main): Remove signbit tests.
2568         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2569         * doc/posix-functions/truncf.texi: Mention the new module.
2570
2571 2010-12-21  Bruno Haible  <bruno@clisp.org>
2572
2573         New module 'ceilf-ieee'.
2574         * modules/ceilf-ieee: New file.
2575         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2576         test whether ceilf works according to ISO C 99 with IEC 60559.
2577         * m4/ceilf-ieee.m4: New file.
2578         * modules/ceilf-ieee-tests: New file.
2579         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2580         * tests/test-ceilf1.c (main): Remove signbit tests.
2581         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2582         * doc/posix-functions/ceilf.texi: Mention the new module.
2583
2584 2010-12-21  Bruno Haible  <bruno@clisp.org>
2585
2586         New module 'floorf-ieee'.
2587         * modules/floorf-ieee: New file.
2588         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2589         test whether floorf works according to ISO C 99 with IEC 60559.
2590         * m4/floorf-ieee.m4: New file.
2591         * modules/floorf-ieee-tests: New file.
2592         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2593         * tests/test-floorf1.c (main): Remove signbit tests.
2594         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2595         * doc/posix-functions/floorf.texi: Mention the new module.
2596
2597 2010-12-21  Bruno Haible  <bruno@clisp.org>
2598
2599         Support for minus zero in autoconf macros.
2600         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2601         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2602         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2603         * tests/minus-zero.h: Update comments.
2604
2605 2010-12-21  Bruno Haible  <bruno@clisp.org>
2606
2607         Tests for module 'ceil'.
2608         * modules/ceil-tests: New file.
2609         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2610         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2611
2612 2010-12-21  Bruno Haible  <bruno@clisp.org>
2613
2614         Tests for module 'floor'.
2615         * modules/floor-tests: New file.
2616         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2617         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2618
2619 2010-12-21  Bruno Haible  <bruno@clisp.org>
2620
2621         math: Fix indentation.
2622         * lib/math.in.h (floorf): Fix indentation.
2623
2624 2010-12-21  Bruno Haible  <bruno@clisp.org>
2625
2626         Fix cross-compilation guesses on Solaris.
2627         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2628         not match "solaris2.10".
2629         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2630         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2631         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2632
2633 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2634
2635         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2636         This fixes a problem observed with the latest coreutils snapshot
2637         that caused a test to fail on Solaris 8.  src/csplit.c's call
2638         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2639         earlier, instead of returning the number of bytes that would have
2640         been generated; this causes csplit to incorrectly report memory
2641         exhaustion.
2642         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2643         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2644         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2645         comments to match.
2646         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2647         Fix typo in matching older versions of Solaris: "solaris2.10"
2648         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2649         only for guessing while cross-compiling.
2650         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2651
2652 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         ftoastr: fix comment again
2655         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2657         Also, simplify example a bit by using flags = 0.
2658
2659 2010-12-20  Bruno Haible  <bruno@clisp.org>
2660
2661         round*, trunc*: Update documentation regarding glibc.
2662         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2663         * doc/posix-functions/round.texi: Likewise.
2664         * doc/posix-functions/roundl.texi: Likewise.
2665         * doc/posix-functions/truncf.texi: Likewise.
2666         * doc/posix-functions/trunc.texi: Likewise.
2667         * doc/posix-functions/truncl.texi: Likewise.
2668
2669 2010-12-20  Bruno Haible  <bruno@clisp.org>
2670
2671         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2672         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2673         * doc/posix-functions/round.texi: Likewise.
2674         * doc/posix-functions/roundl.texi: Likewise.
2675
2676 2010-12-20  Bruno Haible  <bruno@clisp.org>
2677
2678         ttyname_r: Add missing declaration on HP-UX 11.
2679         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2680         HAVE_TTYNAME_R.
2681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2682         declared. Set HAVE_TTYNAME_R always.
2683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2684         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2685         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2686         HAVE_TTYNAME_R.
2687         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2688
2689 2010-12-20  Bruno Haible  <bruno@clisp.org>
2690
2691         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2692         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2693         * doc/posix-functions/getlogin_r.texi: Likewise.
2694         * tests/test-getlogin.c: Include <errno.h>.
2695         (main): Avoid test failure on HP-UX 11.11.
2696         * tests/test-getlogin_r.c (main): Likewise.
2697
2698 2010-12-20  Bruno Haible  <bruno@clisp.org>
2699
2700         getlogin_r: Add missing declaration on HP-UX 11.
2701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2702         declared also when it exists as a function.
2703         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2704
2705 2010-12-20  Bruno Haible  <bruno@clisp.org>
2706
2707         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2708         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2709         through wcrtomb.
2710
2711 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2712
2713         ftoastr: fix comment
2714         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2716
2717 2010-12-19  Bruno Haible  <bruno@clisp.org>
2718
2719         isnan: Ensure it is a macro.
2720         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2721         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2722         Solaris.
2723
2724 2010-12-19  Bruno Haible  <bruno@clisp.org>
2725
2726         ldexpl test: Fix link error on OSF/1 5.1.
2727         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2728
2729 2010-12-19  Bruno Haible  <bruno@clisp.org>
2730
2731         wctype: Make it work in C++ mode on OSF/1 5.1.
2732         * lib/wctype.in.h (iswblank): Declare but not define here.
2733         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2734         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2735         * modules/wctype (Files): Add lib/iswblank.c.
2736
2737 2010-12-19  Bruno Haible  <bruno@clisp.org>
2738
2739         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2740         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2741         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2742
2743 2010-12-19  Bruno Haible  <bruno@clisp.org>
2744
2745         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2747         _POSIX_PII_SOCKET.
2748         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2749         * doc/posix-functions/recvfrom.texi: Likewise.
2750         * doc/posix-functions/send.texi: Likewise.
2751         * doc/posix-functions/sendto.texi: Likewise.
2752
2753 2010-12-19  Bruno Haible  <bruno@clisp.org>
2754
2755         tcgetsid: Add missing declaration on OSF/1 5.1.
2756         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2757         HAVE_TCGETSID.
2758         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2759         Don't set HAVE_TCGETSID.
2760         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2761         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2762         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2763         HAVE_TCGETSID.
2764         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2765
2766 2010-12-19  Bruno Haible  <bruno@clisp.org>
2767
2768         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2769         * lib/stdio.in.h: During the include_next statement, let recursive
2770         includes of this file include only the system header file.
2771
2772 2010-12-19  Bruno Haible  <bruno@clisp.org>
2773
2774         iconv_open: Fix regression from 2010-12-04.
2775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2776         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2777
2778 2010-12-19  Bruno Haible  <bruno@clisp.org>
2779
2780         stdbool test: Avoid a gcc warning.
2781         * tests/test-stdbool.c (main): Fail if e1 is false.
2782         Reported by Jim Meyering.
2783
2784 2010-12-19  Jim Meyering  <meyering@redhat.com>
2785
2786         setenv: restore to working order
2787         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2788         mistakenly removed.
2789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2790         HAVE_SETENV.
2791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2792         HAVE_SETENV.
2793
2794 2010-12-19  Bruno Haible  <bruno@clisp.org>
2795
2796         Document some different function declarations on OSF/1 5.1.
2797         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2798         * doc/posix-functions/inet_ntop.texi: Likewise.
2799         * doc/posix-functions/gethostname.texi: Likewise.
2800         * lib/unistd.in.h (gethostname): Update comment.
2801
2802 2010-12-19  Bruno Haible  <bruno@clisp.org>
2803
2804         doc: Mention vasprintf-posix module.
2805         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2806         the 'vasprintf-posix' module.
2807         * doc/glibc-functions/vasprintf.texi: Likewise.
2808
2809 2010-12-19  Bruno Haible  <bruno@clisp.org>
2810
2811         unsetenv: Add missing declaration on OSF/1 5.1.
2812         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2813         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2814         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2816         not HAVE_UNSETENV.
2817         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2818         HAVE_UNSETENV.
2819         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2820
2821 2010-12-19  Bruno Haible  <bruno@clisp.org>
2822
2823         setenv: Add missing declaration on OSF/1 5.1.
2824         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2826         declared. Don't set HAVE_SETENV.
2827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2828         not HAVE_SETENV.
2829         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2830         HAVE_SETENV.
2831         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2832
2833 2010-12-19  Bruno Haible  <bruno@clisp.org>
2834
2835         nl_langinfo tests: Avoid gcc warning.
2836         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2837
2838 2010-12-19  Bruno Haible  <bruno@clisp.org>
2839
2840         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2841         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2842         _GL_CXXALIAS_SYS.
2843
2844 2010-12-19  Bruno Haible  <bruno@clisp.org>
2845
2846         stdbool: Relax test.
2847         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2848         address to 'bool' work in static initializer, for compilers other than
2849         GCC.
2850
2851 2010-12-19  Bruno Haible  <bruno@clisp.org>
2852
2853         ftello: Add missing declaration on OSF/1 5.1.
2854         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2855         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2857         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2858         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2859
2860 2010-12-19  Bruno Haible  <bruno@clisp.org>
2861
2862         fseeko: Add missing declaration on OSF/1 5.1.
2863         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2866         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2867         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2868
2869 2010-12-19  Bruno Haible  <bruno@clisp.org>
2870
2871         fchdir: Add missing declaration on OSF/1 5.1.
2872         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2875         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2876         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2877
2878 2010-12-19  Bruno Haible  <bruno@clisp.org>
2879
2880         relocatable-prog-wrapper: Separate from relocatable-prog.
2881         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2882         uninstall-relocwrapper rule here.
2883         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2884         Reported by Ian Beckwith <ianb@erislabs.net>.
2885
2886 2010-12-19  Bruno Haible  <bruno@clisp.org>
2887
2888         unistr/u8-mbsnlen: Add missing dependency.
2889         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2890         Reported by Ian Beckwith <ianb@erislabs.net>.
2891
2892 2010-12-19  Bruno Haible  <bruno@clisp.org>
2893
2894         iconv: Make it possible again to use this module without 'iconv-h'.
2895         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2896         if it is not defined.
2897         Reported by Ian Beckwith <ianb@erislabs.net>.
2898
2899 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2900
2901         acl: port to Solaris 8 when copying from tmpfs to ufs
2902         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2903         error number.  Problem observed on Solaris 8 with latest
2904         coreutils, with "mv A B", where A is on a tmpfs file system and B
2905         is on a ufs file system.  This caused coreutils' mv/part-symlink
2906         test to fail.
2907
2908         tests: set fail=0 at start
2909         * tests/init.sh (setup_): Move fail=0 initialization here ...
2910         (mktempd_): ... from here, so that tests can rely on fail being
2911         set to 0 initially.  This fixes a problem in coreutils; see:
2912         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2913
2914 2010-12-18  Bruno Haible  <bruno@clisp.org>
2915
2916         memmem-simple: Stylistic changes.
2917         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2918         Fix preprocessor directive indentation.
2919
2920 2010-12-15  Pádraig Brady <P@draigBrady.com>
2921
2922         memmem, memmem-simple: reorganize and expand empty needle check
2923         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2924         functional checks to memmem-simple so that one has a fully functional
2925         memmem by using just this module.
2926         Restrict the performance only check to the memmem module.
2927         Also expand the empty needle check to ensure the correct
2928         pointer is returned, not just a non NULL pointer.
2929         * doc/glibc-functions/memmem.texi: Rearrange the portability
2930         documentation to correlate with the rearranged checks.
2931         Clarify exactly how the memmem and memmem-simple modules
2932         relate to each other.
2933
2934 2010-12-15  Pádraig Brady <P@draigBrady.com>
2935             Bruno Haible  <bruno@clisp.org>
2936
2937         Improve cross-compilation guesses for uClibc.
2938         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2939         that uClibc does not have the glibc bug.
2940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2941         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2942
2943 2010-12-14  Eric Blake  <eblake@redhat.com>
2944
2945         configmake: provide fallbacks for oldest supported autotools
2946         * m4/configmake.m4: New file.
2947         * modules/configmake (Files): Ship it.
2948         (configure.ac): Use it to guarantee fallbacks.
2949
2950 2010-12-13  Pádraig Brady <P@draigBrady.com>
2951
2952         read-file: Improve handling of large files
2953         * lib/read-file.c (fread_file): Minimize realloc()s
2954         for regular files, and better manage sizes around SIZE_MAX.
2955
2956 2010-12-13  Eric Blake  <eblake@redhat.com>
2957
2958         cloexec, fcntl: relax license
2959         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2960         consent from all contributors.
2961         * modules/fcntl (License): Likewise.
2962
2963 2010-12-10  Bruno Haible  <bruno@clisp.org>
2964
2965         Tests for module 'pipe-posix'.
2966         * modules/pipe-posix-tests: New file.
2967         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2968
2969 2010-12-10  Bruno Haible  <bruno@clisp.org>
2970
2971         pipe-posix: Make it work in C++ mode.
2972         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2973         (pipe): Use common idiom, not a macro definition.
2974         * lib/pipe.c: New file.
2975         * m4/pipe.m4: New file.
2976         * modules/pipe-posix (Description): Enhance.
2977         (Files): Add lib/pipe.c, m4/pipe.m4.
2978         (configure.ac): Invoke gl_FUNC_PIPE.
2979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2980         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2981         * tests/test-unistd-c++.cc: Check the signature of pipe.
2982
2983 2010-12-10  Bruno Haible  <bruno@clisp.org>
2984
2985         Rename module 'pipe' to 'spawn-pipe'.
2986         * modules/spawn-pipe: New file, renamed from modules/pipe.
2987         (Files, configure.ac, Makefile.am): Update.
2988         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2989         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2990         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2991         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2992         "spawn-pipe.h" instead of "pipe.h".
2993         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2994         to gl_SPAWN_PIPE.
2995         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2996         (Files, Makefile.am): Update.
2997         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2998         Update.
2999         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3000         Include "spawn-pipe.h" instead of "pipe.h".
3001         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3002         * lib/javacomp.c: Likewise.
3003         * lib/javaversion.c: Likewise.
3004         * lib/pipe-filter-gi.c: Likewise.
3005         * lib/pipe-filter-ii.c: Likewise.
3006         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3007         * modules/javacomp (Depends-on): Likewise.
3008         * modules/javaversion (Depends-on): Likewise.
3009         * modules/pipe-filter-gi (Depends-on): Likewise.
3010         * modules/pipe-filter-ii (Depends-on): Likewise.
3011         * MODULES.html.sh (Executing programs): Update.
3012         * NEWS: Mention the change.
3013
3014 2010-12-10  Eric Blake  <eblake@redhat.com>
3015
3016         pipe-posix: new module
3017         * modules/pipe-posix: New file.
3018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3019         (gl_UNISTD_H): Check for declaration.
3020         * modules/unistd (Makefile.am): Substitute it.
3021         * lib/unistd.in.h (pipe): Provide it for mingw.
3022         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3023         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3024
3025 2010-12-07  Bruno Haible  <bruno@clisp.org>
3026
3027         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3028         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3029         u8_strcmp_gnu.
3030         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3031
3032 2010-12-06  Bruno Haible  <bruno@clisp.org>
3033
3034         Update internal documentation.
3035         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3036
3037 2010-12-04  Bruno Haible  <bruno@clisp.org>
3038
3039         Put more information about failed tests into the test return codes.
3040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3041         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3042         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3044         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3045         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3046         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3047         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3048         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3051         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3052         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3053         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3054         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3055         returns a bit mask.
3056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3057         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3058         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3059         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3060         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3064         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3065         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3067         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3070         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3071         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3072         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3073         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3074         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3077         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3079         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3080         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3081         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3082         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3083         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3084         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3085         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3086         gl_PRINTF_PRECISION): Likewise.
3087         * m4/regex.m4 (gl_REGEX): Likewise.
3088         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3091         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3095         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3096         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3098         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3101         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3102         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3104         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3108         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3109         enumerated value.
3110         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3111
3112 2010-12-04  Bruno Haible  <bruno@clisp.org>
3113
3114         Update for Solaris 11 2010-11.
3115         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3116         Express, released in November 2010.
3117
3118 2010-12-04  Bruno Haible  <bruno@clisp.org>
3119
3120         nproc: Relax license.
3121         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3122         and Paul Eggert.
3123         Requested by Ludovic Courtès <ludo@gnu.org>.
3124
3125 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3126
3127         utimecmp: fine-grained src to nearby coarse-grained dest
3128
3129         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3130         and the source is on a file system with higher-resolution time
3131         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3132         not work, and the time stamps are close together, the algorithm to
3133         determine the exact resolution from the read-back mtime was buggy:
3134         it had a "!=" where it should have had an "==".  This bug has been
3135         in the code ever since it was introduced to gnulib.
3136         Problem reported by Dan Jacobson in
3137         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3138
3139 2010-11-30  Bruno Haible  <bruno@clisp.org>
3140
3141         strerror_r-posix: Fix autoconf test.
3142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3143
3144 2010-11-28  Bruno Haible  <bruno@clisp.org>
3145             Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         Tests for module 'getdomainname'.
3148         * modules/getdomainname-tests: New file.
3149         * tests/test-getdomainname.c: New file, based on
3150         tests/test-gethostname.c.
3151
3152 2010-11-28  Bruno Haible  <bruno@clisp.org>
3153             Paul Eggert  <eggert@cs.ucla.edu>
3154
3155         getdomainname: Use the system function when possible.
3156         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3157         (getdomainname): Replace if needed. Provide the declaration if it is
3158         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3159         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3160         (getdomainname): When the system has getdomainname, call the system
3161         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3163         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3164         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3165         the function if its second argument is of type 'int' or if it is found
3166         in libnsl.
3167         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3168         <sys/systeminfo.h> and sysinfo().
3169         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3171         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3172         HAVE_GETDOMAINNAME.
3173         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3174         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3175         * doc/glibc-functions/getdomainname.texi: Document the problems with
3176         the getdomainname declaration.
3177
3178 2010-11-28  Bruno Haible  <bruno@clisp.org>
3179
3180         sys_socket: Ensure ss_family field on AIX.
3181         * lib/sys_socket.in.h (ss_family): New macro definition.
3182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3183         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3184         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3185         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3186         * modules/sys_socket (Makefile.am): Substitute
3187         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3188         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3189
3190 2010-11-27  Bruno Haible  <bruno@clisp.org>
3191
3192         readline: Improve configure output.
3193         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3194         "checking for readline..." result understandable.
3195
3196 2010-11-27  Bruno Haible  <bruno@clisp.org>
3197
3198         *printf-posix: Detect a bug on Solaris 10/x86.
3199         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3200         for floating-point output.
3201         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3202         directive.
3203         * tests/test-snprintf-posix.h (test_function): Likewise.
3204         * tests/test-sprintf-posix.h (test_function): Likewise.
3205         * tests/test-vasprintf-posix.c (test_function): Likewise.
3206         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3207         * doc/posix-functions/printf.texi: Likewise.
3208         * doc/posix-functions/snprintf.texi: Likewise.
3209         * doc/posix-functions/sprintf.texi: Likewise.
3210         * doc/posix-functions/vfprintf.texi: Likewise.
3211         * doc/posix-functions/vprintf.texi: Likewise.
3212         * doc/posix-functions/vsnprintf.texi: Likewise.
3213         * doc/posix-functions/vsprintf.texi: Likewise.
3214         * doc/glibc-functions/obstack_printf.texi: Likewise.
3215         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3216
3217 2010-11-27  Bruno Haible  <bruno@clisp.org>
3218
3219         Fix link error when module libunistring-optional is in use.
3220         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3221         * modules/striconveha-tests (Makefile.am): Likewise.
3222
3223 2010-11-27  Bruno Haible  <bruno@clisp.org>
3224
3225         regex: Mention link dependencies.
3226         * modules/regex (Link): New section.
3227         * modules/rpmatch (Link): Likewise.
3228         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3229
3230 2010-11-27  Bruno Haible  <bruno@clisp.org>
3231
3232         ftoastr: Fix compilation error on Solaris.
3233         * lib/ftoastr.c: Include <config.h>.
3234
3235 2010-11-27  Bruno Haible  <bruno@clisp.org>
3236
3237         getloadavg: Update documentation.
3238         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3239
3240 2010-11-27  Bruno Haible  <bruno@clisp.org>
3241
3242         sys_socket: Fix test whether the functions are declared.
3243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3244         not <sys/select.h>.
3245
3246 2010-11-27  Bruno Haible  <bruno@clisp.org>
3247
3248         getpass: Make sure to get system declaration on some platforms.
3249         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3250         gl_USE_SYSTEM_EXTENSIONS.
3251         * modules/getpass (Depends-on): Add extensions.
3252
3253 2010-11-26  Bruno Haible  <bruno@clisp.org>
3254
3255         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3256         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3257         'iconv' module is present.
3258         (ICONV_CONST): New macro.
3259         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3260         ICONV_CONST.
3261         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3262         set ICONV_CONST.
3263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3264         here.
3265         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3266         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3267         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3268         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3269         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3270         present.
3271
3272 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         ftoastr: comment fix
3275         * lib/ftoastr.c: "little" -> "little or no" in comment
3276
3277 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3278
3279         stdint: port to GCC 4.3 + OSX + Octave
3280         On this platform, stdint.h is buggy and defines int64_t to long
3281         long int.  The replacement defined it to long int, causing
3282         problems with C++ style name mangling.  Instead, trust the system
3283         definition if INT64_MAX is defined, and likewise for the unsigned
3284         variant.   Problem reported by Jarno Rajahalme in
3285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3286         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3287         and don't mess with int64_t and INT64_MAX in this case.
3288         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3289
3290 2010-11-24  Bruno Haible  <bruno@clisp.org>
3291
3292         doc: Corrections regarding MacOS X 10.4 and 10.5.
3293         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3294         MacOS X.
3295         Reported by Simon Josefsson.
3296
3297 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3298
3299         Uninstall ".bin" files installed by relocwrapper.
3300         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3301         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3302         unless it is already there.
3303
3304 2010-11-21  Bruno Haible  <bruno@clisp.org>
3305
3306         Update for NetBSD 5.0.
3307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3308         NetBSD; the test fails on NetBSD 5.0.
3309         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3310         about NetBSD.
3311
3312 2010-11-21  Bruno Haible  <bruno@clisp.org>
3313
3314         Update for HP-UX 11.23 and HP-UX 11.31.
3315         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3316         HP-UX.
3317
3318 2010-11-21  Bruno Haible  <bruno@clisp.org>
3319
3320         Update for MacOS X 10.5.
3321         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3322         MacOS X; the test fails on MacOS X 10.5.8.
3323         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3324         about MacOS X.
3325
3326 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3327
3328         bootstrap: add bootstrap_sync option.
3329         See discussion at
3330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3332         * build-aux/bootstrap: Accept --bootstrap-sync to update
3333         bootstrap if it is not identical to the local gnulib's
3334         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3335         enable this by default.  Accept --no-bootstrap-sync to disable
3336         it.
3337
3338 2010-11-20  Bruno Haible  <bruno@clisp.org>
3339
3340         Ensure that <features.h> is included before __GLIBC__ is tested.
3341         * lib/printf-parse.h: Include <features.h>.
3342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3343         Reported by Mike Frysinger <vapier@gentoo.org>.
3344
3345         Ensure that <features.h> is included before __GLIBC__ is tested.
3346         * lib/wchar.in.h: Include <features.h>.
3347         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3348         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3349         Reported by Mike Frysinger <vapier@gentoo.org>.
3350
3351         Ensure that <features.h> is included before __GLIBC__ is tested.
3352         * lib/arpa_inet.in.h: Include <features.h>.
3353         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3354         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3355         Reported by Mike Frysinger <vapier@gentoo.org>.
3356
3357         Ensure that <features.h> is included before __GLIBC__ is tested.
3358         * build-aux/link-warning.h: Include <features.h>.
3359         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3360         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3361         Reported by Mike Frysinger <vapier@gentoo.org>.
3362
3363         Ensure that <features.h> is included before __GLIBC__ is tested.
3364         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3365         Reported by Mike Frysinger <vapier@gentoo.org>.
3366
3367 2010-11-20  Bruno Haible  <bruno@clisp.org>
3368
3369         memmem: Fix autoconf test.
3370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3371
3372 2010-11-20  Bruno Haible  <bruno@clisp.org>
3373
3374         Port to uClibc.
3375         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3376         * lib/fcntl.in.h: Likewise.
3377         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3378         * lib/mbrtowc.c (mbrtowc): Likewise.
3379         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3380         * lib/strerror_r.c: Likewise.
3381         * lib/unistr/u8-strnlen.c: Likewise.
3382         * lib/vasnprintf.c (decimal_point_char): Likewise.
3383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3385         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3386         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3387         * tests/test-sigaction.c (handler, main): Likewise.
3388         * lib/freading.h: Treat uClibc like a non-glibc platform.
3389         * lib/freading.c: Likewise.
3390         * lib/gettext.h: Likewise.
3391         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3392         Likewise.
3393         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3394         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3395         * lib/propername.c (proper_name_utf8): Likewise.
3396         * lib/spawn.in.h: Likewise.
3397         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3398         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3399         mem_cd_iconveh_internal): Likewise.
3400         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3401         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3402         strstr, strcasestr): Likewise.
3403         * lib/unicodeio.c (unicode_to_mb): Likewise.
3404         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3405         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3406         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3407         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3408         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3409         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3410         * lib/unistr/u8-stpncpy.c: Likewise.
3411         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3412         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3415         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3420         Likewise.
3421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3422         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3423         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3428         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3429         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3430         * tests/test-striconveha.c (main): Likewise.
3431         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3432         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3433         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3434         * doc/posix-functions/getline.texi: Likewise.
3435         Reported by Mike Frysinger <vapier@gentoo.org>.
3436
3437 2010-11-20  Bruno Haible  <bruno@clisp.org>
3438
3439         nproc: Fix condition.
3440         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3441         HAVE_PTHREAD_AFFINITY_NP.
3442
3443 2010-11-20  Bruno Haible  <bruno@clisp.org>
3444
3445         Fix a comment.
3446         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3447
3448 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         ftoastr: don't assume snprintf
3451         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3452         Implement a subset of snprintf here, by using sprintf safely.
3453         * modules/ftoastr (Depends-on): Remove snprintf.
3454
3455 2010-11-19  Jim Meyering  <meyering@redhat.com>
3456
3457         test-rename.h: fix compilation failure
3458         * tests/test-rename.h (test_rename): Add omitted "}".
3459
3460 2010-11-17  Jim Meyering  <meyering@redhat.com>
3461
3462         maint.mk: add a URL discussing the no-@acronym policy
3463         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3464
3465 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3466
3467         ftoastr: depend on snprintf, improve comments
3468         * lib/ftoastr.c: Also mention Loitsch's draft.
3469         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3470         needed in the current implementation, but it might simplify
3471         speeding up the code later.
3472         * modules/ftoastr: Depend on snprintf; this improves portability.
3473         Suggested by Bruno Haible in the same email.
3474
3475         ftoastr: port to hosts lacking strtof and strtold
3476         Problem reported by Bruno Haible in
3477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3478         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3479         environment and strtold (and presumably strtof) are not available.
3480         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3481         (configure.ac): Require gl_C99_STRTOLD.
3482
3483 2010-11-18  Bruno Haible  <bruno@clisp.org>
3484
3485         c-strtold: Avoid link error on AIX 7.
3486         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3487         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3488         (gl_C_STRTOLD): Test whether strtold_l exists.
3489         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3490
3491 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3492
3493         intprops: new macro INT_BITS_STRLEN_BOUND
3494         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3495         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3496         not exposed.  Also, it uses a slightly tighter bound than before;
3497         though this makes no practical difference, we might as well be as
3498         tight as we easily can.
3499
3500         ftoastr: new module, for lossless conversion of floats to short strings
3501         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3502         * modules/ftoastr: New files.
3503
3504 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3505
3506         bootstrap: port to Solaris sed
3507         * build-aux/bootstrap (get_version): Port to Solaris sed.
3508         See Ralf Wildenhues's note in
3509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3510
3511 2010-11-14  Jim Meyering  <meyering@redhat.com>
3512
3513         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3514         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3515         and move definition closer to sole use.
3516
3517 2010-11-13  Jim Meyering  <meyering@redhat.com>
3518
3519         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3520         Now we require at least autoconf-2.59, which means the work-around
3521         is no longer needed.
3522         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3523         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3524         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3527
3528 2010-11-13  Bruno Haible  <bruno@clisp.org>
3529
3530         rename, renameat: Avoid test failures at NFS mounted locations.
3531         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3532         functions.
3533         (test_rename): Use assert_nonexistent.
3534         * tests/test-rename.c: Include <dirent.h>.
3535         * tests/test-renameat.c: Likewise.
3536         Reported by Gary V. Vaughan <gary@gnu.org>.
3537
3538         rename, renameat: Document Linux bug with NFS
3539         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3540         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3541         * doc/posix-functions/renameat.texi: Likewise.
3542         Suggested by Eric Blake.
3543
3544 2010-11-13  Bruno Haible  <bruno@clisp.org>
3545
3546         rename test: Add comments.
3547         * tests/test-rename.h (test_rename): Add structure and comments.
3548
3549 2010-11-13  Eric Blake  <eblake@redhat.com>
3550
3551         maintainer-makefile: cover a few more files
3552         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3553         scripts generated within C files, for libvirt.
3554
3555 2010-11-13  Bruno Haible  <bruno@clisp.org>
3556
3557         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3558         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3559         character, return the number of bytes that belong together, not always
3560         1.
3561         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3562         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3563         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3564         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3565         number of bytes of an invalid character.
3566         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3567         (main): Invoke it.
3568         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3569         results.
3570         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3571         malformed byte sequences.
3572         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3573         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3574         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3575         Reported by Ben Pfaff and Paolo Bonzini.
3576
3577 2010-11-13  Bruno Haible  <bruno@clisp.org>
3578
3579         openat: Work around glibc bug with fchownat() and empty file names.
3580         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3581         (gl_FUNC_FCHOWNAT): Invoke it.
3582         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3583         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3584         Reported by Gary V. Vaughan <gary@gnu.org>.
3585
3586 2010-11-13  Bruno Haible  <bruno@clisp.org>
3587
3588         openat: Ensure autoconf macro ordering.
3589         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3590         gl_USE_SYSTEM_EXTENSIONS.
3591         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3592
3593 2010-11-13  Bruno Haible  <bruno@clisp.org>
3594
3595         Update comments.
3596         * lib/unistr/u8-check.c: Update file name in comments.
3597         * lib/unistr/u8-mblen.c: Likewise.
3598         * lib/unistr/u8-prev.c: Likewise.
3599         * lib/unistr/u8-strmblen.c: Likewise.
3600         * lib/unistr/u8-strmbtouc.c: Likewise.
3601
3602 2010-11-13  Jim Meyering  <meyering@redhat.com>
3603
3604         tests: avoid test failure on Solaris 10 due to lack of PATH export
3605         * tests/test-update-copyright.sh: Don't forget to export PATH.
3606
3607         init.sh: ensure that IFS is defined, just in case...
3608         * tests/init.sh (setup_): Ensure that IFS is defined,
3609         so that saving and restoring it works as expected.  This
3610         appears to be useful at least for an old version of dash
3611         from a long time ago (RH 6).  See here for details:
3612         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3613
3614         maint.mk: tighten "test a == b" check
3615         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3616         test to files that contain something like #!/bin/sh.
3617         Without this, coreutils would get two false positives in
3618         the comments of C source files.
3619
3620 2010-11-12  Eric Blake  <eblake@redhat.com>
3621
3622         bootstrap: fix typo in previous attempt
3623         * build-aux/bootstrap (buildreq): Correct the grouping.
3624         Reported by Paul Eggert.
3625
3626         maintainer-makefile: prohibit test x == x
3627         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3628         Based on a report by Matthias Bolte.
3629
3630         bootstrap: allow FreeBSD gzip
3631         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3632         which has no '.' and goes to stderr.
3633         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3634         Reported by Matthias Bolte.
3635
3636         maintainer-makefile: check for i18n setup
3637         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3638         will likely work.
3639
3640 2010-11-12  Bruno Haible  <bruno@clisp.org>
3641
3642         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3643         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3644         * lib/nanosleep.c (nanosleep): Likewise.
3645
3646 2010-11-11  Bruno Haible  <bruno@clisp.org>
3647
3648         fcntl-h: Fix for use of C++ on glibc systems.
3649         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3650         also on glibc systems in C++ mode.
3651         Reported by Gary V. Vaughan <gary@gnu.org>.
3652
3653 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3654
3655         mknod: avoid false failure with dash
3656         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3657
3658 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3659
3660         unlink: Fix "is it should" typo in diagnostic.
3661         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3663
3664 2010-11-11  Bruno Haible  <bruno@clisp.org>
3665
3666         Tests for module 'strerror_r-posix'.
3667         * modules/strerror_r-posix-tests: New file.
3668         * tests/test-strerror_r.c: New file.
3669         * tests/test-string-c++.cc: Check the signature of strerror_r.
3670
3671         New module 'strerror_r-posix'.
3672         * lib/string.in.h (strerror_r): New declaration.
3673         * lib/strerror_r.c: New file.
3674         * m4/strerror_r.m4: New file.
3675         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3676         of strerror_r.
3677         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3678         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3679         * modules/strerror_r-posix: New file.
3680         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3681         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3682         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3683         portability problems.
3684
3685 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3686
3687         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3688         line is also considered for output. Quoted function name in shell
3689         command, so temporary files for functions like MyClass::operator()
3690         are removed correctly without errors.
3691
3692 2010-11-09  Bruno Haible  <bruno@clisp.org>
3693
3694         * doc/posix-functions/strerror.texi: List more failing platforms.
3695
3696         * doc/posix-functions/strerror.texi: Add a comment.
3697
3698 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3699
3700         fdopendir: fix bug on MacOS X when low on file descriptors
3701
3702         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3703         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3704         All callers changed.
3705         (fdopendir): Invoke save_cwd at the top level, not after using
3706         multiple dup() calls to use up file descriptors.  Then retry
3707         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3708         less than the maximum number of open file descriptors, because
3709         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3710         on Mac OS X 10.6.4 for tar 1.24
3711         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3712         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3713         and for tar 1.25
3714         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3715
3716 2010-11-07  Bruno Haible  <bruno@clisp.org>
3717
3718         vasnprintf: Support I flag on glibc systems.
3719         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3720         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3721         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3722         snprintf function.
3723         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3724         glibc systems.
3725         * tests/test-vasnprintf-posix3.c: New file.
3726         * modules/vasnprintf-posix-tests (Files): Add it.
3727         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3728
3729 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3730
3731         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3732         * MODULES.html.sh: For compiler warnings, use name
3733         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3734
3735 2010-11-05  Eric Blake  <eblake@redhat.com>
3736
3737         ceil, floor: avoid spurious failure with icc
3738         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3739         [denormals-as-zero] when optimizing without -mieee-fp option.
3740         * tests/test-floorf2.c (floorf_reference): Likewise.
3741         * tests/test-ceilf1.c (dummy): New function.
3742         (main): Use it to outsmart icc's optimization.
3743         * tests/test-floorf1.c (dummy, main): Likewise.
3744
3745         tests: require working signbit
3746         * modules/ceilf-tests (Depends-on): Add signbit.
3747         * modules/ceill-tests (Depends-on): Likewise.
3748         * modules/floorf-tests (Depends-on): Likewise.
3749         * modules/floorl-tests (Depends-on): Likewise.
3750         * modules/round-tests (Depends-on): Likewise.
3751         * modules/roundf-tests (Depends-on): Likewise.
3752         * modules/roundl-tests (Depends-on): Likewise.
3753         * modules/trunc-tests (Depends-on): Likewise.
3754         * modules/truncf-tests (Depends-on): Likewise.
3755         * modules/truncl-tests (Depends-on): Likewise.
3756
3757         strtod: work around icc bug
3758         * lib/strtod.c (minus_zero): Define to working value.
3759         (strtod): Use it to avoid icc bug.
3760
3761         copysign: enhance tests
3762         * modules/copysign-tests (Files): Add minus-zero.h.
3763         * tests/test-copysign.c (main): Also test zeros.
3764
3765 2010-11-04  Eric Blake  <eblake@redhat.com>
3766
3767         ceil, floor, round, trunc: enhance tests of -0
3768         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3769         * tests/test-ceill.c (main): Likewise.
3770         * tests/test-floorf1.c (main): Likewise.
3771         * tests/test-floorl.c (main): Likewise.
3772         * tests/test-round1.c (main): Likewise.
3773         * tests/test-roundf1.c (main): Likewise.
3774         * tests/test-roundl.c (main): Likewise.
3775         * tests/test-trunc1.c (main): Likewise.
3776         * tests/test-truncf1.c (main): Likewise.
3777         * tests/test-truncl.c (main): Likewise.
3778
3779 2010-11-04  Eric Blake  <eblake@redhat.com>
3780
3781         frexp, tests: work around ICC bug with -zero
3782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3783         works with more compilers.
3784         * tests/minus-zero.h: New file.
3785         * modules/ceilf-tests (Files): Include it.
3786         * modules/ceill-tests (Files): Likewise.
3787         * modules/floorf-tests (Files): Likewise.
3788         * modules/floorl-tests (Files): Likewise.
3789         * modules/frexp-nolibm-tests (Files): Likewise.
3790         * modules/frexp-tests (Files): Likewise.
3791         * modules/frexpl-nolibm-tests (Files): Likewise.
3792         * modules/frexpl-tests (Files): Likewise.
3793         * modules/isnan-tests (Files): Likewise.
3794         * modules/isnand-nolibm-tests (Files): Likewise.
3795         * modules/isnand-tests (Files): Likewise.
3796         * modules/isnanf-nolibm-tests (Files): Likewise.
3797         * modules/isnanf-tests (Files): Likewise.
3798         * modules/isnanl-nolibm-tests (Files): Likewise.
3799         * modules/isnanl-tests (Files): Likewise.
3800         * modules/round-tests (Files): Likewise.
3801         * modules/roundf-tests (Files): Likewise.
3802         * modules/roundl-tests (Files): Likewise.
3803         * modules/ldexpl-tests (Files): Likewise.
3804         * modules/signbit-tests (Files): Likewise.
3805         * modules/snprintf-posix-tests (Files): Likewise.
3806         * modules/sprintf-posix-tests (Files): Likewise.
3807         * modules/strtod-tests (Files): Likewise.
3808         * modules/trunc-tests (Files): Likewise.
3809         * modules/truncf-tests (Files): Likewise.
3810         * modules/truncl-tests (Files): Likewise.
3811         * modules/vsnprintf-posix-tests (Files): Likewise.
3812         * modules/vsprintf-posix-tests (Files): Likewise.
3813         * modules/vasnprintf-posix-tests (Files): Likewise.
3814         * modules/vasprintf-posix-tests (Files): Likewise.
3815         * tests/test-ceilf1.c (main): Use it.
3816         * tests/test-ceill.c (main): Likewise.
3817         * tests/test-floorf1.c (main): Likewise.
3818         * tests/test-floorl.c (main): Likewise.
3819         * tests/test-frexp.c (main): Likewise.
3820         * tests/test-frexpl.c (main): Likewise.
3821         * tests/test-isnan.c (main): Likewise.
3822         * tests/test-isnand.h (main): Likewise.
3823         * tests/test-isnanf.h (main): Likewise.
3824         * tests/test-isnanl.h (main): Likewise.
3825         * tests/test-ldexpl.c (main): Likewise.
3826         * tests/test-round.c (main): Likewise.
3827         * tests/test-roundf.c (main): Likewise.
3828         * tests/test-roundl.c (main): Likewise.
3829         * tests/test-signbit.c (test_signbitf, test_signbitd)
3830         (test_signbitl): Likewise.
3831         * tests/test-snprintf-posix.h (test_function): Likewise.
3832         * tests/test-sprintf-posix.h (test_function): Likewise.
3833         * tests/test-strtod.c (main): Likewise.
3834         * tests/test-trunc1.c (main): Likewise.
3835         * tests/test-truncf1.c (main): Likewise.
3836         * tests/test-truncl.c (main): Likewise.
3837
3838         isnanl: work around icc bug
3839         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3840
3841 2010-11-03  Eric Blake  <eblake@redhat.com>
3842
3843         tests: fix compiler warnings
3844         * tests/test-getopt.h (test_getopt): Fix condition.
3845         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3846         * tests/test-pipe2.c (main): Likewise.
3847         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3848
3849         utimens: fix broken m4 test
3850         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3851
3852 2010-10-28  Bruno Haible  <bruno@clisp.org>
3853
3854         posix_spawn*, getdtablesize: Relax license.
3855         * modules/posix_spawn (License): Change to LGPLv2+.
3856         * modules/posix_spawnp (License): Likewise.
3857         * modules/posix_spawn-internal (License): Likewise.
3858         * modules/posix_spawnattr_init (License): Likewise.
3859         * modules/posix_spawnattr_getflags (License): Likewise.
3860         * modules/posix_spawnattr_setflags (License): Likewise.
3861         * modules/posix_spawnattr_getpgroup (License): Likewise.
3862         * modules/posix_spawnattr_setpgroup (License): Likewise.
3863         * modules/posix_spawnattr_getschedparam (License): Likewise.
3864         * modules/posix_spawnattr_setschedparam (License): Likewise.
3865         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3866         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3867         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3868         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3869         * modules/posix_spawnattr_getsigmask (License): Likewise.
3870         * modules/posix_spawnattr_setsigmask (License): Likewise.
3871         * modules/posix_spawnattr_destroy (License): Likewise.
3872         * modules/posix_spawn_file_actions_init (License): Likewise.
3873         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3874         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3875         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3876         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3877         * modules/getdtablesize (License): Likewise.
3878         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3879
3880 2010-10-26  Bruno Haible  <bruno@clisp.org>
3881
3882         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3883         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3884         Cygwin and mingw.
3885         Suggested by Eric Blake.
3886
3887 2010-10-26  Bruno Haible  <bruno@clisp.org>
3888
3889         stdio: Work around compilation error due to renameat() on Solaris 10.
3890         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3891         * lib/renameat.c: Don't include <unistd.h> here.
3892         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3893         Reported by Paul Eggert and Eric Blake.
3894
3895 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         renameat: port to Solaris 10, which declares renameat in unistd.h
3898
3899         * lib/renameat.c: Include unistd.h before stdio.h, because
3900         Solaris 10 declares renameat in unistd.h.  Problem encountered
3901         when building GNU tar 1.24 on Solaris 10.
3902
3903 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3904
3905         fdopendir: fix C89 compilation
3906         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3907         compilers.
3908
3909 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3910
3911         inttostr: simplify by removing unnecessary redundancy
3912         * lib/anytostr.c: Don't include verify.h.
3913         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3914         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3915         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3916         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3917         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3918         Likewise.
3919         * modules/inttostr (Depends-on): Remove 'verify'.
3920
3921 2010-10-23  Bruno Haible  <bruno@clisp.org>
3922
3923         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3924         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3925         Reported by Eric Blake.
3926
3927 2010-10-23  Bruno Haible  <bruno@clisp.org>
3928
3929         Tests: Fix LOCALE_JA on MirBSD 10.
3930         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3931         to an UTF-8 locale.
3932         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3934         Reported by Eric Blake.
3935
3936 2010-10-21  Bruno Haible  <bruno@clisp.org>
3937
3938         nl_langinfo test: Avoid test failure on NetBSD 5.
3939         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3940         Reported by Eric Blake.
3941
3942 2010-10-21  Eric Blake  <eblake@redhat.com>
3943
3944         c-stack: work around libsigsegv 2.8 bug
3945         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3946         overflow on at least PowerPC64.
3947
3948 2010-10-17  Bruno Haible  <bruno@clisp.org>
3949
3950         userspec: Drop redundant file.
3951         * modules/userspec (Files): Remove lib/inttostr.h.
3952
3953 2010-10-17  Bruno Haible  <bruno@clisp.org>
3954
3955         nl_langinfo tests: Silence some warnings.
3956         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3957         Reported by Jim Meyering.
3958
3959 2010-10-17  Bruno Haible  <bruno@clisp.org>
3960
3961         Make use of GCC's attribute __alloc_size__.
3962         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3963         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3964         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3965         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3966         __alloc_size__.
3967         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3968         Suggested by Jim Meyering.
3969
3970 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3971
3972         bootstrap: anchor .gitignore entries.
3973         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3974         with...
3975         (insert_vc_ignore): ... this new function, which prepends `/' to
3976         all .gitignore entries before passing them to
3977         insert_sorted_if_absent.
3978
3979 2010-10-16  Bruno Haible  <bruno@clisp.org>
3980
3981         nextafter: Fix configure check.
3982         * modules/nextafter (configure.ac): Correct expected prototype.
3983
3984 2010-10-16  Bruno Haible  <bruno@clisp.org>
3985
3986         termios: Update documentation.
3987         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3988
3989 2010-10-16  Bruno Haible  <bruno@clisp.org>
3990
3991         tests: Make them compile with TinyCC.
3992         * tests/test-strstr.c (main): Remove parentheses around array
3993         initializer.
3994
3995 2010-10-15  Eric Blake  <eblake@redhat.com>
3996
3997         ignore-value: make header idempotent
3998         * lib/ignore-value.h: Add double-inclusion guards.
3999         Reported by Stefan Berger.
4000
4001 2010-10-15  Jim Meyering  <meyering@redhat.com>
4002
4003         GNUmakefile: handle "stable" target, not "major"
4004         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4005         lists in maint.mk and announce-gen.  Without this, "make stable"
4006         would fail to ensure that $(VERSION) is up to date.
4007
4008 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4009
4010         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4011         & co.
4012
4013 2010-10-14  Bruno Haible  <bruno@clisp.org>
4014
4015         vasnprintf: Don't set errno to 0.
4016         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4017         block that sets it to 0.
4018         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4019
4020 2010-10-14  Bruno Haible  <bruno@clisp.org>
4021
4022         socketlib: Fix.
4023         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4024         gl_PREREQ_SYS_H_WINSOCK2.
4025         Reported by Ian Beckwith <ianb@erislabs.net>.
4026
4027 2010-10-13  Jim Meyering  <meyering@redhat.com>
4028
4029         test-select-stdin.c: avoid warn_unused_result warnings
4030         * tests/test-select-stdin.c: Include "macros.h".
4031         ASSERT that read and fflush succeed.
4032
4033 2010-10-13  Jim Meyering  <meyering@redhat.com>
4034
4035         git-version-gen: do require git-VC'd files in cwd
4036         * build-aux/git-version-gen: Reject a git version string
4037         if there are no commits associated with the current directory.
4038         This avoids an unlikely false-positive (unrelated dir whose parent
4039         repository also contains a tag matching v*), as pointed out
4040         by Giuseppe Scrivano in
4041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4042
4043 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4044
4045         argv-iter: omit nonconforming declaration
4046         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4047         enum arg_iter_err declaration, which doesn't conform to C99.
4048         Solaris 10 cc warns about this.
4049
4050 2010-10-13  Eric Blake  <eblake@redhat.com>
4051
4052         termios: fix compilation on mingw
4053         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4054         (gl_TERMIOS_H): Adjust it on mingw.
4055         * modules/termios (Makefile.am): Substitute new key.
4056         * lib/termios.in.h (includes): Make include_next conditional.
4057         * doc/posix-headers/termios.texi (termios.h): Update
4058         documentation.
4059         Reported by Daniel P. Berrange.
4060
4061 2010-10-13  Jim Meyering  <meyering@redhat.com>
4062
4063         git-version-gen: don't require that .git/ be in the current dir
4064         * build-aux/git-version-gen: Adjust this script so that it works
4065         when run from any working directory beneath the top-level .git/-
4066         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4068
4069         test-select: avoid warn_unused_result warnings
4070         * tests/test-select.c: Include "macros.h".
4071         ASSERT that each call to read, write, and pipe succeeds.
4072         While not technically required, also check each "close".
4073         * modules/select-tests (Files): Add tests/macros.h.
4074
4075         test-symlinkat: remove declaration of unused local
4076         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4077
4078         test-inttostr: avoid shadowing warnings
4079         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4080         and use malloc rather than the stack for the same reason as
4081         mentioned in the comment justifying the other allocation.
4082
4083 2010-10-11  Bruno Haible  <bruno@clisp.org>
4084
4085         stdlib: Allow multiple gnulib generated replacements to coexist.
4086         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4087         Reported by Sam Steingold <sds@gnu.org>.
4088
4089 2010-10-11  Jim Meyering  <meyering@redhat.com>
4090
4091         fix a documentation typo
4092         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4093
4094 2010-10-11  Eric Blake  <eblake@redhat.com>
4095
4096         futimens: work around Solaris 11 bug
4097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4098         * tests/test-futimens.h (test_futimens): Enhance, rather than
4099         weaken test.
4100         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4101
4102 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4103
4104         Indentation.
4105         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4106         higher-level operators more to the left.
4107
4108 2010-10-11  Jim Meyering  <meyering@redhat.com>
4109
4110         test-futimens: avoid unwarranted test failure on Solaris 5.11
4111         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4112         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4113         because it tries to dereference the NULL name argument.
4114
4115 2010-10-11  Bruno Haible  <bruno@clisp.org>
4116
4117         Indentation.
4118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4119         indentation.
4120
4121 2010-10-11  Jim Meyering  <meyering@redhat.com>
4122
4123         spawn.in.h: make indentation consistent with parentheses
4124         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4125         Make indentation consistent with parentheses.
4126
4127 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4128
4129         Fix mismatched parens in previous commit
4130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4131         parens.
4132
4133 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4134
4135         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4136
4137         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4138         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4139         * lib/malloca.c: Include "verify.h".
4140         (verify1): Remove, replacing with a verify call.
4141         * lib/relocwrapper.c (verify1): Likewise.
4142         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4143         Likewise.
4144         * modules/malloca (Depends-on): Add 'verify'.
4145         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4146         * modules/vasnprintf (Depends-on): Add 'verify'.
4147         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4148         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4149         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4150         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4151         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4152         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4153         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4154
4155         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4156
4157         Formerly the style was sometimes 2*X - 1, because the C standard
4158         was wrongly thought to disallow ?: in integral constant expressions.
4159         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4160         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4161         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4162         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4163         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4164         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4165         verify that time_t cannot be floating.
4166
4167 2010-10-08  Eric Blake  <eblake@redhat.com>
4168
4169         time: enforce recent POSIX ruling that time_t is integral
4170         * lib/time.in.h (__time_t_must_be_integral): Detect any
4171         problematic systems, allowing the rest of gnulib to assume POSIX.
4172
4173 2010-10-08  Jim Meyering  <meyering@redhat.com>
4174
4175         fdopendir: fix a bug on systems lacking openat and /proc support
4176         OpenBSD 4.7 is one such system.  The most noticeable effect was
4177         failure of any application making nontrivial use of fts: rm, du,
4178         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4179           ./rm: traversal failed: `a': Bad file descriptor
4180         Debugging that, you see that even though FD 6 was closed just
4181         prior to the opendir call in fd_clone_opendir, its resulting
4182         dir->dd_fd was 8, rather than the expected value of 6:
4183
4184         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4185         93                close (fd);
4186         (gdb) n
4187         94                dir = fd_clone_opendir (dupfd);
4188         (gdb) n
4189         95                saved_errno = errno;
4190         (gdb) p dir->dd_fd
4191         $11 = 8
4192
4193         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4194         The problem is that on OpenBSD, fd_clone_opendir has to resort
4195         to using the old-style save/restore CWD mechanism, due to its
4196         lack of openat/proc support, and *that* would steal the FD (6)
4197         that opendir was supposed to use.
4198
4199         The fix is to squirrel away the desired FD so that save_cwd uses a
4200         different one, and then free the dest FD right before calling opendir.
4201         That guarantees opendir will use the required file descriptor.
4202
4203         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4204
4205 2010-10-08  Bruno Haible  <bruno@clisp.org>
4206
4207         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4208         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4209
4210 2010-10-08  Bruno Haible  <bruno@clisp.org>
4211
4212         nanosleep: Make replacement POSIX compliant.
4213         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4214         is out of range.
4215         Reported by Jim Meyering.
4216
4217 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4218
4219         bootstrap: add hook for altering gnulib.mk, for Bison
4220         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4221         the Bison bootstrapping process can rewrite file names and variables
4222         in this file before later parts of 'bootstrap' use the file.
4223         Bison wants to include lib/gnulib.mk from the top-level makefile,
4224         so it needs the file names in this file to be relative to the top
4225         level, not relative to lib; plus it needs variable names to be
4226         rewritten.
4227         (slurp): Use the new function.
4228
4229         bootstrap: reformat for readability
4230         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4231
4232 2010-10-08  Eric Blake  <eblake@redhat.com>
4233
4234         docs: update cygwin progress
4235         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4236         1.7.7.
4237         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4238         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4239         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4240         * doc/posix-functions/carg.texi (carg): Likewise.
4241         * doc/posix-functions/cargf.texi (cargf): Likewise.
4242         * doc/posix-functions/casin.texi (casin): Likewise.
4243         * doc/posix-functions/casinf.texi (casinf): Likewise.
4244         * doc/posix-functions/casinh.texi (casinh): Likewise.
4245         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4246         * doc/posix-functions/catan.texi (catan): Likewise.
4247         * doc/posix-functions/catanf.texi (catanf): Likewise.
4248         * doc/posix-functions/catanh.texi (catanh): Likewise.
4249         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4250         * doc/posix-functions/ccos.texi (ccos): Likewise.
4251         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4252         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4253         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4254         * doc/posix-functions/cexp.texi (cexp): Likewise.
4255         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4256         * doc/posix-functions/cimag.texi (cimag): Likewise.
4257         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4258         * doc/posix-functions/clog.texi (clog): Likewise.
4259         * doc/posix-functions/clogf.texi (clogf): Likewise.
4260         * doc/posix-functions/conj.texi (conj): Likewise.
4261         * doc/posix-functions/conjf.texi (conjf): Likewise.
4262         * doc/posix-functions/cpow.texi (cpow): Likewise.
4263         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4264         * doc/posix-functions/cproj.texi (cproj): Likewise.
4265         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4266         * doc/posix-functions/creal.texi (creal): Likewise.
4267         * doc/posix-functions/crealf.texi (crealf): Likewise.
4268         * doc/posix-functions/csin.texi (csin): Likewise.
4269         * doc/posix-functions/csinf.texi (csinf): Likewise.
4270         * doc/posix-functions/csinh.texi (csinh): Likewise.
4271         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4272         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4273         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4274         * doc/posix-functions/ctan.texi (ctan): Likewise.
4275         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4276         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4277         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4278         * doc/posix-headers/complex.texi (complex.h): Likewise.
4279
4280 2010-10-07  Jim Meyering  <meyering@redhat.com>
4281
4282         parse-datetime: avoid compilation failure on OpenBSD 4.7
4283         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4284         This works around a compilation failure on OpenBSD 4.7:
4285         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4286
4287 2010-10-07  Eric Blake  <eblake@redhat.com>
4288
4289         docs: update cygwin progress
4290         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4291         1.7.6.
4292         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4293         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4294         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4295         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4296         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4297         Likewise.
4298         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4299         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4300         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4301         Likewise.
4302         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4303         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4304         Likewise.
4305         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4306         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4307         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4308         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4309         Likewise.
4310         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4311         Likewise.
4312         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4313
4314         docs: update parse-datetime history
4315         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4316         documentation of this function's history and alternatives.
4317
4318         cygwin: use more robust version check
4319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4320         exclude an eventual cygwin 1.9.1.
4321         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4323         (gl_FUNC_STRCASESTR): Likewise.
4324         Reported by Bruno Haible.
4325
4326 2010-10-06  Bruno Haible  <bruno@clisp.org>
4327
4328         string, sys_select: Avoid #including large headers unless necessary.
4329         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4330         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4331         OSF/1, BeOS, Haiku.
4332         Reported by Jim Meyering.
4333
4334 2010-10-05  Eric Blake  <eblake@redhat.com>
4335
4336         memmem, strstr, strcasestr: fix bug with long periodic needle
4337         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4338         periodic needle having false positive.
4339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4340         and cygwin 1.7.7.
4341         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4343         (gl_FUNC_STRCASESTR): Likewise.
4344         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4345         * tests/test-memmem.c (main): Expose the bug.
4346         * tests/test-strcasestr.c (main): Likewise.
4347         * tests/test-strstr.c (main): Likewise.
4348         * tests/test-c-strcasestr.c (main): Likewise.
4349         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4350         * doc/posix-functions/strstr.texi (strstr): Likewise.
4351         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4352         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4353
4354 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4355
4356         parse-datetime: do some more renaming
4357         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4358         parse_datetime, not get_date.  Mention the renaming.
4359         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4360         in comments.
4361         * m4/bison.m4: Likewise.
4362
4363 2010-10-05  Eric Blake  <eblake@redhat.com>
4364
4365         parse-datetime: better name than get_date
4366         * NEWS: Reword the deprecation notice.
4367         * modules/get_date: Rename to modules/parse-datetime.
4368         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4369         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4370         * lib/get_date.y: Rename to lib/parse-datetime.y.
4371         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4372         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4373         * doc/getdate.texi: Provide fallback wrapper.
4374         * lib/getdate.h: Move guts, and wrap...
4375         * lib/parse-datetime.h: ...new file.
4376         * lib/parse-datetime.y (get_date): Rename...
4377         (parse_datetime): ...to this.
4378         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4379         (gl_PARSE_DATETIME): ...to this.
4380         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4381         documentation.
4382         * modules/getdate (Files): Provide fallback docs and header.
4383         (Notice, Depends-on): Update references.
4384         * tests/test-parse-datetime.c: Likewise.
4385         * DEPENDENCIES: Likewise.
4386         * MODULES.html.sh (Date and time <time.h>): Likewise.
4387         * doc/parse-datetime.texi (Date input formats)
4388         (Authors of parse_datetime): Likewise.
4389         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4390         (Include): Likewise.
4391         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4392         * gnulib-tool: Likewise.
4393         * m4/bison.m4 (gl_BISON): Likewise.
4394         Suggested by Bruno Haible.
4395
4396 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4397
4398         more ports to Solaris tr, which needs [] around ranges
4399         * gnulib-tool: Solaris tr needs [] around ranges.
4400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4401         * tests/test-pipe-filter-gi1.c (main): Likewise.
4402         * tests/test-pipe-filter-ii1.c (main): Likewise.
4403
4404 2010-10-05  Eric Blake  <eblake@redhat.com>
4405
4406         bootstrap: fix Solaris regression
4407         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4408         around ranges.
4409         Reported by Pádraig Brady.
4410
4411         bootstrap: work with pkg-config
4412         * build-aux/bootstrap (check_versions): Also transliterate - in
4413         prerequisite name.
4414         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4415         prerequisites that were already found, to avoid confusion.
4416         Reported by Justin Clift.
4417
4418         faccessat: remove unused wrappers
4419         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4420         presence of these wrappers dragged in -lgen on Solaris.
4421         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4422
4423 2010-10-05  Jim Meyering  <meyering@redhat.com>
4424
4425         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4426         * Makefile (sc_pragma_columns): New syntax-check rule.
4427
4428 2010-10-04  Bruno Haible  <bruno@clisp.org>
4429
4430         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4431         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4432         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4433         Reported by Bruce Korb and Eric Blake.
4434
4435 2010-10-04  Bruno Haible  <bruno@clisp.org>
4436
4437         threadlib: Make option --with-libpth-prefix work.
4438         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4439         use $LIBPTH, not just -lpth.
4440
4441 2010-10-04  Bruno Haible  <bruno@clisp.org>
4442
4443         Avoid line length limitation from HP NonStop system header files.
4444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4445         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4446         * lib/ctype.in.h: Likewise.
4447         * lib/dirent.in.h: Likewise.
4448         * lib/errno.in.h: Likewise.
4449         * lib/fcntl.in.h: Likewise.
4450         * lib/float.in.h: Likewise.
4451         * lib/getopt.in.h: Likewise.
4452         * lib/iconv.in.h: Likewise.
4453         * lib/inttypes.in.h: Likewise.
4454         * lib/langinfo.in.h: Likewise.
4455         * lib/locale.in.h: Likewise.
4456         * lib/math.in.h: Likewise.
4457         * lib/netdb.in.h: Likewise.
4458         * lib/netinet_in.in.h: Likewise.
4459         * lib/poll.in.h: Likewise.
4460         * lib/pthread.in.h: Likewise.
4461         * lib/pty.in.h: Likewise.
4462         * lib/sched.in.h: Likewise.
4463         * lib/se-selinux.in.h: Likewise.
4464         * lib/search.in.h: Likewise.
4465         * lib/signal.in.h: Likewise.
4466         * lib/spawn.in.h: Likewise.
4467         * lib/stdarg.in.h: Likewise.
4468         * lib/stddef.in.h: Likewise.
4469         * lib/stdint.in.h: Likewise.
4470         * lib/stdio.in.h: Likewise.
4471         * lib/stdlib.in.h: Likewise.
4472         * lib/string.in.h: Likewise.
4473         * lib/strings.in.h: Likewise.
4474         * lib/sys_file.in.h: Likewise.
4475         * lib/sys_ioctl.in.h: Likewise.
4476         * lib/sys_select.in.h: Likewise.
4477         * lib/sys_socket.in.h: Likewise.
4478         * lib/sys_stat.in.h: Likewise.
4479         * lib/sys_time.in.h: Likewise.
4480         * lib/sys_times.in.h: Likewise.
4481         * lib/sys_utsname.in.h: Likewise.
4482         * lib/sys_wait.in.h: Likewise.
4483         * lib/sysexits.in.h: Likewise.
4484         * lib/termios.in.h: Likewise.
4485         * lib/time.in.h: Likewise.
4486         * lib/unistd.in.h: Likewise.
4487         * lib/wchar.in.h: Likewise.
4488         * lib/wctype.in.h: Likewise.
4489         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4490         * modules/ctype (Makefile.am): Likewise.
4491         * modules/dirent (Makefile.am): Likewise.
4492         * modules/errno (Makefile.am): Likewise.
4493         * modules/fcntl-h (Makefile.am): Likewise.
4494         * modules/float (Makefile.am): Likewise.
4495         * modules/getopt-posix (Makefile.am): Likewise.
4496         * modules/iconv-h (Makefile.am): Likewise.
4497         * modules/inttypes (Makefile.am): Likewise.
4498         * modules/langinfo (Makefile.am): Likewise.
4499         * modules/locale (Makefile.am): Likewise.
4500         * modules/math (Makefile.am): Likewise.
4501         * modules/netdb (Makefile.am): Likewise.
4502         * modules/netinet_in (Makefile.am): Likewise.
4503         * modules/poll-h (Makefile.am): Likewise.
4504         * modules/pthread (Makefile.am): Likewise.
4505         * modules/pty (Makefile.am): Likewise.
4506         * modules/sched (Makefile.am): Likewise.
4507         * modules/search (Makefile.am): Likewise.
4508         * modules/selinux-h (Makefile.am): Likewise.
4509         * modules/signal (Makefile.am): Likewise.
4510         * modules/spawn (Makefile.am): Likewise.
4511         * modules/stdarg (Makefile.am): Likewise.
4512         * modules/stddef (Makefile.am): Likewise.
4513         * modules/stdint (Makefile.am): Likewise.
4514         * modules/stdio (Makefile.am): Likewise.
4515         * modules/stdlib (Makefile.am): Likewise.
4516         * modules/string (Makefile.am): Likewise.
4517         * modules/strings (Makefile.am): Likewise.
4518         * modules/sys_file (Makefile.am): Likewise.
4519         * modules/sys_ioctl (Makefile.am): Likewise.
4520         * modules/sys_select (Makefile.am): Likewise.
4521         * modules/sys_socket (Makefile.am): Likewise.
4522         * modules/sys_stat (Makefile.am): Likewise.
4523         * modules/sys_time (Makefile.am): Likewise.
4524         * modules/sys_times (Makefile.am): Likewise.
4525         * modules/sys_utsname (Makefile.am): Likewise.
4526         * modules/sys_wait (Makefile.am): Likewise.
4527         * modules/sysexits (Makefile.am): Likewise.
4528         * modules/termios (Makefile.am): Likewise.
4529         * modules/time (Makefile.am): Likewise.
4530         * modules/unistd (Makefile.am): Likewise.
4531         * modules/wchar (Makefile.am): Likewise.
4532         * modules/wctype (Makefile.am): Likewise.
4533
4534 2010-10-04  Bruno Haible  <bruno@clisp.org>
4535
4536         read-file tests: Avoid a test failure on NonStop Kernel.
4537         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4538         a regular file.
4539         Reported by Joachim Schmitz <schmitz@hp.com>.
4540
4541 2010-10-03  Bruno Haible  <bruno@clisp.org>
4542
4543         gnulib-tool: Fixes for --create-testdir with --libtool.
4544         * gnulib-tool (func_get_automake_snippet): Don't augment
4545         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4546         an executable.
4547         (func_create_testdir): Handle module 'alloca' like func_import.
4548         Reported by Bruce Korb <bruce.korb@gmail.com>.
4549
4550 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4551
4552         Avoid some lines longer than 80 characters.
4553         * lib/stdint.in.h: Break long comment lines.
4554         * lib/math.in.h: Likewise.
4555         (_GL_NUM_UINT_WORDS): New macro, for readability.
4556         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4557         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4558         * lib/stdlib.in.h: Likewise.
4559         * lib/spawn.in.h: Likewise.
4560         * lib/sys_socket.in.h: Update an URL.
4561         * lib/sys_stat.in.h: Break long line.
4562
4563 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4564
4565         Improve pmccabe2html.
4566         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4567         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4568         when the sources change. Remove the line in the HTML about "Used
4569         ranges" (which implied that there might be other unused ranges),
4570         rename "Resume" to "Summary" (easier to understand for more users).
4571         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4572         styles, and some unnecessary blank lines.
4573
4574 2010-10-03  Bruno Haible  <bruno@clisp.org>
4575             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4576
4577         acl: Add support for ACLs on NonStop Kernel.
4578         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4579         Check whether the function aclsort() exists.
4580         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4581         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4582         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4583         (acl_nontrivial [HAVE_ACLSORT]: New function.
4584         (file_has_acl): Implement for NonStop Kernel.
4585         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4586         (qset_acl): Implement for NonStop Kernel.
4587         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4588         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4589         (main): Implement for NonStop Kernel.
4590         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4591         Kernel. Handle this flavor.
4592         * tests/test-set-mode-acl.sh: Likewise.
4593         * tests/test-copy-acl.sh: Likewise.
4594         * tests/test-copy-file.sh: Likewise.
4595
4596 2010-10-03  Bruno Haible  <bruno@clisp.org>
4597
4598         Info about ACLs on NonStop Kernel.
4599         * doc/acl-resources.txt: Add info about NonStop Kernel.
4600         References by Joachim Schmitz <schmitz@hp.com>.
4601
4602 2010-10-02  Bruno Haible  <bruno@clisp.org>
4603
4604         Define missing EDQUOT on NonStop Kernel.
4605         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4606         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4608         missing.
4609         * doc/posix-headers/errno.texi: Mention the NSK bug.
4610         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4611         Reported by Joachim Schmitz <schmitz@hp.com>.
4612
4613 2010-10-02  Bruno Haible  <bruno@clisp.org>
4614
4615         Update doc for POSIX:2008.
4616         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4617         Update URL of POSIX specification.
4618
4619 2010-10-02  Bruno Haible  <bruno@clisp.org>
4620
4621         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4622         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4623         from gnulib, not from Automake.
4624
4625 2010-10-02  Bruno Haible  <bruno@clisp.org>
4626
4627         New module 'system-posix'.
4628         * modules/system-posix: New file.
4629         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4630         module is present.
4631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4632         GNULIB_SYSTEM_POSIX.
4633         * modules/stdlib (Depends-on): Remove sys_wait.
4634         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4635         * doc/posix-functions/system.texi: Mention the new module.
4636         * doc/posix-headers/stdlib.texi: Likewise.
4637         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4638         define test_sys_wait_macros to a no-op.
4639         Reported by Sam Steingold <sds@gnu.org>.
4640
4641 2010-09-30  Bruno Haible  <bruno@clisp.org>
4642
4643         More renaming from 'getdate' to 'get_date'.
4644         * doc/get_date.texi: Renamed from doc/getdate.texi.
4645         * modules/get_date (Files): Update.
4646         * MODULES.html.sh (Date and time <time.h>): Update.
4647         * DEPENDENCIES: Update.
4648         * gnulib-tool: Update comment.
4649         * m4/bison.m4 (gl_BISON): Likewise.
4650         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4651
4652 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4653
4654         bootstrap: support ACLOCAL_FLAGS during aclocal
4655         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4656         can add additional -I dir for third-party .m4 files.
4657
4658 2010-09-30  Eric Blake  <eblake@redhat.com>
4659
4660         bootstrap: use glibtoolize on MacOS
4661         * build-aux/bootstrap (check_versions): Convert libtool into
4662         libtoolize.
4663         (tool search): Move libtool check earlier, and look for
4664         glibtoolize for MacOS.
4665         (gnulib_tool_options): Auto-add --libtool when appropriate.
4666         Reported by Justin Clift.
4667
4668         poll: fix typo that broke test on MacOS
4669         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4670         Reported by Justin Clift.
4671
4672         getdate: rename to get_date
4673         Note: getdate.h is not renamed, to minimize client impact.
4674         * modules/getdate: Mark obsolete.  Move old contents...
4675         * modules/get_date: ...to new module name.
4676         * modules/getdate-tests: Move...
4677         * modules/get_date-tests: ...here.
4678         * m4/getdate.m4: Move...
4679         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4680         * lib/getdate.y: Move...
4681         * lib/get_date.y: ...here.
4682         * tests/test-getdate.c: Move...
4683         * tests/test-get_date.c: ...here.
4684         * doc/posix-functions/getdate.texi (getdate): Update name.
4685         * NEWS: Mention the change.
4686
4687 2010-09-29  Bruno Haible  <bruno@clisp.org>
4688
4689         Separate the module 'waitpid' from the module 'sys_wait'.
4690         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4691         present.
4692         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4693         gl_MODULE_INDICATOR_FOR_TESTS.
4694         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4695         * modules/sys_wait (Depends-on): Remove waitpid.
4696         (Makefile.am): Substitute GNULIB_WAITPID.
4697         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4698         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4699         signature only if the 'waitpid' module is present.
4700         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4701         * NEWS: Mention the change.
4702         * modules/grantpt (Depends-on): Add waitpid.
4703         * modules/wait-process (Depends-on): Likewise.
4704
4705 2010-09-29  Bruno Haible  <bruno@clisp.org>
4706
4707         More tests for module 'sys_wait'.
4708         * modules/sys_wait-c++-tests: New file.
4709         * tests/test-sys_wait-c++.cc: New file.
4710         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4711         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4712
4713 2010-09-29  Bruno Haible  <bruno@clisp.org>
4714
4715         New module 'waitpid'.
4716         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4717         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4718         Don't include <process.h>.
4719         (waitpid): Declare only, using modern idiom.
4720         * m4/waitpid.m4: New file.
4721         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4722         * modules/waitpid: New file.
4723         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4724         (Makefile.am): Update.
4725         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4726
4727 2010-09-28  Bruno Haible  <bruno@clisp.org>
4728
4729         poll: Assume ANSI C.
4730         * lib/poll.c (poll): Use an ANSI C declaration.
4731
4732 2010-09-28  Bruno Haible  <bruno@clisp.org>
4733
4734         poll-h: Create poll.h on all platforms.
4735         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4736         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4737         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4738         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4739         (gl_REPLACE_POLL_H): Don't set POLL_H.
4740         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4741         * modules/poll-h (Depends-on): Add include_next.
4742         (Makefile.am): Create poll.h unconditionally. Substitute also
4743         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4744
4745 2010-09-28  Bruno Haible  <bruno@clisp.org>
4746
4747         Tests for module 'poll-h'.
4748         * modules/poll-h-c++-tests: New file.
4749         * tests/test-poll-h-c++.cc: New file.
4750
4751         Tests for module 'poll-h'.
4752         * modules/poll-h-tests: New file.
4753         * tests/test-poll-h.c: New file.
4754
4755 2010-09-28  Bruno Haible  <bruno@clisp.org>
4756
4757         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4758         * modules/poll-h (Depends-on): Add 'extensions'.
4759
4760 2010-09-28  Bruno Haible  <bruno@clisp.org>
4761
4762         New module 'poll-h'.
4763         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4764         (poll): Use modern idiom.
4765         * modules/poll-h: New file.
4766         * modules/poll (Files): Remove lib/poll.in.h.
4767         (Depends-on): Add poll-h.
4768         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4769         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4770         * m4/poll_h.m4: New file.
4771         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4772         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4773         and invoke gl_REPLACE_POLL_H.
4774         * lib/poll.c: Use common idiom.
4775         * tests/test-poll.c: Likewise.
4776         * doc/posix-headers/poll.texi: Mention the poll-h module.
4777         Suggested by Eric Blake.
4778
4779 2010-09-26  Bruno Haible  <bruno@clisp.org>
4780
4781         sys_wait: Implement WSTOPSIG.
4782         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4783         Reported by Simon Josefsson.
4784
4785 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4786
4787         stdlib, sys_wait: Avoid compilation error on mingw.
4788         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4789
4790 2010-09-26  Bruno Haible  <bruno@clisp.org>
4791
4792         stdlib tests: Avoid code duplication.
4793         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4794         * modules/sys_wait-tests (Files): Likewise.
4795         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4796         * tests/test-stdlib.c: Include test-sys_wait.h.
4797         (main): Invoke test_sys_wait_macros.
4798         * tests/test-sys_wait.c: Include test-sys_wait.h.
4799         (main): Invoke test_sys_wait_macros.
4800
4801 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4802
4803         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4804         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4805         sure Windows sockets are working before calling getaddrinfo.
4806         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4807         * doc/gnulib.texi (Windows sockets): Fix typo.
4808
4809 2010-09-25  Bruno Haible  <bruno@clisp.org>
4810
4811         Tests for module 'regex-quote'.
4812         * modules/regex-quote-tests: New file.
4813         * tests/test-regex-quote.c: New file.
4814
4815         New module 'regex-quote'.
4816         * lib/regex-quote.h: New file.
4817         * lib/regex-quote.c: New file.
4818         * modules/regex-quote: New file.
4819         Suggested by Reuben Thomas <rrt@sc3d.org>.
4820
4821 2010-09-24  Bruno Haible  <bruno@clisp.org>
4822
4823         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4824         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4825
4826 2010-09-23  Bruno Haible  <bruno@clisp.org>
4827
4828         setenv: Relax license.
4829         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4830         Blake.
4831         Requested by Eric Blake.
4832
4833 2010-09-22  Bruno Haible  <bruno@clisp.org>
4834
4835         termios: Relax license.
4836         * modules/termios (License): Change to LGPLv2+.
4837         Requested by Eric Blake.
4838
4839 2010-09-22  Bruno Haible  <bruno@clisp.org>
4840
4841         threadlib: Allow the package to change the default to 'no'.
4842         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4843         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4844         Reported by Paul Eggert.
4845
4846 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4847             Bruno Haible  <bruno@clisp.org>
4848
4849         Fix endless loop in mbmemcasecoll.
4850         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4851         byte.
4852         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4853
4854 2010-09-22  Bruno Haible  <bruno@clisp.org>
4855
4856         Tests for module 'memcoll'.
4857         * modules/memcoll-tests: New file.
4858         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4859
4860         memcoll, xmemcoll: Clarify size vs. length.
4861         * modules/memcoll.c (memcoll0): Clarify specification.
4862         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4863         passed to collate_error.
4864
4865 2010-09-22  Bruno Haible  <bruno@clisp.org>
4866
4867         Tests for module 'memcasecmp'.
4868         * modules/memcasecmp-tests: New file.
4869         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4870
4871 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4872
4873         * lib/pthread.in.h: Add split double-inclusion guard, and include
4874         system <pthread.h> if there is one.  Use @@-style as in other
4875         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4876         pthread.h doesn't.
4877         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4878         (pthread_mutexattr_settype, pthread_mutex_trylock):
4879         New static inline functions, if there's no system <pthread.h>.
4880         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4881         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4882         Approximate with mutexes if the system lacks spinlocks, as in
4883         MacOS.
4884         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4885         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4886         @@-style.  Check for spinlocks separately.
4887         (gl_PTHREAD_DEFAULTS): New macro.
4888         * modules/pthread: Redo to use a more typical style for in.h files.
4889
4890 2010-09-21  Eric Blake  <eblake@redhat.com>
4891
4892         net_if: enhance tests
4893         * tests/test-net_if.c (main): Move signature checks earlier.
4894         Print failures to stderr.
4895         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4896         Document the bug that we do not yet fix.
4897
4898 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4899
4900         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4901         about gnulib, not GSS.
4902
4903 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4904
4905         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4906         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4907         for Emacs.
4908         * build-aux/pmccabe2html: Make Makefile.am example code more
4909         cut-and-paste friendly.
4910
4911 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4912
4913         * tests/test-net_if.c: New file.
4914         * modules/net_if-tests: New file.
4915
4916 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4917
4918         pthread: add pthread_spin_destroy
4919         * lib/pthread.in.h (pthread_spin_destroy): New function.
4920
4921 2010-09-19  Bruno Haible  <bruno@clisp.org>
4922
4923         gnulib-tool: Fix --help output.
4924         * gnulib-tool (func_usage): Fix help message.
4925         Reported by Reuben Thomas <rrt@sc3d.org>.
4926
4927 2010-09-18  Jim Meyering  <meyering@redhat.com>
4928
4929         maint.mk: avoid unexpanded \n in two diagnostics
4930         * top/maint.mk (sc_prohibit_always_true_header_tests):
4931         Don't use a literal \n in a halt=... assignment.  It would not be
4932         expanded, and the two \n bytes would appear in the diagnostic output
4933         rather than the desired newline.  Use halt=$$(printf ... instead.
4934         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4935
4936 2010-09-18  Bruno Haible  <bruno@clisp.org>
4937
4938         netinet_in: Doc tweak.
4939         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4940         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4941
4942 2010-09-18  Jim Meyering  <meyering@redhat.com>
4943
4944         init.sh: correct an outdated comment
4945         * tests/init.sh (create_exe_shims_):  s/function/alias/
4946
4947         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4948         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4949         a file named "*.exe" is removed between the glob expansion and the
4950         processing of that oddly named file.
4951
4952 2010-09-17  Eric Blake  <eblake@redhat.com>
4953
4954         mirbsd: add some more support
4955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4956         in BSD family.
4957         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4958         devices as OpenBSD.
4959         * m4/host-os.m4 (mirbsd): Add MirBSD.
4960
4961         tests: fix unportable assumption on sys/wait.h
4962         * tests/test-sys_wait.c (main): Relax test.
4963         * tests/test-stdlib.c (main): Likewise.
4964
4965         init.sh: accomodate directory with no .exes
4966         * tests/init.sh: Accomodate directory containing only scripts.
4967
4968         tests: avoid compiler warning
4969         * tests/test-stdlib.c (main): Use the variable.
4970
4971         fdutimens, fdutimensat: update signature, again
4972         * lib/utimens.h (gl_futimens): Delete, and move signature...
4973         (fdutimens): ...here.
4974         (fdutimensat): Rearrange signature.
4975         (lutimensat): Rename variable for clarity.
4976         * lib/fdutimensat.c (fdutimensat): Update signature.
4977         * lib/utimens.c (fdutimens): Likewise.
4978         (gl_futimens): Delete.
4979         (utimens, lutimens): Update callers.
4980         * lib/futimens.c (futimens): Likewise.
4981         * tests/test-fdutimensat.c: Likewise.
4982         * tests/test-utimens.c: Likewise.
4983         * tests/test-futimens.h: Update comment.
4984         * NEWS: Mention this.
4985         Suggested by Paul Eggert.
4986
4987 2010-09-17  Bruno Haible  <bruno@clisp.org>
4988
4989         Take over the maintenance of some older macros from Autoconf.
4990         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4991         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4992         GNU Autoconf.
4993         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4994         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4995
4996 2010-09-17  Eric Blake  <eblake@redhat.com>
4997
4998         fdutimensat: drop atflag validation
4999         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5000         with valid fd, to close a race scenario where futimens is
5001         unsupported and FILE was replaced by a symlink.
5002         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5003         accordingly.
5004         Suggested by Paul Eggert.
5005
5006 2010-09-16  Bruno Haible  <bruno@clisp.org>
5007
5008         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5009         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5010
5011 2010-09-16  Bruno Haible  <bruno@clisp.org>
5012
5013         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5014         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5015         login_tty exists.
5016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5017
5018 2010-09-16  Bruno Haible  <bruno@clisp.org>
5019
5020         login_tty: Make the replacement code work on BSD systems.
5021         * lib/login_tty.c: Include <sys/ioctl.h>.
5022         (login_tty): Use ioctl TIOCSCTTY when available.
5023         * modules/login_tty (Depends-on): Add sys_ioctl.
5024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5025
5026 2010-09-16  Bruno Haible  <bruno@clisp.org>
5027
5028         login_tty: Stricter unit test.
5029         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5030         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5031         and tcgetsid() after login_tty.
5032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5033
5034 2010-09-16  Bruno Haible  <bruno@clisp.org>
5035
5036         New module 'tcgetsid'.
5037         * lib/tcgetsid.c: New file.
5038         * m4/tcgetsid.m4: New file.
5039         * modules/tcgetsid: New file.
5040         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5041         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5042         GNULIB_TCGETSID, HAVE_TCGETSID.
5043         * lib/termios.in.h: Include <sys/types.h>.
5044         (tcgetsid): New declaration.
5045         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5046         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5047         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5048         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5049
5050 2010-09-16  Bruno Haible  <bruno@clisp.org>
5051
5052         Tests for module 'termios'.
5053         * modules/termios-c++-tests: New file.
5054         * modules/termios-tests: New file.
5055         * tests/test-termios-c++.cc: New file.
5056         * tests/test-termios.c: New file.
5057
5058         New module 'termios'.
5059         * modules/termios: New file.
5060         * lib/termios.in.h: New file.
5061         * m4/termios_h.m4: New file.
5062         * doc/posix-headers/termios.texi: Mention the new module.
5063
5064 2010-09-16  Eric Blake  <eblake@redhat.com>
5065
5066         fdutimensat: add an atflag parameter
5067         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5068         * lib/utimens.h (fdutimensat): Update prototype.
5069         * tests/test-fdutimensat.c: Adjust test to match.
5070         * NEWS: Document the change.
5071         Suggested by Paul Eggert.
5072
5073 2010-09-16  Bruno Haible  <bruno@clisp.org>
5074
5075         Fix typos in comments.
5076         * lib/striconveh.h: Fix typo in comment.
5077         * lib/login_tty.c (login_tty): Likewise.
5078
5079 2010-09-15  Bruno Haible  <bruno@clisp.org>
5080
5081         stdlib: clarify MirBSD WEXITSTATUS bug
5082         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5083         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5084
5085 2010-09-15  Eric Blake  <eblake@redhat.com>
5086
5087         stdlib: work around MirBSD WEXITSTATUS bug
5088         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5089         * modules/stdlib (Depends-on): Add sys_wait.
5090         * tests/test-sys_wait.c (main): Enhance test.
5091         * tests/test-stdlib.c (main): Likewise.
5092         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5093
5094         docs: mention MacOS issue with WEXITSTATUS(constant)
5095         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5096         issue.
5097         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5098
5099         strnlen: add tests
5100         * modules/strnlen-tests: New file.
5101         * tests/test-strnlen.c: Likewise.
5102
5103 2010-09-14  Bruno Haible  <bruno@clisp.org>
5104
5105         unistr/base: Avoid link errors when module 'libunistring' is also used.
5106         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5107         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5108         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5109         Declare also when HAVE_LIBUNISTRING is set.
5110         Reported by Pádraig Brady <P@draigbrady.com>.
5111
5112 2010-09-14  Eric Blake  <eblake@redhat.com>
5113
5114         test-rawmemchr: make more robust
5115         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5116         (Depends-on, configure.ac): Add needed prerequisites to use it.
5117         * modules/memchr-tests (Files, Depends-on, configure.ac):
5118         Likewise, to avoid implicit reliance on memchr module prereqs.
5119         * tests/test-memchr.c (main): Ensure proper masking.
5120         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5121         reads.
5122
5123         memchr: detect glibc Alpha bug
5124         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5125         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5126         Alpha.
5127         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5128         * tests/test-memchr.c (main): Enhance test.
5129         Reported by Nelson H. F. Beebe.
5130
5131 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5132
5133         fts, getcwd, glob: audit for dirfd returning -1
5134         * lib/fts.c (opendir): Remove #define; no longer used.
5135         (opendirat): New arg PDIR_FD.  All callers changed.
5136         (fts_build, _opendir2): Use new opendirat to avoid the need for
5137         dirfd, or for checking whether dirfd returns a negative value.
5138         Don't use opendir; always use openat followed by fdopendir.
5139         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5140         it.
5141         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5142         returns -1 here.
5143         * modules/fts (Depends-on): Remove dirfd.
5144         * modules/getcwd (Depends-on): Likewise.
5145
5146 2010-09-13  Eric Blake  <eblake@redhat.com>
5147
5148         float: fix broken MirBSD header
5149         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5150         * doc/posix-headers/float.texi (float.h): Document it.
5151
5152 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5153
5154         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5155         * lib/fts.c (opendirat): New arg extra_flags.
5156         (__opendir2): Use it to avoid following symlinks when opening
5157         a directory, if symlinks are not supposed to be followed.  See
5158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5159
5160         fdopendir: preserve argument fd before returning
5161         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5162         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5163         (fdopendir): Use them, arranging for FD to be open to the same
5164         directory that it was when it started.  (It might be temporarily
5165         closed while fdopendir is running, so this not thread- or
5166         signal-safe.)  Be careful to do the right thing even when file
5167         descriptors are scarce and dup fails with errno == EMFILE.  See
5168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5169
5170 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5171
5172         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5173         * NEWS: Document change.
5174         * m4/regex.m4: Disable test for regoff_t size.
5175
5176 2010-09-13  Jim Meyering  <meyering@redhat.com>
5177
5178         fts: don't operate on an invalid file descriptor after failed dup
5179         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5180         negative file descriptor.
5181
5182 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5183
5184         savedir: add streamsavedir, deprecate fdsavedir
5185         * NEWS: Mention deprecation of fdsavedir.
5186         * lib/savedir.c (streamsavedir): New extern function, whose name
5187         ends in "savedir" to be consistent with the others.  This differs
5188         from savedirstream in that it doesn't close its argument.  The
5189         next version of GNU tar will use this instead of fdsavedir, to
5190         avoid some race conditions and conserve file descriptors.
5191         (savedirstream): Reimplement as a wrapper around streamsavedir.
5192         (fdsavedir): Add a comment deprecating this function.  As far as
5193         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5194         * lib/savedir.h (streamsavedir): New decl.
5195         (fdsavedir): Add a comment deprecating this.
5196
5197 2010-09-10  Bruno Haible  <bruno@clisp.org>
5198
5199         langinfo: Fix last commit.
5200         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5201         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5203
5204 2010-09-10  Bruno Haible  <bruno@clisp.org>
5205
5206         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5207         * lib/progreloc.c (O_EXEC): Define fallback.
5208
5209 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5212         * NEWS: Document recent changes to fcntl-h.
5213         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5214         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5215         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5216         Similarly for O_SEARCH; this last was already true, but not documented.
5217         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5218         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5219         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5220         Likewise.
5221         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5222         is zero, not whether it is defined.
5223         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5224         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5225         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5226
5227 2010-09-10  Bruno Haible  <bruno@clisp.org>
5228
5229         langinfo, nl_langinfo: Fix for IRIX 5.3.
5230         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5231         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5232         HAVE_LANGINFO_YESEXPR.
5233         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5234         HAVE_LANGINFO_YESEXPR.
5235         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5236         HAVE_LANGINFO_T_FMT_AMPM is 0.
5237         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5238         HAVE_LANGINFO_YESEXPR is 0.
5239         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5240         NOEXPR.
5241         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5242         * doc/posix-functions/nl_langinfo.texi: Likewise.
5243         Reported by Eric Blake.
5244
5245 2010-09-10  Bruno Haible  <bruno@clisp.org>
5246
5247         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5248         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5249         on FreeBSD 8.0 and OpenBSD 4.6.
5250         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5251         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5252         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5253         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5254         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5255         ac_includes_default.
5256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5257
5258 2010-09-09  Eric Blake  <eblake@redhat.com>
5259
5260         strsignal: work around NetBSD bug
5261         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5262         * lib/string.in.h (includes): Likewise.
5263         * doc/posix-functions/strsignal.texi (strsignal): Document the
5264         bug.
5265         Reported by Nelson H. F. Beebe.
5266
5267         gnulib-tool: work with NetBSD /bin/sh
5268         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5269         (func_get_description, func_get_comment, func_get_status)
5270         (func_get_notice, func_get_applicability, func_get_filelist)
5271         (func_get_dependencies, func_get_autoconf_early_snippet)
5272         (func_get_autoconf_snippet, func_get_automake_snippet)
5273         (func_get_include_directive, func_get_link_directive)
5274         (func_get_license, func_get_maintainer, func_import): Avoid
5275         shell syntax errors from parsing syntax extensions.
5276
5277 2010-09-09  Bruno Haible  <bruno@clisp.org>
5278
5279         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5280         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5281         a reliable way to determine whether the 'alias' command works.
5282
5283 2010-09-08  Jim Meyering  <meyering@redhat.com>
5284
5285         init.sh: penalize a set-x-impaired shell; don't disqualify it
5286         * tests/init.sh: Too many shells corrupt application stderr when
5287         you set -x, so we can't afford to disqualify them, since at least
5288         on Irix-6.5, that would disqualify all bourne shells.
5289         Instead, use a two-pass approach.
5290         On the first pass, try to find a shell that meets the stricter
5291         condition that set -x does not corrupt stderr.
5292         If no shell meets the stricter condition, retest each candidate
5293         shell, but without that extra condition.  Finally, when
5294         VERBOSE=yes is requested and set -x might cause trouble, simply
5295         issue a warning and refrain from enabling debug output.
5296
5297 2010-09-08  Eric Blake  <eblake@redhat.com>
5298
5299         unsetenv: fix OpenBSD bug
5300         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5301         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5302         documentation.
5303         Reported by Jim Meyering.
5304
5305         strtod: work around IRIX 6.5 bug
5306         * lib/strtod.c (strtod): Reparse number on shorter string if
5307         exponent parse was invalid.
5308         * tests/test-strtod.c (main): Add check for "0x1p 2".
5309         Reported by Tom G. Christensen.
5310
5311         getopt: optimize previous patch
5312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5313         empty variable.  Speed up awk script.
5314         Reported by Paolo Bonzini.
5315
5316 2010-09-08  Jim Meyering  <meyering@redhat.com>
5317
5318         test.sh: disqualify shells for which set -x corrupts stderr
5319         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5320         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5321         appear in stderr output.  For example, this command:
5322             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5323         prints "P=1" on those two systems:
5324
5325 2010-09-08  Bruno Haible  <bruno@clisp.org>
5326
5327         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5328         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5329         commands, because some shells ignore redirections when there is an
5330         error in the command lookup.
5331         Reported by Eric Blake.
5332
5333 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5334
5335         * lib/regex.h: Fix a mention of `regex_compile' (should be
5336         `re_compile_pattern').
5337         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5338         (re_set_registers): Correct name of parameter in comment.
5339
5340         * doc/regex.texi: Add documentation for missing syntax flags.
5341         Remove commented-out documentation of defunct syntax option
5342         RE_NO_EMPTY_ALTS.
5343         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5344         Add documentation of re_set_registers.
5345         Document trick to re-use a pattern buffer by setting fastmap manually.
5346         Update documentation of struct re_pattern_buffer per public members.
5347         Uncomment documentation of equivalence class operators and
5348         collating symbol operators, since they are now implemented,
5349         Explain leftmost-longest matching in relation to alternatives.
5350         Tidy documentation of substring matching.
5351         Remove POSIX documentation, which is done better in
5352         glibc, and refer the reader there. Keep BSD API documentation, as
5353         that is not readily available elsewhere.
5354
5355 2010-09-07  Eric Blake  <eblake@redhat.com>
5356
5357         getopt: handle POSIXLY_CORRECT set but not exported
5358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5359         export state of POSIXLY_CORRECT, due to bash set -o posix.
5360         Reported by Dustin J. Mitchell.
5361
5362 2010-09-05  Bruno Haible  <bruno@clisp.org>
5363
5364         gnulib-tool: Highlight the changed options.
5365         * gnulib-tool (func_usage): Display the --import, --add-import,
5366         --remove-import explanations in bold font.
5367
5368 2010-09-06  Karl Berry  <karl@gnu.org>
5369
5370         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5371
5372 2010-09-05  Bruno Haible  <bruno@clisp.org>
5373
5374         uniwidth/width: Update comment.
5375         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5376         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5377
5378 2010-09-05  Bruno Haible  <bruno@clisp.org>
5379
5380         isinf, isnan: Relax license.
5381         * modules/isinf (License): Change from GPL to LGPL, with consent from
5382         Ben Pfaff.
5383         * modules/isnan (License): Likewise.
5384         Requested by Ludovic Courtès.
5385
5386 2010-09-04  Bruno Haible  <bruno@clisp.org>
5387
5388         gnulib-tool: Help migration from --import to --add-import or --update.
5389         * gnulib-tool: Emit a verbose error message when --import is used
5390         without any module name.
5391
5392 2010-09-04  Bruno Haible  <bruno@clisp.org>
5393
5394         Update doc about gnulib-tool.
5395         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5396         'gnulib-tool --update' in more detail.
5397         Reported by Eric Blake.
5398
5399 2010-09-04  Bruno Haible  <bruno@clisp.org>
5400
5401         gnulib-tool: Change --import. New options --add/remove-import.
5402         * gnulib-tool: New options --add-import, --remove-import.
5403         (func_usage): Document them.
5404         (have_associative): Define always.
5405         (func_import): In import mode, don't merge the specified settings with
5406         the cached settings. Implement remove-import mode.
5407         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5408         Explain when to use them versus --import.
5409         (Simple update): Use --add-import instead of --import.
5410         * NEWS: Mention the change.
5411
5412 2010-09-04  Bruno Haible  <bruno@clisp.org>
5413
5414         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5415         separate gnulib.mk.
5416
5417 2010-09-04  Bruno Haible  <bruno@clisp.org>
5418
5419         gnulib-tool: Don't talk about CVS any more.
5420         * gnulib-tool (func_usage, func_import): Write "version control"
5421         instead of CVS.
5422
5423 2010-09-04  Jim Meyering  <meyering@redhat.com>
5424
5425         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5426         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5427         false positives (whose names may be ill-chosen) when searching
5428         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5429         would cause a false-positive.
5430
5431         avoid coreutils "make distcheck" failure
5432         Coreutils tests with an absolute build directory name that contains
5433         a space.  Not quoting this directory name caused a failure.
5434         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5435         * tests/test-vc-list-files-cvs.sh: Likewise.
5436
5437 2010-09-04  Bruno Haible  <bruno@clisp.org>
5438
5439         gnulib-tool: Avoid error when run in a package without Makefile.am.
5440         * gnulib-tool: When collecting the m4dirs in a package that does not
5441         have a Makefile.am, eliminate those directories that contain no
5442         gnulib-cache.m4. Fix expression that counts these directories.
5443
5444 2010-09-04  Bruno Haible  <bruno@clisp.org>
5445
5446         update-copyright test: Improve output when perl is missing or too old.
5447         * tests/test-update-copyright.sh: Move test of Perl version down after
5448         the test whether Perl exists. Provide an explanation relating Perl's
5449         error message to Automake's SKIP: message.
5450
5451 2010-09-04  Bruno Haible  <bruno@clisp.org>
5452
5453         Don't augment PATH in TESTS_ENVIRONMENT.
5454         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5455         set abs_aux_dir instead of augmenting PATH.
5456         * modules/vc-list-files-tests (Makefile.am): Likewise.
5457         * tests/test-update-copyright.sh: Augment PATH here.
5458         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5459         path_prepend_.
5460         * tests/test-vc-list-files-git.sh: Likewise.
5461
5462 2010-09-04  Jim Meyering  <meyering@redhat.com>
5463
5464         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5465         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5466
5467 2010-09-04  Bruno Haible  <bruno@clisp.org>
5468
5469         strdup: Fix compilation error in C++ mode.
5470         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5471         the macro.
5472
5473 2010-09-04  Bruno Haible  <bruno@clisp.org>
5474
5475         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5476         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5477         macro into a function.
5478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5479
5480 2010-09-04  Bruno Haible  <bruno@clisp.org>
5481
5482         Set PATH_SEPARATOR the same way autoconf does.
5483         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5484         the value of PATH_SEPARATOR the same way autoconf-generated configure
5485         scripts do.
5486         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5487         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5488
5489 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5490
5491         Set PATH_SEPARATOR the same way autoconf does.
5492         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5493         the same way autoconf-generated configure scripts do.
5494         * posix-modules: Likewise.
5495
5496 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         hash: fix safe_hasher const typo
5499         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5500         const; otherwise, there is a type error later.
5501
5502 2010-09-02  Jim Meyering  <meyering@redhat.com>
5503
5504         test-update-copyright.sh: require perl 5.8.0
5505         * tests/test-update-copyright.sh: Require 5.8.0,
5506         which Tom G. Christensen has confirmed is adequate,
5507         while 5.6.1 is not.
5508
5509 2010-09-02  Eric Blake  <eblake@redhat.com>
5510
5511         tests: init.sh improvements for re-exec'ing with zsh
5512         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5513         -vx through shell re-exec.
5514         Reported by Tom G. Christensen.
5515
5516         wctype: fix typo in previous commit
5517         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5518         Reported by Ludovic Courtès.
5519
5520 2010-09-02  Jim Meyering  <meyering@redhat.com>
5521
5522         test-update-copyright.sh: skip test if Perl is too old
5523         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5524         Reported by Tom G. Christensen.
5525
5526 2010-09-02  Bruno Haible  <bruno@clisp.org>
5527
5528         wctype: Avoid compilation error on IRIX 6.5.30.
5529         * lib/wctype.in.h (iswblank): Declare with a replacement if
5530         REPLACE_ISWBLANK is set.
5531         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5532         declared. Set REPLACE_ISWBLANK.
5533         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5534         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5535         * doc/posix-headers/wctype.texi: Likewise.
5536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5537
5538 2010-09-01  Bruno Haible  <bruno@clisp.org>
5539
5540         New module 'socketlib'.
5541         * modules/socketlib: New file.
5542         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5543         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5544         * modules/sockets (Depends-on): Add socketlib.
5545         Suggested by Sam Steingold <sds@gnu.org>.
5546
5547 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5548
5549         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5550
5551         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5552         when one needs search access to a directory but not read access.
5553         On systems where it is available, it works in some cases where
5554         O_RDONLY does not, namely on directories that are searchable but
5555         not readable, and which need only to be searchable.  If O_SEARCH
5556         is not available, fall back to the traditional method of using
5557         O_RDONLY.
5558
5559         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5560         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5561         when opening a directory that needs only to be searchable.
5562         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5563         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5564         * lib/openat-proc.c (openat_proc_name): Likewise.
5565         * lib/openat.c (openat_needs_fchdir): Likewise.
5566         * lib/save-cwd.c (save_cwd): Likewise.
5567         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5568
5569 2010-08-28  Bruno Haible  <bruno@clisp.org>
5570
5571         New module 'host-cpu-c-abi'.
5572         * modules/host-cpu-c-abi: New file.
5573         * m4/host-cpu-c-abi.m4: New file, based on part of
5574         clisp/src/m4/general.m4.
5575         Requested by Sam Steingold <sds@gnu.org>.
5576
5577 2010-08-31  Eric Blake  <eblake@redhat.com>
5578         and Jim Meyering  <meyering@redhat.com>
5579
5580         hash: factor, and guard against misbehaving hasher function
5581         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5582         of table->hasher's return value.  Also protect against a hash value
5583         so large that adding it to table->bucket results in a NULL pointer.
5584         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5585         Use it in place of open-coded check-and-abort.
5586
5587 2010-08-30  Bruno Haible  <bruno@clisp.org>
5588
5589         hash: silence spurious clang warning
5590         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5591         Reported by Eric Blake.
5592
5593 2010-08-30  Eric Blake  <eblake@redhat.com>
5594
5595         strstr, memmem, strcasestr: avoid leaked shell message
5596         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5597         FreeBSD.
5598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5600
5601         tests: silence clang warning
5602         * tests/test-malloca.c (do_allocation): Avoid dead store.
5603
5604 2010-08-29  Bruno Haible  <bruno@clisp.org>
5605
5606         gettext: Fix recent mistake.
5607         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5608
5609 2010-08-29  Bruno Haible  <bruno@clisp.org>
5610
5611         selinux-h: Offer a --without-selinux option.
5612         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5613         --without-selinux was specified, skip all tests and define
5614         HAVE_SELINUX_SELINUX_H to 0.
5615         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5616         set LIB_SELINUX to empty.
5617         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5618         gl_LIBSELINUX. If --without-selinux was specified, replace
5619         selinux/context.h.
5620         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5621
5622 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5623             Bruno Haible  <bruno@clisp.org>
5624
5625         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5626         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5627         of HAVE_REALLOC.
5628         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5629         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5630         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5631         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5632
5633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5634             Bruno Haible  <bruno@clisp.org>
5635
5636         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5637         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5638         HAVE_CALLOC.
5639         * lib/xmalloc.c: Update accordingly.
5640         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5641         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5642         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5643
5644 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5645             Bruno Haible  <bruno@clisp.org>
5646
5647         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5648         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5649         HAVE_MALLOC.
5650         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5651         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5652         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5653
5654 2010-08-29  Bruno Haible  <bruno@clisp.org>
5655
5656         Update modules list.
5657         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5658         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5659         (String handling <string.h>): Add astrxfrm.
5660         (File system functions): Add readlinkat.
5661
5662 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5663
5664         Tests for module 'realloc-gnu'.
5665         * modules/realloc-gnu-tests: New file.
5666         * tests/test-realloc-gnu.c: New file.
5667
5668         Tests for module 'calloc-gnu'.
5669         * modules/calloc-gnu-tests: New file.
5670         * tests/test-calloc-gnu.c: New file.
5671
5672         Tests for module 'malloc-gnu'.
5673         * modules/malloc-gnu-tests: New file.
5674         * tests/test-malloc-gnu.c: New file.
5675
5676 2010-08-28  Bruno Haible  <bruno@clisp.org>
5677
5678         Rename module 'realloc' -> 'realloc-gnu'.
5679         * modules/realloc-gnu: New file, copied from modules/realloc.
5680         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5681         obsolete.
5682         * modules/mgetgroups (Depends-on): Update.
5683         * doc/posix-functions/realloc.texi: Update.
5684         * NEWS: Mention the change.
5685
5686         Rename module 'calloc' -> 'calloc-gnu'.
5687         * modules/calloc-gnu: New file, copied from modules/calloc.
5688         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5689         obsolete.
5690         * doc/posix-functions/calloc.texi: Update.
5691         * NEWS: Mention the change.
5692
5693         Rename module 'malloc' -> 'malloc-gnu'.
5694         * modules/malloc-gnu: New file, copied from modules/malloc.
5695         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5696         obsolete.
5697         * modules/argp (Depends-on): Update.
5698         * modules/regex (Depends-on): Update.
5699         * doc/posix-functions/malloc.texi: Update.
5700         * NEWS: Mention the change.
5701
5702 2010-08-28  Eric Blake  <eblake@redhat.com>
5703
5704         pread, pwrite: add missing dependency
5705         * modules/pread (Depends-on): Add extensions.
5706         * modules/pwrite (Depends-on): Likewise.
5707
5708 2010-08-28  Bruno Haible  <bruno@clisp.org>
5709
5710         unistr/u*-strchr: Fix tests dependencies.
5711         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5712         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5713         Reported by Ian Beckwith <ianb@erislabs.net>.
5714
5715 2010-08-28  Bruno Haible  <bruno@clisp.org>
5716
5717         read-file: Don't occupy too much unused memory.
5718         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5719
5720 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5721             Eric Blake  <eblake@redhat.com>
5722             Bruno Haible  <bruno@clisp.org>
5723
5724         read-file: Avoid memory reallocations with regular files.
5725         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5726         (fread_file): With regular files, use the remaining length as the
5727         initial buffer size.  Check against overflow.
5728         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5729         sys_stat.
5730
5731 2010-08-28  Bruno Haible  <bruno@clisp.org>
5732
5733         ftello: Relax license.
5734         * modules/ftello (License): Relax to LGPLv2+.
5735         Reported by Eric Blake.
5736
5737 2010-08-28  Bruno Haible  <bruno@clisp.org>
5738
5739         Avoid relocwrapper link errors due to gnulib replacement functions.
5740         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5741         function.
5742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5743
5744 2010-08-28  Bruno Haible  <bruno@clisp.org>
5745
5746         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5748         defined.
5749         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5750         Suggested by Eric Blake.
5751
5752 2010-08-28  Bruno Haible  <bruno@clisp.org>
5753
5754         sys_socket, netdb: Ensure socklen_t gets defined.
5755         * modules/sys_socket (Depends-on): Add socklen.
5756         * modules/netdb (Depends-on): Likewise.
5757         * modules/getaddrinfo (Depends-on): Remove socklen.
5758         * modules/getsockopt (Depends-on): Likewise.
5759         * modules/setsockopt (Depends-on): Likewise.
5760         * tests/test-sys_socket.c: Check that socklen_t is defined.
5761         * tests/test-netdb.c: Likewise.
5762         * m4/socklen.m4: Update comments.
5763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5764
5765 2010-08-27  Eric Blake  <eblake@redhat.com>
5766
5767         login_tty: add missing dependency
5768         * modules/login_tty (Depends-on): Add pty.
5769
5770 2010-08-26  Eric Blake  <eblake@redhat.com>
5771
5772         lib-symbol-versions: fix m4 quoting
5773         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5774         format for AC_LINK_IFELSE.
5775
5776         glob: fix compile test
5777         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5778
5779         btowc: fix missing file
5780         * modules/btowc (Files): Also ship locale-fr.m4.
5781
5782         lseek: fix link test
5783         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5784         AC_LINK_IFELSE.
5785
5786         include_next: silence autoconf 2.68 warning
5787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5788         AC_COMPILE_IFELSE as special.
5789         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5790         autoconf < 2.68.
5791
5792         acl: fix compilation test
5793         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5794         AC_COMPILE_IFELSE.
5795
5796 2010-08-26  Bruno Haible  <bruno@clisp.org>
5797
5798         Modernize AC_TRY_RUN invocations.
5799         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5801         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5802         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5803         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5807         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5808         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5810         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5811         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5814         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5815         gl_MBRLEN_NUL_RETVAL): Likewise.
5816         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5817         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5818         Likewise.
5819         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5821         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5822         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5823         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5824         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5825         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5826         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5827         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5828         Likewise.
5829         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5830         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5832         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5835         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5836         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5837         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5839
5840 2010-08-26  Bruno Haible  <bruno@clisp.org>
5841
5842         Modernize AC_TRY_LINK invocations.
5843         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5844         AC_TRY_LINK.
5845         * m4/argp.m4 (gl_ARGP): Likewise.
5846         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5847         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5848         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5849         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5850         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5851         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5852         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5853         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5854         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5855         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5856         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5857         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5858         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5859         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5861         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5862         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5863         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5864         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5865         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5866         Likewise.
5867         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5868         Likewise.
5869         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5870         Likewise.
5871         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5873         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5874         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5875         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5876         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5877         * m4/servent.m4 (gl_SERVENT): Likewise.
5878         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5879         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5880         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5881         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5882         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5886         * modules/tsearch-tests (configure.ac): Likewise.
5887
5888 2010-08-26  Bruno Haible  <bruno@clisp.org>
5889
5890         Modernize AC_TRY_COMPILE invocations.
5891         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5892         AC_TRY_COMPILE.
5893         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5894         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5895         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5896         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5897         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5898         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5899         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5900         * m4/lock.m4 (gl_LOCK): Likewise.
5901         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5903         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5905         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5906         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5907         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5909         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5910         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5911         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5913         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5914         extraneous semicolon.
5915
5916 2010-08-26  Jim Meyering  <meyering@redhat.com>
5917
5918         stat-time: relax license LGPL
5919         * modules/stat-time (License): Change from GPL to LGPL,
5920         with consent from all contributors, for use in libguile.
5921         Requested by Ludovic Courtès.
5922
5923 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5924
5925         poll: return immediately on POLLHUP.
5926         * lib/poll.c (poll): Always set timeout before wait_timeout is
5927         computed.
5928
5929 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5930
5931         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5932         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5933         rmdir ("dir/.//"), unlinkat.
5934
5935 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5936
5937         stdbool: avoid spurious failure with modern xlc
5938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5939
5940 2010-08-24  Bruno Haible  <bruno@clisp.org>
5941
5942         getloadavg: simplify code
5943         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5944         gl_have_func. Update comments.
5945
5946 2010-08-24  Eric Blake  <eblake@redhat.com>
5947
5948         getloadavg: don't define SVR4 on cygwin
5949         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5950         only define SVR4 when -lkvm is required.
5951         Reported by Yaakov Selkowitz.
5952
5953 2010-08-24  Bruno Haible  <bruno@clisp.org>
5954
5955         priv-set: fix comment
5956         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5957
5958 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5959
5960         priv-set: fix comments
5961         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5962         to match code, as suggested by David Bartley in:
5963         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5964
5965 2010-08-23  Eric Blake  <eblake@redhat.com>
5966
5967         stdbool: avoid rejecting clang
5968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5969         * tests/test-stdbool.c: Enable more tests if using the system
5970         <stdbool.h> instead of the gnulib replacement.
5971         (main): Move xlc bug test to a runtime test for all compilers.
5972         Reported by Anders Kaseorg.
5973
5974         argz: fix shell quoting issue
5975         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5976         Reported by Charles Wilson.
5977
5978 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5979             Erik Faye-Lund <kusmabite@gmail.com>
5980
5981         poll, select: handle ERROR_BROKEN_PIPE.
5982         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5983         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5984         * lib/select.c (win32_compute_revents): Do not mark a pipe
5985         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5986
5987 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5988
5989         fts: allow compilation with C++
5990         * lib/fts_.h: Specify extern "C" linkage with C++.
5991
5992 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5993
5994         Fix gnulib-tool sed script de-commentation for AIX sed.
5995         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5996         sed.
5997
5998 2010-08-17  Eric Blake  <eblake@redhat.com>
5999
6000         test-stddef: test for (some) offsetof bugs
6001         * tests/test-stddef.c: Enhance test to ensure correct type of
6002         offsetof.
6003         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6004         that we are not fixing at this time.
6005
6006 2010-08-15  Bruno Haible  <bruno@clisp.org>
6007
6008         stpncpy: Allow stpncpy to be defined as a macro.
6009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6010         if it's already correctly declared.
6011         * lib/string.in.h (stpncpy): Undefine before redefining.
6012         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6013
6014 2010-08-14  Bruno Haible  <bruno@clisp.org>
6015
6016         Rename module 'memxfrm' to 'amemxfrm'.
6017         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6018         (amemxfrm): Renamed from memxfrm.
6019         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6020         (amemxfrm): Renamed from memxfrm.
6021         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6022         * NEWS: Mention the change.
6023         * MODULES.html.sh (String handling <string.h>): Update.
6024         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6025         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6026         * lib/unicase/u16-casexfrm.c: Likewise.
6027         * lib/unicase/u32-casexfrm.c: Likewise.
6028         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6029         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6030         * lib/uninorm/u16-normxfrm.c: Likewise.
6031         * lib/uninorm/u32-normxfrm.c: Likewise.
6032         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6033         memxfrm.
6034         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6035         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6036         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6037         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6038         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6039         Suggested by Paul Eggert.
6040
6041 2010-08-14  Bruno Haible  <bruno@clisp.org>
6042
6043         Tests for module 'astrxfrm'.
6044         * modules/astrxfrm-tests: New file.
6045         * tests/test-astrxfrm.c: New file.
6046
6047         New module 'astrxfrm'.
6048         * lib/astrxfrm.h: New file.
6049         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6050         * modules/astrxfrm: New file.
6051
6052 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6053
6054         regex: Tweak doc.
6055         * doc/regex.texi (Overview): Don't mention regex.c.
6056         (GNU Regular Expression Compiling): Likewise.
6057         (Match-end-of-line Operator): Mention 'not_eol'.
6058
6059 2010-08-14  Brian Gough  <bjg@gnu.org>
6060             Bruno Haible  <bruno@clisp.org>
6061
6062         git-merge-changelog: add doc relating to use with bzr and hg.
6063         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6064
6065 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6066
6067         pthread: fix pthread.h creation for srcdir != builddir
6068         * modules/pthread (Makefile.am): Fix the rule to work also in a
6069         non-srcdir build.
6070
6071 2010-08-13  Karl Berry  <karl@gnu.org>
6072
6073         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6074         * doc/posix-*/*: force line break before @url of POSIX
6075         specifications.
6076         Suggested by Werner Lemberg.
6077
6078 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         strtod: fix const diagnostic
6081         * lib/strtod.c (strtod): Don't assign const char * to char *,
6082         as this elicits a warning from GCC when warnings are enabled.
6083
6084 2010-08-10  Pádraig Brady <P@draigbrady.com>
6085         and Eric Blake  <eblake@redhat.com>
6086
6087         copy-acl: ignore ENOTSUP on HP-UX
6088         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6089         so that it is available for HP-UX.
6090         * lib/copy-acl.c (qcopy_acl): Use it.
6091         Reported by Patrick M. Callahan.
6092
6093 2010-08-10  Eric Blake  <eblake@redhat.com>
6094
6095         open, chown: relax license
6096         * modules/open (License): Change to LGPLv2+, with consent by all
6097         authors, for use in augeas.
6098         * modules/chown (License): Likewise.
6099         * modules/lchown (Likewise): Likewise.
6100         Requested by Adam Stokes.
6101
6102 2010-08-09  Karl Berry  <karl@gnu.org>
6103
6104         * build-aux/ar-lib: new file, import from Automake.
6105         * config/srclist.txt: autocheck for updates.
6106
6107 2010-08-09  Eric Blake  <eblake@redhat.com>
6108
6109         readlinkat: adjust client modules
6110         * modules/areadlinkat (Depends-on): Use readlinkat, not
6111         symlinkat.
6112         * modules/areadlinkat-with-size (Depends-on): Likewise.
6113
6114         mknod: be more vocal about danger of running tests as root
6115         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6116         root, since that is just asking for problems.
6117         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6118
6119         readlinkat: split into its own module
6120         * modules/symlinkat: Split readlinkat...
6121         * modules/readlinkat: ...into separate module.
6122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6123         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6124         * lib/symlinkat.c (readlinkat): Move...
6125         * lib/readlinkat.c: ...into new file.
6126         * modules/symlinkat-tests: Split readlinkat test...
6127         * modules/readlinkat-tests: ...into separate module.
6128         * tests/test-symlinkat.c: Split...
6129         * tests/test-readlinkat.c: ...into new file.
6130         * NEWS: Document the split.
6131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6132         * lib/unistd.in.h (readlinkat): Likewise.
6133         Suggested by Bruno Haible.
6134
6135 2010-08-08  Bruno Haible  <bruno@clisp.org>
6136
6137         memxfrm: Speed up.
6138         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6139         that usually only one call to strxfrm is necessary for each string
6140         part.
6141         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6142
6143 2010-08-07  Karl Berry  <karl@gnu.org>
6144
6145         * doc/posix-headers/limits.texi,
6146         * doc/posix-functions/malloc.texi,
6147         * doc/posix-functions/strsignal.texi: missing @item.
6148         * doc/ld-version-script.texi: spurious leading i.
6149         * doc/regex.texi (Interval Operators): no commas inside @var.
6150
6151 2010-08-01  Bruno Haible  <bruno@clisp.org>
6152
6153         Integrate the regex documentation.
6154         * doc/gnulib.texi: Define 'cn' index.
6155         (Regular expressions): New a chapter that includes regex.texi and
6156         regexprops-generic.texi.
6157         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6158         syntax.
6159
6160         Whitespace cleanup.
6161         * doc/regex.texi: Remove trailing spaces.
6162
6163         Add regex documentation.
6164         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6165         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6166         Written by Kathy A. Hargreaves and Karl Berry.
6167
6168 2010-08-01  Bruno Haible  <bruno@clisp.org>
6169
6170         link: Update documentation.
6171         * doc/posix-functions/link.texi: Update regarding Solaris.
6172
6173 2010-07-31  Bruno Haible  <bruno@clisp.org>
6174
6175         Update modules list.
6176         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6177         (String handling <string.h>): Add memcmp2, memxfrm.
6178         (Container data structures): Add xlist, xsublist, xoset.
6179         (Core language properties): Add alignof, unused-parameter.
6180         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6181         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6182         (Unibyte characters <ctype.h>): New section.
6183         (String handling <string.h>): New section.
6184         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6185         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6186         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6187         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6188         tan, tanh, tanl, y0, y1, yn.
6189         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6190         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6191         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6192         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6193         unlockpt, vdprintf, vdprintf-posix.
6194         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6195         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6196         xconcat-filename.
6197         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6198         getdtablesize, pipe2, pipe2-safer.
6199         (Security): New section.
6200         (Networking functions): Add accept4.
6201         (Signal handling): Add sigpipe.
6202         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6203         mbmemcasecoll.
6204         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6205         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6206         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6207         pipe-filter-ii.
6208         (Misc): Add argp-version-etc, login_tty, parse-duration.
6209
6210 2010-07-31  Bruno Haible  <bruno@clisp.org>
6211
6212         Improve doc in MODULES.html.
6213         * modules/linkat (Description): Add the word "function".
6214         * modules/mkfifo (Description): Likewise.
6215         * modules/mknod (Description): Likewise.
6216         * modules/remove (Description): Likewise.
6217         * modules/renameat (Description): Likewise.
6218         * modules/stat (Description): Likewise.
6219         * modules/symlink (Description): Likewise.
6220         * modules/unlink (Description): Likewise.
6221
6222 2010-07-31  Bruno Haible  <bruno@clisp.org>
6223
6224         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6225         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6226         option --enable/disable-c++ instead of --enable/disable-cxx.
6227         * NEWS: Mention the change.
6228
6229 2010-07-31  Bruno Haible  <bruno@clisp.org>
6230
6231         readlink, areadlink: Relax test a bit.
6232         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6233         alternative to ENOTDIR.
6234         * tests/test-areadlink.h (test_areadlink): Likewise.
6235         Reported by Rainer Tammer.
6236
6237 2010-07-31  Bruno Haible  <bruno@clisp.org>
6238
6239         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6240         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6241         character, perform the search using U_STRCHR.
6242         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6243         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6244         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6245         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6246         Suggested by Paolo Bonzini.
6247
6248 2010-07-31  Bruno Haible  <bruno@clisp.org>
6249
6250         unistr/u*-strstr: Fix dependencies.
6251         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6252         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6253         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6254
6255 2010-07-31  Bruno Haible  <bruno@clisp.org>
6256
6257         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6258         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6259         the beginning of the loop.
6260         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6261         cases in 'switch' statement.
6262
6263         unistr/u8-strchr: Fix several bugs.
6264         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6265         the string. When not found, return NULL, not a pointer near the end.
6266
6267         More tests for unistr/u8-strchr.
6268         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6269         that the function does not read past the first occurrence of the byte
6270         being searched.
6271         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6272         * tests/unistr/test-u16-strchr.c (main): New function.
6273         * tests/unistr/test-u32-strchr.c (main): New function.
6274
6275 2010-07-31  Bruno Haible  <bruno@clisp.org>
6276
6277         posix-modules: Ignore backup files of documentation files.
6278         * posix-modules: grep only through files named *.texi.
6279
6280 2010-07-31  Bruno Haible  <bruno@clisp.org>
6281
6282         symlinkat: Fix documentation.
6283         * doc/posix-functions/readlinkat.texi: Fix module name.
6284
6285 2010-07-31  Bruno Haible  <bruno@clisp.org>
6286
6287         fchownat: Replace also when chown has the trailing slash bug.
6288         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6289         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6290         introduced on 2010-04-10.
6291         Reported by Rainer Tammer.
6292
6293 2010-07-31  Bruno Haible  <bruno@clisp.org>
6294
6295         linkat: Work around AIX 7.1 bug.
6296         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6297         whether linkat handles trailing slash correctly. If not, replace linkat
6298         and define LINKAT_TRAILING_SLASH_BUG.
6299         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6300         check whether (fd1,file1) points to a directory if file1 or file2 ends
6301         in a slash. Code taken from lib/link.c.
6302         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6303         Reported by Rainer Tammer.
6304
6305 2010-07-31  Bruno Haible  <bruno@clisp.org>
6306
6307         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6308         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6309         This disables an xlc optimization that was causing wrong test results.
6310         Reported by Rainer Tammer.
6311
6312 2010-07-31  Bruno Haible  <bruno@clisp.org>
6313
6314         iconv: Work around AIX 6.1..7.1 bug.
6315         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6316         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6317         cross-compiling, guess no on all versions of AIX.
6318         Reported by Rainer Tammer.
6319
6320 2010-07-31  Bruno Haible  <bruno@clisp.org>
6321
6322         readlink: Relax test a bit.
6323         * tests/test-readlink.h (test_readlink): Allow different errno value
6324         when readlink is called with a file name that ends in / and refers to
6325         a file.
6326         Suggested by Eric Blake.
6327         Reported by Rainer Tammer.
6328
6329 2010-07-31  Bruno Haible  <bruno@clisp.org>
6330
6331         copysign: Does not require -lm on glibc systems.
6332         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6333         gl_COMMON_DOUBLE_MATHFUNC.
6334         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6335
6336 2010-07-31  Bruno Haible  <bruno@clisp.org>
6337
6338         duplocale: Work around AIX 7.1 bug.
6339         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6340         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6341         * lib/duplocale.c (rpl_duplocale): Update comment.
6342         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6343         Reported by Rainer Tammer.
6344
6345 2010-07-30  Bruno Haible  <bruno@clisp.org>
6346
6347         dirfd: Avoid link error on AIX 7.1.
6348         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6349         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6350         exist, set REPLACE_DIRFD.
6351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6352         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6353         * doc/posix-functions/dirfd.texi: Update.
6354         Reported by Rainer Tammer.
6355
6356 2010-07-30  Eric Blake  <eblake@redhat.com>
6357
6358         strtod: next round of AIX fixes
6359         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6360         exponent.
6361         * tests/test-strtod.c (main): Enhance tests.
6362         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6363         Reported by Rainer Tammer.
6364
6365         futimens: fix configure check
6366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6367         Reported by Bruno Haible.
6368
6369 2010-07-30  Bruno Haible  <bruno@clisp.org>
6370
6371         getline: Update regarding AIX.
6372         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6373         Reported by Rainer Tammer.
6374
6375 2010-07-30  Bruno Haible  <bruno@clisp.org>
6376
6377         wcwidth: Drop replacement on AIX 7.
6378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6379         AIX 7.
6380         Reported by Rainer Tammer.
6381
6382 2010-07-30  Bruno Haible  <bruno@clisp.org>
6383
6384         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6386         a 'char *'.
6387         Reported by Rainer Tammer.
6388
6389 2010-07-30  Bruno Haible  <bruno@clisp.org>
6390
6391         unlink: Update regarding AIX.
6392         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6393         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6394         Reported by Rainer Tammer.
6395
6396 2010-07-30  Bruno Haible  <bruno@clisp.org>
6397
6398         symlink: Update regarding AIX.
6399         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6400         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6401         Reported by Rainer Tammer.
6402
6403 2010-07-30  Bruno Haible  <bruno@clisp.org>
6404
6405         strndup: Update regarding AIX.
6406         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6407         AIX 7.
6408         Reported by Rainer Tammer.
6409
6410 2010-07-30  Bruno Haible  <bruno@clisp.org>
6411
6412         stat: Update regarding AIX.
6413         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6414         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6415         Reported by Rainer Tammer.
6416
6417 2010-07-30  Bruno Haible  <bruno@clisp.org>
6418
6419         truncl: Fix autoconf test.
6420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6421         whether truncl works.
6422         Reported by Rainer Tammer.
6423
6424 2010-07-30  Bruno Haible  <bruno@clisp.org>
6425
6426         round: Update regarding AIX.
6427         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6428         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6429         Reported by Rainer Tammer.
6430
6431 2010-07-30  Bruno Haible  <bruno@clisp.org>
6432
6433         rename: Update regarding AIX.
6434         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6435         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6436         Reported by Rainer Tammer.
6437
6438 2010-07-30  Bruno Haible  <bruno@clisp.org>
6439
6440         printf.m4: Update regarding AIX.
6441         * m4/printf.m4: Update comments regarding AIX.
6442         Reported by Rainer Tammer.
6443
6444 2010-07-30  Bruno Haible  <bruno@clisp.org>
6445
6446         iconv: Update regarding AIX.
6447         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6448         AIX 7.
6449         Reported by Rainer Tammer.
6450
6451 2010-07-30  Bruno Haible  <bruno@clisp.org>
6452
6453         getopt: Update regarding AIX.
6454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6455         no on AIX.
6456         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6457         Reported by Rainer Tammer.
6458
6459 2010-07-30  Bruno Haible  <bruno@clisp.org>
6460
6461         ldexpl; Update regarding AIX.
6462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6463         on AIX 7.
6464         Reported by Rainer Tammer.
6465
6466 2010-07-30  Bruno Haible  <bruno@clisp.org>
6467
6468         frexpl: Update regarding AIX.
6469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6470         on AIX 7.
6471         Reported by Rainer Tammer.
6472
6473 2010-07-30  Bruno Haible  <bruno@clisp.org>
6474
6475         open, fopen: Update regarding AIX.
6476         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6477         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6478         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6479         * doc/posix-functions/fopen.texi: Likewise.
6480         Reported by Rainer Tammer.
6481
6482 2010-07-30  Bruno Haible  <bruno@clisp.org>
6483
6484         chown: Update doc regarding AIX.
6485         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6486         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6487         Reported by Rainer Tammer.
6488
6489 2010-07-30  Eric Blake  <eblake@redhat.com>
6490
6491         strtod: fix bug in replacement function on AIX
6492         * lib/strtod.c (strtod): Special case broken "0x" parse in
6493         underlying strtod.
6494         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6495         * doc/posix-functions/strtod.texi (strtod): Likewise.
6496         Reported by Rainer Tammer.
6497
6498 2010-07-30  Bruno Haible  <bruno@clisp.org>
6499
6500         mbrlen: Fix cross-compilation guess for AIX.
6501         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6502         guess. Leftover from 2008-12-22.
6503
6504 2010-07-30  Bruno Haible  <bruno@clisp.org>
6505
6506         mbrtowc: Fix cross-compilation guess for AIX.
6507         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6508         guess. Leftover from 2008-12-21.
6509
6510 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6511
6512         init.sh: work around trap limitation of some shells
6513         * tests/init.sh (setup_): Move exit trap outside of shell function.
6514
6515 2010-07-29  Eric Blake  <eblake@redhat.com>
6516
6517         strtod: aid debugging
6518         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6519         understanding why strtod is rejected.
6520
6521 2010-07-28  Bruno Haible  <bruno@clisp.org>
6522
6523         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6524         * lib/unistr/u8-chr.c: Include <string.h>.
6525         * tests/unistr/test-u8-chr.c: Likewise.
6526         * tests/unistr/test-u16-chr.c: Likewise.
6527         * tests/unistr/test-u32-chr.c: Likewise.
6528         * tests/unistr/test-u8-strchr.c: Likewise.
6529         * tests/unistr/test-u16-strchr.c: Likewise.
6530         * tests/unistr/test-u32-strchr.c: Likewise.
6531         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6532         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6533         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6534         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6535
6536 2010-07-28  Bruno Haible  <bruno@clisp.org>
6537
6538         Use spaces for indentation, not tabs.
6539         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6540
6541 2010-07-27  Bruno Haible  <bruno@clisp.org>
6542
6543         mbspcasecmp: Fix function specification.
6544         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6545         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6546         Reported by Eric Blake <eblake@redhat.com>.
6547
6548 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6549
6550         timespec: use cast and not conditional, as truncation isn't possible
6551         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6552         instead of a conditional.  Comment about the situation in more detail.
6553         This undoes most of the 2009-10-29 patch.
6554
6555 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6556
6557         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6558         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6559         * lib/unistr/u8-strchr.c: Likewise.
6560         * modules/unistr/u8-chr: Depend on memchr.
6561
6562         unistr/u*-strchr: add tests
6563         * modules/unistr/u8-strchr-tests: New file.
6564         * modules/unistr/u16-strchr-tests: New file.
6565         * modules/unistr/u32-strchr-tests: New file.
6566         * tests/unistr/test-strchr.h: New file.
6567         * tests/unistr/test-u8-strchr.c: New file.
6568         * tests/unistr/test-u16-strchr.c: New file.
6569         * tests/unistr/test-u32-strchr.c: New file.
6570
6571         unistr/u*-chr: test multibyte sequences more
6572         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6573         test vector.
6574         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6575         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6576         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6577
6578         unistr/u*-chr: test multibyte sequences
6579         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6580
6581         unistr/u*-chr: prepare for multibyte tests
6582         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6583         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6584         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6585         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6586         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6587         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6588
6589 2010-07-18  Bruno Haible  <bruno@clisp.org>
6590
6591         unistr/u8-strchr: Optimize non-ASCII argument case.
6592         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6593         because the first byte often matches anyway.
6594         Reported by Pádraig Brady <P@draigbrady.com>.
6595
6596 2010-07-15  Karl Berry  <karl@gnu.org>
6597
6598         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6599
6600 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6601
6602         getcwd: on Solaris, work better if ancestors are inaccessible
6603         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6604         buffer and size, try again with a large buffer.  This works better
6605         on Solaris, since its getcwd succeeds even if the path to the root
6606         is inaccessible, and this is helpful in common cases such as .zfs
6607         hidden directories.  Problem reported by J Chapman Flack in
6608         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6609         Use system getcwd if it's declared, not merely if it's partly
6610         working; use the partly-working test only to avoid needless effort
6611         if the system getcwd fails.
6612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6613         comment that was already obsolete and is now even more obsolete.
6614         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6615         now might call strdup.
6616
6617 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6618
6619         pthread: Add enough so that coreutils/src/sort.c compiles.
6620         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6621         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6622         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6623         Include <sys/types.h>, in case it defines pthread_t.
6624         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6625         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6626         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6627         (pthread_rwlockattr_t, pthread_spinlock_t):
6628         New typedefs, if HAVE_PTHREAD_T is not defined.
6629         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6630         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6631         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6632         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6633         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6634         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6635         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6636         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6637         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6638         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6639         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6640         New macros.
6641         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6642         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6643         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6644         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6645         (pthread_spin_unlock): New dummy functions.
6646         (pthread_create): Return EAGAIN; don't set errno.
6647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6648         require AC_C_INLINE.
6649         * modules/pthread (Depends-on): Add sched, time.
6650         (pthread.h): Use AM_V_GEN.
6651
6652 2010-07-13  Bruno Haible  <bruno@clisp.org>
6653
6654         striconveh: Don't malloc memory if the result buffer is sufficient.
6655         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6656         buffer if its size is sufficient.
6657         Reported by Ludovic Courtès <ludo@gnu.org>.
6658
6659 2010-07-13  Bruno Haible  <bruno@clisp.org>
6660
6661         strtod: Add safety check.
6662         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6663
6664 2010-07-12  Bruno Haible  <bruno@clisp.org>
6665
6666         Unify tests that set gl_cv_func_ldexpl_no_libm.
6667         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6668         gl_FUNC_LDEXPL.
6669         (gl_FUNC_LDEXPL): Invoke it.
6670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6671
6672 2010-07-12  Bruno Haible  <bruno@clisp.org>
6673
6674         Unify tests that set gl_cv_func_ldexp_no_libm.
6675         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6676         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6677         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6678         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6679         * modules/strtod (Files): Add m4/ldexp.m4.
6680
6681 2010-07-12  Bruno Haible  <bruno@clisp.org>
6682
6683         Unify tests that set gl_cv_func_frexpl_no_libm.
6684         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6685         gl_FUNC_FREXPL_NO_LIBM.
6686         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6688
6689 2010-07-12  Bruno Haible  <bruno@clisp.org>
6690
6691         Unify tests that set gl_cv_func_frexp_no_libm.
6692         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6693         gl_FUNC_FREXP_NO_LIBM.
6694         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6695         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6696
6697 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6698
6699         memcoll: clarify sizes versus lengths, document better, and tweak perf
6700         * lib/memcoll.c (strcoll_loop, memcoll0):
6701         Improve quality of descriptive comments.  Name variables
6702         consistently as to whether they are lengths (which do not include
6703         terminating null) versus sizes (which do).
6704         * lib/xmemcoll.c (xmemcoll0): Likewise.
6705         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6706         returned when s1size == 0; this is easier to compile and saves
6707         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6708
6709 2010-07-12  Bruno Haible  <bruno@clisp.org>
6710
6711         Tests for module '_Exit'.
6712         * modules/_Exit-tests: New file.
6713         * tests/test-_Exit.sh: New file.
6714         * tests/test-_Exit.c: New file.
6715
6716         New module '_Exit'.
6717         * lib/stdlib.in.h (__attribute__): New macro.
6718         (_Exit): New declaration.
6719         * lib/_Exit.c: New file.
6720         * m4/_Exit.m4: New file.
6721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6722         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6723         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6724         * modules/_Exit: New file.
6725         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6726         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6727
6728 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6729
6730         strtod: make it more-accurate typically, and don't require libm
6731         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6732         Include limits.h.  Don't include string.h.
6733         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6734         (locale_isspace): New function, so that no casts are needed to
6735         check whether *s is a space.
6736         (ldexp): Provide an unused dummy if not available.
6737         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6738         (strtod): Use them.  This implementation prefers to use the
6739         underlying strtod if available, falling back on our own code
6740         only to fix known bugs.  This is more likely to produce an
6741         accurate result.  Also, it avoids the use of libm functions.
6742         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6743         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6744         was absent, but it caused a test failure with coreutils.
6745         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6746         with libm.
6747         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6748         * modules/strtod-tests (Makefile.am): Likewise.
6749
6750 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6751             Bruno Haible  <bruno@clisp.org>
6752
6753         unistr/u8-strchr: Optimize ASCII argument case.
6754         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6755
6756 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         (x)memcoll: minor tweaks
6759         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6760         is after the type that it qualifies.
6761         (memcoll0): Likewise.
6762         * lib/memcoll.h (memcoll0): Likewise.
6763         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6764         * lib/xmemcoll.h (xmemcoll0): Likewise.
6765         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6766         differs from memcoll in that the NUL byte is part of the argument.
6767         Omit the abort-checks, as performance is a real issue here.  Plus,
6768         the checks were wrong anyway (an off-by-one error).  Omit local
6769         variable 'diff', as it's a bit clearer that way.
6770         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6771         no longer needed.
6772
6773 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6774
6775         (x)memcoll: speedup when input is known to be NUL delimited
6776         * lib/memcoll.c: Include stdlib.
6777         (memcoll0) New function.
6778         (strcoll_loop) New function, refactored for use in both memcoll
6779         and memcoll0.
6780         * lib/memcoll.h: Add prototype for memcoll0.
6781         * lib/xmemcoll.c: (xmemcoll0) New function.
6782         (collate_error) New function, refactored for use in both xmemcoll
6783         and xmemcoll0.
6784         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6785         * m4/memcoll.m4: add inline invocation.
6786
6787 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6788
6789         * build-aux/bootstrap: Remove any local translations
6790         from the translation project synchronization directory,
6791         so that local only translations are not distributed.
6792
6793 2010-07-04  Bruno Haible  <bruno@clisp.org>
6794
6795         fsusage: Clarify which code applies to which platforms.
6796         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6797         platform.
6798         * lib/fsusage.c (get_fs_usage): Likewise.
6799
6800 2010-07-04  Bruno Haible  <bruno@clisp.org>
6801
6802         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6803         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6804         Reported by Martin Lambers <marlam@marlam.de>.
6805
6806 2010-07-04  Jim Meyering  <meyering@redhat.com>
6807
6808         hash: once again explicitly disallow insertion of NULL
6809         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6810         inserting a NULL pointer cannot work with these functions.
6811         Add a comment with details.
6812         This reverts part of the 2010-07-01 commit, 5bef1a35
6813         "hash: extend module to deal with non-pointer keys".
6814
6815 2010-07-01  Bruno Haible  <bruno@clisp.org>
6816
6817         stdbool: Update doc.
6818         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6819         Info from Christian Weisgerber <naddy@mips.inka.de>.
6820
6821 2010-07-01  Jim Meyering  <meyering@redhat.com>
6822
6823         hash: extend module to deal with non-pointer keys
6824         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6825         but that allows insertion of non-pointer entries.
6826         Do not disallow an ENTRY value of NULL.
6827         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6828         * lib/hash.h (hash_insert0): Declare.
6829
6830 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6831
6832         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6833         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6834         not present (i.e. with autoconf 2.59 and when using gettextize, not
6835         gnulib), require AC_GNU_SOURCE instead.
6836
6837 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6838
6839         idpriv-drop: Fix tests.
6840         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6841         not to the test-idpriv-droptemp program.
6842
6843 2010-06-29  Bruno Haible  <bruno@clisp.org>
6844
6845         string: Fix syntax error with g++ 2.96.
6846         * lib/string.in.h (__pure__): Remove definition.
6847         (_GL_ATTRIBUTE_PURE): New macro.
6848         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6849         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6850         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6851
6852 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6853
6854         unitypes: Fix bug introduced on 2010-05-18.
6855         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6856
6857 2010-06-22  Eric Blake  <eblake@redhat.com>
6858
6859         memmem: slight optimization
6860         * lib/str-two-way.h (critical_factorization): Update comments.
6861         Reduce work during factorization phase.
6862         Reported by Carlos Bueno <carlos@bueno.org>.
6863
6864 2010-06-21  Bruno Haible  <bruno@clisp.org>
6865
6866         Fix HAVE_CALLOC_POSIX misnomer.
6867         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6868         !HAVE_CALLOC_POSIX.
6869         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6870         HAVE_CALLOC_POSIX.
6871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6872         instead of HAVE_CALLOC_POSIX.
6873         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6874         HAVE_CALLOC_POSIX.
6875
6876         Use modern idiom for calloc() replacement.
6877         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6878         AC_FUNC_CALLOC.
6879         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6880         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6881         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6882         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6883         (gl_REPLACE_CALLOC): New macro.
6884
6885 2010-06-21  Bruno Haible  <bruno@clisp.org>
6886
6887         Fix HAVE_REALLOC_POSIX misnomer.
6888         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6889         !HAVE_REALLOC_POSIX.
6890         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6891         HAVE_REALLOC_POSIX.
6892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6893         instead of HAVE_REALLOC_POSIX.
6894         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6895         HAVE_REALLOC_POSIX.
6896
6897         Use modern idiom for realloc() replacement.
6898         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6899         AC_FUNC_REALLOC.
6900         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6901         Autoconf's AC_FUNC_REALLOC.
6902         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6903         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6904         (gl_REPLACE_REALLOC): New macro.
6905         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6906
6907 2010-06-21  Bruno Haible  <bruno@clisp.org>
6908
6909         Fix HAVE_MALLOC_POSIX misnomer.
6910         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6911         !HAVE_MALLOC_POSIX.
6912         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6913         HAVE_MALLOC_POSIX.
6914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6915         instead of HAVE_MALLOC_POSIX.
6916         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6917         HAVE_MALLOC_POSIX.
6918
6919         Use modern idiom for malloc() replacement.
6920         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6921         AC_FUNC_MALLOC.
6922         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6923         Autoconf's AC_FUNC_MALLOC.
6924         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6925         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6926         (gl_REPLACE_MALLOC): New macro.
6927         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6928
6929 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6930
6931         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6932         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6933         This macro takes 3 arguments, not 4.
6934
6935 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6936
6937         ipv6: fix detection under mingw
6938         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6939         in6_addr.
6940
6941 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6942
6943         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6944         that strtod() works when cross-compiling to a glibc version known
6945         to work.
6946
6947 2010-06-15  Bruno Haible  <bruno@clisp.org>
6948
6949         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6950
6951 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6952
6953         select: Correct timeout.
6954         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6955
6956 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6957
6958         git-version-gen: init shell var to avoid env var influence
6959         * build-aux/git-version-gen (v): Init shell var to empty.
6960
6961 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         priv-set: Don't assume that priv.h exists merely because getppriv does.
6964         See Jan Andersen's bug report about AIX 5L in
6965         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6966         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6967         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6968         * lib/priv-set.h: Likewise.
6969         * tests/test-priv-set.c: Likewise.
6970
6971 2010-06-13  Bruno Haible  <bruno@clisp.org>
6972
6973         relocatable: Make it easier to test whether to install wrappers.
6974         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6975         RELOCATABLE_VIA_WRAPPER.
6976
6977 2010-06-13  Bruno Haible  <bruno@clisp.org>
6978
6979         gnulib-tool: Display specified modules and dependencies differently.
6980         * gnulib-tool (func_show_module_list): New function.
6981         (func_import, func_create_testdir): Invoke it.
6982         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6983
6984 2010-06-13  Bruno Haible  <bruno@clisp.org>
6985
6986         gnulib-tool: Align code of func_import and func_create_testdir.
6987         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6988         specified_modules.
6989
6990 2010-06-12  Jim Meyering  <meyering@redhat.com>
6991
6992         test-inttostr: avoid spurious failure on Solaris 9
6993         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6994         to accept "%ju".  Reported by Bruno Haible.
6995
6996 2010-06-11  Jim Meyering  <meyering@redhat.com>
6997
6998         test-sys_socket: mark variables as used more readably
6999         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7000         as "used" explicitly via (void) statement casts.  This is more
7001         readable than using them in an artificial return expression.
7002         Suggestion from Bruno Haible.
7003
7004 2010-06-11  Bruno Haible  <bruno@clisp.org>
7005
7006         Avoid some more warnings from "gcc -Wwrite-strings".
7007         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7008         to 'const char *'.
7009         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7010         * tests/test-c-strcasestr.c (main): Likewise.
7011         * tests/test-mbscasestr1.c (main): Likewise.
7012         * tests/test-mbscasestr2.c (main): Likewise.
7013         * tests/test-memmem.c (main): Likewise.
7014         * tests/test-strstr.c (main): Likewise.
7015         * tests/test-strcasestr.c (main): Likewise.
7016
7017 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7018
7019         init.sh: change framework_failure_ to fail with status 99, not 1
7020         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7021         automake's parallel-tests rule that this is an unexpected failure,
7022         even if the test is listed in XFAIL_TESTS.
7023
7024 2010-06-11  Jim Meyering  <meyering@redhat.com>
7025
7026         test-inttostr: avoid warnings about 4-6KB literal strings
7027         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7028         Include "macros.h", for its definition of ASSERT.
7029         (CK): s/assert/ASSERT/
7030         * modules/inttostr-tests (Files): Add macros.h.
7031
7032         init.sh: don't use $ME_ or skip_ before they are defined
7033         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7034         their first uses.  Also hoist their companions: warn_, fail_,
7035         framework_failure_, $stderr_fileno.  Prompted by a patch from
7036         Stefano Lattarini.
7037
7038         test-sys_socket: avoid set-but-not-used warnings from gcc
7039         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7040         avoid warning about set-but-not-used variables.
7041
7042         test-xvasprintf: avoid 'const' discard warnings
7043         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7044         "const" when assigning from literal strings.
7045         (test_xasprintf): Add "void" in function argument list to placate
7046         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7047
7048         tests: avoid compilation warnings in argmatch and exclude tests...
7049         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7050         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7051         Since it always exits, declare with the "noreturn" attribute.
7052         * tests/test-argmatch.c: Likewise.
7053
7054         tests: avoid 'const' discard warnings in mbsstr tests
7055         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7056         * tests/test-mbsstr2.c (main): Likewise.
7057
7058         test-verify: avoid warning from gcc's -Wmissing-declarations
7059         * tests/test-verify.c (function): Declare to be static.
7060
7061         test-inttostr.c: include <string.h> for use of strcmp
7062         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7063
7064         test-linkat: avoid failed assertion on "other" architectures
7065         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7066         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7067         sparc: https://bugs.launchpad.net/bugs/591968
7068
7069 2010-06-11  Jim Meyering  <meyering@redhat.com>
7070
7071         printf.m4: avoid autoconf's "Expanded Before Required" warning
7072         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7073         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7074         autoconf warning.
7075
7076 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7077
7078         Replacement header templates are now named with ".in", not "_".
7079         * doc/gnulib-intro.texi: Correct.
7080
7081 2010-06-10  Jim Meyering  <meyering@redhat.com>
7082
7083         inttostr-tests: depend on snprintf, not snprintf-posix
7084         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7085         snprintf-posix, to avoid this aclocal failure:
7086           missing file gnulib-tests/vasnprintf.c
7087           configure.ac:45: error: expected source file, required through \
7088           AC_LIBSOURCES, not found
7089
7090 2010-06-10  Jim Meyering  <meyering@redhat.com>
7091
7092         inttostr: add a new function, inttostr, and tests
7093         The namesake function was not available.  The existence of the
7094         template file, inttostr.c makes its addition nontrivial.
7095         * lib/anytostr.c: Rename from inttostr.c.
7096         (anytostr): Rename from inttostr.
7097         * lib/inttostr.c: New file.
7098         * modules/inttostr (Files): Add anytostr.c.
7099         (Makefile.am): Set lib_SOURCES instead of ...
7100         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7101         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7102         * lib/offtostr.c: Likewise.
7103         * lib/uinttostr.c: Likewise.
7104         * lib/umaxtostr.c: Likewise.
7105         * modules/inttostr-tests: New file.
7106         * tests/test-inttostr.c: New file.  Test these functions.
7107
7108 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7109             Bruno Haible  <bruno@clisp.org>
7110
7111         Add "Extending Gnulib" chapter to manual.
7112         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7113         chapter.
7114         (Extending Gnulib): New chapter.
7115         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7116         chapter.
7117
7118 2010-06-09  Bruno Haible  <bruno@clisp.org>
7119
7120         Avoid relocwrapper link errors due to gnulib replacement functions.
7121         * lib/areadlink.c: Use the system's malloc, realloc functions.
7122         (areadlink): Set errno to ENOMEM explicitly.
7123         * modules/areadlink (Depends-on): Remove malloc-posix.
7124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7125
7126 2010-06-09  Bruno Haible  <bruno@clisp.org>
7127
7128         Avoid relocwrapper link errors due to gnulib replacement functions.
7129         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7130         * lib/malloca.c: Likewise.
7131         * lib/relocatable.c: Likewise.
7132         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7133         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7134         * lib/setenv.c: Use the system's malloc, realloc functions.
7135         * lib/strerror.c: Use the system's sprintf function.
7136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7137
7138 2010-06-04  Bruno Haible  <bruno@clisp.org>
7139
7140         Prefer documented low-level autoconf macro names.
7141         * m4/lib-link.m4: Use m4_translit instead of translit.
7142         * m4/environ.m4: Likewise.
7143         * m4/mathfunc.m4: Likewise.
7144         * m4/onceonly.m4: Likewise.
7145         * m4/stdint.m4: Likewise.
7146         Suggested by Eric Blake.
7147
7148 2010-06-04  Martin Lambers  <marlam@marlam.de>
7149             Bruno Haible  <bruno@clisp.org>
7150
7151         havelib: Allow library names with '+' characters.
7152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7153         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7154
7155 2010-06-09  Bruno Haible  <bruno@clisp.org>
7156
7157         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7158         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7159         realloc failed.
7160
7161 2010-06-08  Peter Simons  <simons@cryp.to>
7162
7163         maint.mk: make the news-check rule more configurable
7164         * top/maint.mk (news-check-lines-spec) New variable.
7165         (news-check): Use "sed -n 1,10p" in place of "head".
7166
7167 2010-06-07  Jim Meyering  <meyering@redhat.com>
7168
7169         do-release-commit-and-tag: fix typo in --help
7170         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7171
7172         regex: avoid new dead-code warning with gcc-4.6.0
7173         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7174         if-block containing a while-loop.  It's been unused for at least
7175         5 years.
7176
7177 2010-06-05  Bruno Haible  <bruno@clisp.org>
7178
7179         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7180         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7181
7182 2010-06-04  Bruno Haible  <bruno@clisp.org>
7183
7184         Update to GNU gettext 0.18.1.
7185         * modules/gettext (configure.ac): Require gettext infrastructure from
7186         version 0.18.1.
7187
7188 2010-06-03  Bruno Haible  <bruno@clisp.org>
7189
7190         Don't use AC_LIBOBJ with file names in subdirectories.
7191         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7192         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7193         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7194         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7195         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7196         gl_LIBUNISTRING_LIBSOURCE.
7197         (Makefile.am): Augment lib_SOURCES here, conditionally.
7198         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7199
7200 2010-06-03  Bruno Haible  <bruno@clisp.org>
7201
7202         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7203         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7204         expansion does not end with a newline.
7205         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7206         unnecessary newline.
7207
7208 2010-06-03  Bruno Haible  <bruno@clisp.org>
7209
7210         Reduce dependencies.
7211         * tests/test-quotearg.h: New file, extracted from
7212         tests/test-quotearg.c.
7213         * tests/test-quotearg-simple.c: New file, extracted from
7214         tests/test-quotearg.c.
7215         * tests/test-quotearg.c: Don't include <ctype.h>.
7216         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7217         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7218         use_quote_double_quotes, use_quotearg_colon): Moved to
7219         tests/test-quotearg.h.
7220         (results_g, flag_results, custom_quotes, custom_results): Moved
7221         to tests/test-quotearg-simple.c.
7222         (main): Moved the part that does not depend on gettext to
7223         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7224         performed.
7225         * modules/quotearg-simple: New file.
7226         * modules/quotearg-simple-tests: New file.
7227         * modules/quotearg (Depends-on): Add quotearg-simple.
7228         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7229         (Files): Add tests/test-quotearg.h.
7230         Reported by Paolo Bonzini.
7231
7232 2010-06-03  Bruno Haible  <bruno@clisp.org>
7233
7234         Reduce dependencies.
7235         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7236
7237 2010-06-03  Bruno Haible  <bruno@clisp.org>
7238
7239         time: Undefine more broken macros.
7240         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7241         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7242         Reported by Eric Blake.
7243
7244 2010-06-03  Bruno Haible  <bruno@clisp.org>
7245
7246         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7248         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7249         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7250         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7251         Reported by Ludovic Courtès <ludo@gnu.org>.
7252
7253 2010-06-02  Eric Blake  <eblake@redhat.com>
7254
7255         time: work with mingw + pthreads-win32 library
7256         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7257         if timespec is defined only in pthread.h.
7258         * modules/time (Makefile.am): Substitute it.
7259         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7260         <pthread.h>, when needed.
7261         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7262         from the library.
7263
7264 2010-05-31  Bruno Haible  <bruno@clisp.org>
7265
7266         Avoid expanding two macros in the wrong order.
7267         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7268         gl_LIBUNISTRING if it is defined.
7269         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7270         autoconf >= 2.64.
7271         Reported by Ludovic Courtès <ludo@gnu.org>.
7272
7273 2010-05-27  Jim Meyering  <meyering@redhat.com>
7274
7275         maint.mk: also prohibit "#undef" of always-defined symbols
7276         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7277         Allow more than one space before the symbol name.
7278         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7279         the regexp uses alternation.
7280
7281 2010-05-26  Eric Blake  <eblake@redhat.com>
7282
7283         maint.mk: avoid echo -e
7284         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7285         Convert all uses of echo -* to printf.
7286         Reported by Matthias Bolte.
7287
7288 2010-05-25  Bruno Haible  <bruno@clisp.org>
7289
7290         Update to GNU gettext 0.18, part 2.
7291         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7292         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7293
7294 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7295
7296         Add missing include in test-pwrite.c.
7297         * tests/test-pwrite.c: Include string.h, for strcmp.
7298
7299 2010-05-24  Bruno Haible  <bruno@clisp.org>
7300
7301         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7302
7303 2010-05-24  Bruno Haible  <bruno@clisp.org>
7304
7305         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7306         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7307         iconveh_error argument.
7308         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7309         U_STRCONV_TO_LOCALE.
7310         * lib/unistr/u16-strcoll.c: Likewise.
7311         * lib/unistr/u32-strcoll.c: Likewise.
7312         * modules/unistr/u8-strcoll (Depends-on): Add
7313         uniconv/u8-strconv-to-enc, localcharset. Remove
7314         uniconv/u8-strconv-to-locale.
7315         (configure.ac): Bump version number.
7316         * modules/unistr/u16-strcoll (Depends-on): Add
7317         uniconv/u16-strconv-to-enc, localcharset. Remove
7318         uniconv/u16-strconv-to-locale.
7319         (configure.ac): Bump version number.
7320         * modules/unistr/u32-strcoll (Depends-on): Add
7321         uniconv/u32-strconv-to-enc, localcharset. Remove
7322         uniconv/u32-strconv-to-locale.
7323         (configure.ac): Bump version number.
7324
7325 2010-05-24  Bruno Haible  <bruno@clisp.org>
7326
7327         Avoid a test failure on NetBSD 5.0.
7328         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7329         an iconv() bug.
7330
7331 2010-05-24  Bruno Haible  <bruno@clisp.org>
7332
7333         Adjust #include directive style.
7334         * modules/regex (Includes): Recommend to write <regex.h>.
7335
7336 2010-05-24  Bruno Haible  <bruno@clisp.org>
7337
7338         regex: Don't require alloca.
7339         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7340         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7341         only inside if (0).
7342
7343 2010-05-23  Jim Meyering  <meyering@redhat.com>
7344
7345         test-renameat.c: include <sys/stat.h>
7346         * tests/test-renameat.c: Include <sys/stat.h>; required for
7347         definition of S_IS* macros.
7348
7349 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7350
7351         Update maintainer documentation for 'relocatable-prog' module.
7352         * doc/relocatable-maint.texi: Update.
7353         Comments by Bruno Haible.
7354
7355 2010-05-23  Bruno Haible  <bruno@clisp.org>
7356
7357         git-merge-changelog: Enable --split-merged-entry by default.
7358         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7359         (usage): Don't mention this option any more.
7360         Reported by Ralf Wildenhues.
7361
7362 2010-05-23  Jim Meyering  <meyering@redhat.com>
7363
7364         test-pwrite: do not leave behind a test file named "out"
7365         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7366         The trivial-looking use of init.sh is really necessary.
7367         It ensures that the temporary file, "out", is created in
7368         a temporary directory, and removed upon termination.
7369         * tests/test-pwrite.sh: Re-add file.
7370         * modules/pwrite-tests: Reference it.
7371
7372 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7373
7374         Fix output redirection buglet in init.sh.
7375         * tests/init.sh: Fix redirection of stderr.
7376
7377 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7378
7379         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7380
7381 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7382
7383         * modules/valgrind-tests: New file.
7384         * m4/valgrind-tests.m4: New file.
7385         * doc/valgrind-tests.texi: New file.
7386         * doc/gnulib.texi (Running self-tests under valgrind): New
7387         section.
7388
7389 2010-05-19  Bruno Haible  <bruno@clisp.org>
7390
7391         Clean up dead code in recent commit.
7392         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7393         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7394         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7395         Suggested by Paolo Bonzini.
7396
7397 2010-05-19  Bruno Haible  <bruno@clisp.org>
7398
7399         Avoid valgrind error reports from libunistring.
7400         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7401         * modules/libunistring (Files): Add it.
7402         * modules/libunistring-optional (Files): Likewise.
7403
7404 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7405             Bruno Haible  <bruno@clisp.org>
7406
7407         New module 'libunistring-optional'.
7408         * modules/libunistring-optional: New file.
7409         * m4/libunistring-base.m4: New file.
7410         * m4/libunistring-optional.m4: New file.
7411         * lib/unicase.in.h: Renamed from lib/unicase.h.
7412         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7413         * lib/unictype.in.h: Renamed from lib/unictype.h.
7414         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7415         * lib/uniname.in.h: Renamed from lib/uniname.h.
7416         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7417         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7418         * lib/unistr.in.h: Renamed from lib/unistr.h.
7419         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7420         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7421         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7422         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7423         gl_LIBUNISTRING. If the library was found, determine the installed
7424         version and set LIBUNISTRING_VERSION.
7425         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7426         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7427         handle a configuration option --with-included-libunistring.
7428         * modules/libunistring (Files): Add m4/absolute-header.m4.
7429         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7430         Add m4/libunistring-base.m4.
7431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7432         (Makefile.am): Build unicase.h from unicase.in.h.
7433         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7434         Add m4/libunistring-base.m4.
7435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7436         (Makefile.am): Build uniconv.h from uniconv.in.h.
7437         * modules/unictype/base (Files): Use unictype.in.h instead of
7438         unictype.h. Add m4/libunistring-base.m4.
7439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7440         (Makefile.am): Build unictype.h from unictype.in.h.
7441         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7442         Add m4/libunistring-base.m4.
7443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7444         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7445         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7446         Add m4/libunistring-base.m4.
7447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7448         (Makefile.am): Build uniname.h from uniname.in.h.
7449         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7450         Add m4/libunistring-base.m4.
7451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7452         (Makefile.am): Build uninorm.h from uninorm.in.h.
7453         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7454         unistdio.h. Add m4/libunistring-base.m4.
7455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7456         (Makefile.am): Build unistdio.h from unistdio.in.h.
7457         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7458         Add m4/libunistring-base.m4.
7459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7460         (Makefile.am): Build unistr.h from unistr.in.h.
7461         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7462         Add m4/libunistring-base.m4.
7463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7464         (Makefile.am): Build unitypes.h from unitypes.in.h.
7465         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7466         Add m4/libunistring-base.m4.
7467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7468         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7469         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7470         uniwidth.h. Add m4/libunistring-base.m4.
7471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7472         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7473         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7474         instead of augmenting lib_SOURCES.
7475         * modules/unicase/empty-suffix-context: Likewise.
7476         * modules/unicase/locale-language: Likewise.
7477         * modules/unicase/tolower: Likewise.
7478         * modules/unicase/totitle: Likewise.
7479         * modules/unicase/toupper: Likewise.
7480         * modules/unicase/u8-casecmp: Likewise.
7481         * modules/unicase/u8-casecoll: Likewise.
7482         * modules/unicase/u8-casefold: Likewise.
7483         * modules/unicase/u8-casexfrm: Likewise.
7484         * modules/unicase/u8-ct-casefold: Likewise.
7485         * modules/unicase/u8-ct-tolower: Likewise.
7486         * modules/unicase/u8-ct-totitle: Likewise.
7487         * modules/unicase/u8-ct-toupper: Likewise.
7488         * modules/unicase/u8-is-cased: Likewise.
7489         * modules/unicase/u8-is-casefolded: Likewise.
7490         * modules/unicase/u8-is-lowercase: Likewise.
7491         * modules/unicase/u8-is-titlecase: Likewise.
7492         * modules/unicase/u8-is-uppercase: Likewise.
7493         * modules/unicase/u8-prefix-context: Likewise.
7494         * modules/unicase/u8-suffix-context: Likewise.
7495         * modules/unicase/u8-tolower: Likewise.
7496         * modules/unicase/u8-totitle: Likewise.
7497         * modules/unicase/u8-toupper: Likewise.
7498         * modules/unicase/u16-casecmp: Likewise.
7499         * modules/unicase/u16-casecoll: Likewise.
7500         * modules/unicase/u16-casefold: Likewise.
7501         * modules/unicase/u16-casexfrm: Likewise.
7502         * modules/unicase/u16-ct-casefold: Likewise.
7503         * modules/unicase/u16-ct-tolower: Likewise.
7504         * modules/unicase/u16-ct-totitle: Likewise.
7505         * modules/unicase/u16-ct-toupper: Likewise.
7506         * modules/unicase/u16-is-cased: Likewise.
7507         * modules/unicase/u16-is-casefolded: Likewise.
7508         * modules/unicase/u16-is-lowercase: Likewise.
7509         * modules/unicase/u16-is-titlecase: Likewise.
7510         * modules/unicase/u16-is-uppercase: Likewise.
7511         * modules/unicase/u16-prefix-context: Likewise.
7512         * modules/unicase/u16-suffix-context: Likewise.
7513         * modules/unicase/u16-tolower: Likewise.
7514         * modules/unicase/u16-totitle: Likewise.
7515         * modules/unicase/u16-toupper: Likewise.
7516         * modules/unicase/u32-casecmp: Likewise.
7517         * modules/unicase/u32-casecoll: Likewise.
7518         * modules/unicase/u32-casefold: Likewise.
7519         * modules/unicase/u32-casexfrm: Likewise.
7520         * modules/unicase/u32-ct-casefold: Likewise.
7521         * modules/unicase/u32-ct-tolower: Likewise.
7522         * modules/unicase/u32-ct-totitle: Likewise.
7523         * modules/unicase/u32-ct-toupper: Likewise.
7524         * modules/unicase/u32-is-cased: Likewise.
7525         * modules/unicase/u32-is-casefolded: Likewise.
7526         * modules/unicase/u32-is-lowercase: Likewise.
7527         * modules/unicase/u32-is-titlecase: Likewise.
7528         * modules/unicase/u32-is-uppercase: Likewise.
7529         * modules/unicase/u32-prefix-context: Likewise.
7530         * modules/unicase/u32-suffix-context: Likewise.
7531         * modules/unicase/u32-tolower: Likewise.
7532         * modules/unicase/u32-totitle: Likewise.
7533         * modules/unicase/u32-toupper: Likewise.
7534         * modules/unicase/ulc-casecmp: Likewise.
7535         * modules/unicase/ulc-casecoll: Likewise.
7536         * modules/unicase/ulc-casexfrm: Likewise.
7537         * modules/uniconv/u8-conv-from-enc: Likewise.
7538         * modules/uniconv/u8-conv-to-enc: Likewise.
7539         * modules/uniconv/u8-strconv-from-enc: Likewise.
7540         * modules/uniconv/u8-strconv-from-locale: Likewise.
7541         * modules/uniconv/u8-strconv-to-enc: Likewise.
7542         * modules/uniconv/u8-strconv-to-locale: Likewise.
7543         * modules/uniconv/u16-conv-from-enc: Likewise.
7544         * modules/uniconv/u16-conv-to-enc: Likewise.
7545         * modules/uniconv/u16-strconv-from-enc: Likewise.
7546         * modules/uniconv/u16-strconv-from-locale: Likewise.
7547         * modules/uniconv/u16-strconv-to-enc: Likewise.
7548         * modules/uniconv/u16-strconv-to-locale: Likewise.
7549         * modules/uniconv/u32-conv-from-enc: Likewise.
7550         * modules/uniconv/u32-conv-to-enc: Likewise.
7551         * modules/uniconv/u32-strconv-from-enc: Likewise.
7552         * modules/uniconv/u32-strconv-from-locale: Likewise.
7553         * modules/uniconv/u32-strconv-to-enc: Likewise.
7554         * modules/uniconv/u32-strconv-to-locale: Likewise.
7555         * modules/unictype/bidicategory-byname: Likewise.
7556         * modules/unictype/bidicategory-name: Likewise.
7557         * modules/unictype/bidicategory-of: Likewise.
7558         * modules/unictype/bidicategory-test: Likewise.
7559         * modules/unictype/block-list: Likewise.
7560         * modules/unictype/block-test: Likewise.
7561         * modules/unictype/category-C: Likewise.
7562         * modules/unictype/category-Cc: Likewise.
7563         * modules/unictype/category-Cf: Likewise.
7564         * modules/unictype/category-Cn: Likewise.
7565         * modules/unictype/category-Co: Likewise.
7566         * modules/unictype/category-Cs: Likewise.
7567         * modules/unictype/category-L: Likewise.
7568         * modules/unictype/category-Ll: Likewise.
7569         * modules/unictype/category-Lm: Likewise.
7570         * modules/unictype/category-Lo: Likewise.
7571         * modules/unictype/category-Lt: Likewise.
7572         * modules/unictype/category-Lu: Likewise.
7573         * modules/unictype/category-M: Likewise.
7574         * modules/unictype/category-Mc: Likewise.
7575         * modules/unictype/category-Me: Likewise.
7576         * modules/unictype/category-Mn: Likewise.
7577         * modules/unictype/category-N: Likewise.
7578         * modules/unictype/category-Nd: Likewise.
7579         * modules/unictype/category-Nl: Likewise.
7580         * modules/unictype/category-No: Likewise.
7581         * modules/unictype/category-P: Likewise.
7582         * modules/unictype/category-Pc: Likewise.
7583         * modules/unictype/category-Pd: Likewise.
7584         * modules/unictype/category-Pe: Likewise.
7585         * modules/unictype/category-Pf: Likewise.
7586         * modules/unictype/category-Pi: Likewise.
7587         * modules/unictype/category-Po: Likewise.
7588         * modules/unictype/category-Ps: Likewise.
7589         * modules/unictype/category-S: Likewise.
7590         * modules/unictype/category-Sc: Likewise.
7591         * modules/unictype/category-Sk: Likewise.
7592         * modules/unictype/category-Sm: Likewise.
7593         * modules/unictype/category-So: Likewise.
7594         * modules/unictype/category-Z: Likewise.
7595         * modules/unictype/category-Zl: Likewise.
7596         * modules/unictype/category-Zp: Likewise.
7597         * modules/unictype/category-Zs: Likewise.
7598         * modules/unictype/category-and: Likewise.
7599         * modules/unictype/category-and-not: Likewise.
7600         * modules/unictype/category-byname: Likewise.
7601         * modules/unictype/category-name: Likewise.
7602         * modules/unictype/category-none: Likewise.
7603         * modules/unictype/category-of: Likewise.
7604         * modules/unictype/category-or: Likewise.
7605         * modules/unictype/category-test: Likewise.
7606         * modules/unictype/combining-class: Likewise.
7607         * modules/unictype/ctype-alnum: Likewise.
7608         * modules/unictype/ctype-alpha: Likewise.
7609         * modules/unictype/ctype-blank: Likewise.
7610         * modules/unictype/ctype-cntrl: Likewise.
7611         * modules/unictype/ctype-digit: Likewise.
7612         * modules/unictype/ctype-graph: Likewise.
7613         * modules/unictype/ctype-lower: Likewise.
7614         * modules/unictype/ctype-print: Likewise.
7615         * modules/unictype/ctype-punct: Likewise.
7616         * modules/unictype/ctype-space: Likewise.
7617         * modules/unictype/ctype-upper: Likewise.
7618         * modules/unictype/ctype-xdigit: Likewise.
7619         * modules/unictype/decimal-digit: Likewise.
7620         * modules/unictype/digit: Likewise.
7621         * modules/unictype/mirror: Likewise.
7622         * modules/unictype/numeric: Likewise.
7623         * modules/unictype/property-alphabetic: Likewise.
7624         * modules/unictype/property-ascii-hex-digit: Likewise.
7625         * modules/unictype/property-bidi-arabic-digit: Likewise.
7626         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7627         * modules/unictype/property-bidi-block-separator: Likewise.
7628         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7629         * modules/unictype/property-bidi-common-separator: Likewise.
7630         * modules/unictype/property-bidi-control: Likewise.
7631         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7632         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7633         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7634         * modules/unictype/property-bidi-european-digit: Likewise.
7635         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7636         * modules/unictype/property-bidi-left-to-right: Likewise.
7637         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7638         * modules/unictype/property-bidi-other-neutral: Likewise.
7639         * modules/unictype/property-bidi-pdf: Likewise.
7640         * modules/unictype/property-bidi-segment-separator: Likewise.
7641         * modules/unictype/property-bidi-whitespace: Likewise.
7642         * modules/unictype/property-byname: Likewise.
7643         * modules/unictype/property-combining: Likewise.
7644         * modules/unictype/property-composite: Likewise.
7645         * modules/unictype/property-currency-symbol: Likewise.
7646         * modules/unictype/property-dash: Likewise.
7647         * modules/unictype/property-decimal-digit: Likewise.
7648         * modules/unictype/property-default-ignorable-code-point: Likewise.
7649         * modules/unictype/property-deprecated: Likewise.
7650         * modules/unictype/property-diacritic: Likewise.
7651         * modules/unictype/property-extender: Likewise.
7652         * modules/unictype/property-format-control: Likewise.
7653         * modules/unictype/property-grapheme-base: Likewise.
7654         * modules/unictype/property-grapheme-extend: Likewise.
7655         * modules/unictype/property-grapheme-link: Likewise.
7656         * modules/unictype/property-hex-digit: Likewise.
7657         * modules/unictype/property-hyphen: Likewise.
7658         * modules/unictype/property-id-continue: Likewise.
7659         * modules/unictype/property-id-start: Likewise.
7660         * modules/unictype/property-ideographic: Likewise.
7661         * modules/unictype/property-ids-binary-operator: Likewise.
7662         * modules/unictype/property-ids-trinary-operator: Likewise.
7663         * modules/unictype/property-ignorable-control: Likewise.
7664         * modules/unictype/property-iso-control: Likewise.
7665         * modules/unictype/property-join-control: Likewise.
7666         * modules/unictype/property-left-of-pair: Likewise.
7667         * modules/unictype/property-line-separator: Likewise.
7668         * modules/unictype/property-logical-order-exception: Likewise.
7669         * modules/unictype/property-lowercase: Likewise.
7670         * modules/unictype/property-math: Likewise.
7671         * modules/unictype/property-non-break: Likewise.
7672         * modules/unictype/property-not-a-character: Likewise.
7673         * modules/unictype/property-numeric: Likewise.
7674         * modules/unictype/property-other-alphabetic: Likewise.
7675         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7676         * modules/unictype/property-other-grapheme-extend: Likewise.
7677         * modules/unictype/property-other-id-continue: Likewise.
7678         * modules/unictype/property-other-id-start: Likewise.
7679         * modules/unictype/property-other-lowercase: Likewise.
7680         * modules/unictype/property-other-math: Likewise.
7681         * modules/unictype/property-other-uppercase: Likewise.
7682         * modules/unictype/property-paired-punctuation: Likewise.
7683         * modules/unictype/property-paragraph-separator: Likewise.
7684         * modules/unictype/property-pattern-syntax: Likewise.
7685         * modules/unictype/property-pattern-white-space: Likewise.
7686         * modules/unictype/property-private-use: Likewise.
7687         * modules/unictype/property-punctuation: Likewise.
7688         * modules/unictype/property-quotation-mark: Likewise.
7689         * modules/unictype/property-radical: Likewise.
7690         * modules/unictype/property-sentence-terminal: Likewise.
7691         * modules/unictype/property-soft-dotted: Likewise.
7692         * modules/unictype/property-space: Likewise.
7693         * modules/unictype/property-terminal-punctuation: Likewise.
7694         * modules/unictype/property-test: Likewise.
7695         * modules/unictype/property-titlecase: Likewise.
7696         * modules/unictype/property-unassigned-code-value: Likewise.
7697         * modules/unictype/property-unified-ideograph: Likewise.
7698         * modules/unictype/property-uppercase: Likewise.
7699         * modules/unictype/property-variation-selector: Likewise.
7700         * modules/unictype/property-white-space: Likewise.
7701         * modules/unictype/property-xid-continue: Likewise.
7702         * modules/unictype/property-xid-start: Likewise.
7703         * modules/unictype/property-zero-width: Likewise.
7704         * modules/unictype/scripts: Likewise.
7705         * modules/unictype/syntax-c-ident: Likewise.
7706         * modules/unictype/syntax-c-whitespace: Likewise.
7707         * modules/unictype/syntax-java-ident: Likewise.
7708         * modules/unictype/syntax-java-whitespace: Likewise.
7709         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7710         * modules/unilbrk/u8-width-linebreaks: Likewise.
7711         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7712         * modules/unilbrk/u16-width-linebreaks: Likewise.
7713         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7714         * modules/unilbrk/u32-width-linebreaks: Likewise.
7715         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7716         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7717         * modules/uniname/uniname: Likewise.
7718         * modules/uninorm/canonical-decomposition: Likewise.
7719         * modules/uninorm/composition: Likewise.
7720         * modules/uninorm/decomposing-form: Likewise.
7721         * modules/uninorm/decomposition: Likewise.
7722         * modules/uninorm/filter: Likewise.
7723         * modules/uninorm/nfc: Likewise.
7724         * modules/uninorm/nfd: Likewise.
7725         * modules/uninorm/nfkc: Likewise.
7726         * modules/uninorm/nfkd: Likewise.
7727         * modules/uninorm/u8-normalize: Likewise.
7728         * modules/uninorm/u8-normcmp: Likewise.
7729         * modules/uninorm/u8-normcoll: Likewise.
7730         * modules/uninorm/u8-normxfrm: Likewise.
7731         * modules/uninorm/u16-normalize: Likewise.
7732         * modules/uninorm/u16-normcmp: Likewise.
7733         * modules/uninorm/u16-normcoll: Likewise.
7734         * modules/uninorm/u16-normxfrm: Likewise.
7735         * modules/uninorm/u32-normalize: Likewise.
7736         * modules/uninorm/u32-normcmp: Likewise.
7737         * modules/uninorm/u32-normcoll: Likewise.
7738         * modules/uninorm/u32-normxfrm: Likewise.
7739         * modules/unistdio/u8-asnprintf: Likewise.
7740         * modules/unistdio/u8-asprintf: Likewise.
7741         * modules/unistdio/u8-snprintf: Likewise.
7742         * modules/unistdio/u8-sprintf: Likewise.
7743         * modules/unistdio/u8-u8-asnprintf: Likewise.
7744         * modules/unistdio/u8-u8-asprintf: Likewise.
7745         * modules/unistdio/u8-u8-snprintf: Likewise.
7746         * modules/unistdio/u8-u8-sprintf: Likewise.
7747         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7748         * modules/unistdio/u8-u8-vasprintf: Likewise.
7749         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7750         * modules/unistdio/u8-u8-vsprintf: Likewise.
7751         * modules/unistdio/u8-vasnprintf: Likewise.
7752         * modules/unistdio/u8-vasprintf: Likewise.
7753         * modules/unistdio/u8-vsnprintf: Likewise.
7754         * modules/unistdio/u8-vsprintf: Likewise.
7755         * modules/unistdio/u16-asnprintf: Likewise.
7756         * modules/unistdio/u16-asprintf: Likewise.
7757         * modules/unistdio/u16-snprintf: Likewise.
7758         * modules/unistdio/u16-sprintf: Likewise.
7759         * modules/unistdio/u16-u16-asnprintf: Likewise.
7760         * modules/unistdio/u16-u16-asprintf: Likewise.
7761         * modules/unistdio/u16-u16-snprintf: Likewise.
7762         * modules/unistdio/u16-u16-sprintf: Likewise.
7763         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7764         * modules/unistdio/u16-u16-vasprintf: Likewise.
7765         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7766         * modules/unistdio/u16-u16-vsprintf: Likewise.
7767         * modules/unistdio/u16-vasnprintf: Likewise.
7768         * modules/unistdio/u16-vasprintf: Likewise.
7769         * modules/unistdio/u16-vsnprintf: Likewise.
7770         * modules/unistdio/u16-vsprintf: Likewise.
7771         * modules/unistdio/u32-asnprintf: Likewise.
7772         * modules/unistdio/u32-asprintf: Likewise.
7773         * modules/unistdio/u32-snprintf: Likewise.
7774         * modules/unistdio/u32-sprintf: Likewise.
7775         * modules/unistdio/u32-u32-asnprintf: Likewise.
7776         * modules/unistdio/u32-u32-asprintf: Likewise.
7777         * modules/unistdio/u32-u32-snprintf: Likewise.
7778         * modules/unistdio/u32-u32-sprintf: Likewise.
7779         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7780         * modules/unistdio/u32-u32-vasprintf: Likewise.
7781         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7782         * modules/unistdio/u32-u32-vsprintf: Likewise.
7783         * modules/unistdio/u32-vasnprintf: Likewise.
7784         * modules/unistdio/u32-vasprintf: Likewise.
7785         * modules/unistdio/u32-vsnprintf: Likewise.
7786         * modules/unistdio/u32-vsprintf: Likewise.
7787         * modules/unistdio/ulc-asnprintf: Likewise.
7788         * modules/unistdio/ulc-asprintf: Likewise.
7789         * modules/unistdio/ulc-fprintf: Likewise.
7790         * modules/unistdio/ulc-snprintf: Likewise.
7791         * modules/unistdio/ulc-sprintf: Likewise.
7792         * modules/unistdio/ulc-vasnprintf: Likewise.
7793         * modules/unistdio/ulc-vasprintf: Likewise.
7794         * modules/unistdio/ulc-vfprintf: Likewise.
7795         * modules/unistdio/ulc-vsnprintf: Likewise.
7796         * modules/unistdio/ulc-vsprintf: Likewise.
7797         * modules/unistr/u8-check: Likewise.
7798         * modules/unistr/u8-chr: Likewise.
7799         * modules/unistr/u8-cmp: Likewise.
7800         * modules/unistr/u8-cmp2: Likewise.
7801         * modules/unistr/u8-cpy: Likewise.
7802         * modules/unistr/u8-cpy-alloc: Likewise.
7803         * modules/unistr/u8-endswith: Likewise.
7804         * modules/unistr/u8-mblen: Likewise.
7805         * modules/unistr/u8-mbsnlen: Likewise.
7806         * modules/unistr/u8-mbtouc: Likewise.
7807         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7808         * modules/unistr/u8-mbtoucr: Likewise.
7809         * modules/unistr/u8-move: Likewise.
7810         * modules/unistr/u8-next: Likewise.
7811         * modules/unistr/u8-prev: Likewise.
7812         * modules/unistr/u8-set: Likewise.
7813         * modules/unistr/u8-startswith: Likewise.
7814         * modules/unistr/u8-stpcpy: Likewise.
7815         * modules/unistr/u8-stpncpy: Likewise.
7816         * modules/unistr/u8-strcat: Likewise.
7817         * modules/unistr/u8-strchr: Likewise.
7818         * modules/unistr/u8-strcmp: Likewise.
7819         * modules/unistr/u8-strcoll: Likewise.
7820         * modules/unistr/u8-strcpy: Likewise.
7821         * modules/unistr/u8-strcspn: Likewise.
7822         * modules/unistr/u8-strdup: Likewise.
7823         * modules/unistr/u8-strlen: Likewise.
7824         * modules/unistr/u8-strmblen: Likewise.
7825         * modules/unistr/u8-strmbtouc: Likewise.
7826         * modules/unistr/u8-strncat: Likewise.
7827         * modules/unistr/u8-strncmp: Likewise.
7828         * modules/unistr/u8-strncpy: Likewise.
7829         * modules/unistr/u8-strnlen: Likewise.
7830         * modules/unistr/u8-strpbrk: Likewise.
7831         * modules/unistr/u8-strrchr: Likewise.
7832         * modules/unistr/u8-strspn: Likewise.
7833         * modules/unistr/u8-strstr: Likewise.
7834         * modules/unistr/u8-strtok: Likewise.
7835         * modules/unistr/u8-to-u16: Likewise.
7836         * modules/unistr/u8-to-u32: Likewise.
7837         * modules/unistr/u8-uctomb: Likewise.
7838         * modules/unistr/u16-check: Likewise.
7839         * modules/unistr/u16-chr: Likewise.
7840         * modules/unistr/u16-cmp: Likewise.
7841         * modules/unistr/u16-cmp2: Likewise.
7842         * modules/unistr/u16-cpy: Likewise.
7843         * modules/unistr/u16-cpy-alloc: Likewise.
7844         * modules/unistr/u16-endswith: Likewise.
7845         * modules/unistr/u16-mblen: Likewise.
7846         * modules/unistr/u16-mbsnlen: Likewise.
7847         * modules/unistr/u16-mbtouc: Likewise.
7848         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7849         * modules/unistr/u16-mbtoucr: Likewise.
7850         * modules/unistr/u16-move: Likewise.
7851         * modules/unistr/u16-next: Likewise.
7852         * modules/unistr/u16-prev: Likewise.
7853         * modules/unistr/u16-set: Likewise.
7854         * modules/unistr/u16-startswith: Likewise.
7855         * modules/unistr/u16-stpcpy: Likewise.
7856         * modules/unistr/u16-stpncpy: Likewise.
7857         * modules/unistr/u16-strcat: Likewise.
7858         * modules/unistr/u16-strchr: Likewise.
7859         * modules/unistr/u16-strcmp: Likewise.
7860         * modules/unistr/u16-strcoll: Likewise.
7861         * modules/unistr/u16-strcpy: Likewise.
7862         * modules/unistr/u16-strcspn: Likewise.
7863         * modules/unistr/u16-strdup: Likewise.
7864         * modules/unistr/u16-strlen: Likewise.
7865         * modules/unistr/u16-strmblen: Likewise.
7866         * modules/unistr/u16-strmbtouc: Likewise.
7867         * modules/unistr/u16-strncat: Likewise.
7868         * modules/unistr/u16-strncmp: Likewise.
7869         * modules/unistr/u16-strncpy: Likewise.
7870         * modules/unistr/u16-strnlen: Likewise.
7871         * modules/unistr/u16-strpbrk: Likewise.
7872         * modules/unistr/u16-strrchr: Likewise.
7873         * modules/unistr/u16-strspn: Likewise.
7874         * modules/unistr/u16-strstr: Likewise.
7875         * modules/unistr/u16-strtok: Likewise.
7876         * modules/unistr/u16-to-u32: Likewise.
7877         * modules/unistr/u16-to-u8: Likewise.
7878         * modules/unistr/u16-uctomb: Likewise.
7879         * modules/unistr/u32-check: Likewise.
7880         * modules/unistr/u32-chr: Likewise.
7881         * modules/unistr/u32-cmp: Likewise.
7882         * modules/unistr/u32-cmp2: Likewise.
7883         * modules/unistr/u32-cpy: Likewise.
7884         * modules/unistr/u32-cpy-alloc: Likewise.
7885         * modules/unistr/u32-endswith: Likewise.
7886         * modules/unistr/u32-mblen: Likewise.
7887         * modules/unistr/u32-mbsnlen: Likewise.
7888         * modules/unistr/u32-mbtouc: Likewise.
7889         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7890         * modules/unistr/u32-mbtoucr: Likewise.
7891         * modules/unistr/u32-move: Likewise.
7892         * modules/unistr/u32-next: Likewise.
7893         * modules/unistr/u32-prev: Likewise.
7894         * modules/unistr/u32-set: Likewise.
7895         * modules/unistr/u32-startswith: Likewise.
7896         * modules/unistr/u32-stpcpy: Likewise.
7897         * modules/unistr/u32-stpncpy: Likewise.
7898         * modules/unistr/u32-strcat: Likewise.
7899         * modules/unistr/u32-strchr: Likewise.
7900         * modules/unistr/u32-strcmp: Likewise.
7901         * modules/unistr/u32-strcoll: Likewise.
7902         * modules/unistr/u32-strcpy: Likewise.
7903         * modules/unistr/u32-strcspn: Likewise.
7904         * modules/unistr/u32-strdup: Likewise.
7905         * modules/unistr/u32-strlen: Likewise.
7906         * modules/unistr/u32-strmblen: Likewise.
7907         * modules/unistr/u32-strmbtouc: Likewise.
7908         * modules/unistr/u32-strncat: Likewise.
7909         * modules/unistr/u32-strncmp: Likewise.
7910         * modules/unistr/u32-strncpy: Likewise.
7911         * modules/unistr/u32-strnlen: Likewise.
7912         * modules/unistr/u32-strpbrk: Likewise.
7913         * modules/unistr/u32-strrchr: Likewise.
7914         * modules/unistr/u32-strspn: Likewise.
7915         * modules/unistr/u32-strstr: Likewise.
7916         * modules/unistr/u32-strtok: Likewise.
7917         * modules/unistr/u32-to-u16: Likewise.
7918         * modules/unistr/u32-to-u8: Likewise.
7919         * modules/unistr/u32-uctomb: Likewise.
7920         * modules/uniwbrk/u8-wordbreaks: Likewise.
7921         * modules/uniwbrk/u16-wordbreaks: Likewise.
7922         * modules/uniwbrk/u32-wordbreaks: Likewise.
7923         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7924         * modules/uniwbrk/wordbreak-property: Likewise.
7925         * modules/uniwidth/u8-strwidth: Likewise.
7926         * modules/uniwidth/u8-width: Likewise.
7927         * modules/uniwidth/u16-strwidth: Likewise.
7928         * modules/uniwidth/u16-width: Likewise.
7929         * modules/uniwidth/u32-strwidth: Likewise.
7930         * modules/uniwidth/u32-width: Likewise.
7931         * modules/uniwidth/width: Likewise.
7932         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7933         with $(LIBUNISTRING).
7934         * modules/unicase/ignorable-tests: Likewise.
7935         * modules/unicase/locale-language-tests: Likewise.
7936         * modules/unicase/tolower-tests: Likewise.
7937         * modules/unicase/totitle-tests: Likewise.
7938         * modules/unicase/toupper-tests: Likewise.
7939         * modules/unicase/u8-casecmp-tests: Likewise.
7940         * modules/unicase/u8-casecoll-tests: Likewise.
7941         * modules/unicase/u8-casefold-tests: Likewise.
7942         * modules/unicase/u8-is-cased-tests: Likewise.
7943         * modules/unicase/u8-is-casefolded-tests: Likewise.
7944         * modules/unicase/u8-is-lowercase-tests: Likewise.
7945         * modules/unicase/u8-is-titlecase-tests: Likewise.
7946         * modules/unicase/u8-is-uppercase-tests: Likewise.
7947         * modules/unicase/u8-tolower-tests: Likewise.
7948         * modules/unicase/u8-totitle-tests: Likewise.
7949         * modules/unicase/u8-toupper-tests: Likewise.
7950         * modules/unicase/u16-casecmp-tests: Likewise.
7951         * modules/unicase/u16-casecoll-tests: Likewise.
7952         * modules/unicase/u16-casefold-tests: Likewise.
7953         * modules/unicase/u16-is-cased-tests: Likewise.
7954         * modules/unicase/u16-is-casefolded-tests: Likewise.
7955         * modules/unicase/u16-is-lowercase-tests: Likewise.
7956         * modules/unicase/u16-is-titlecase-tests: Likewise.
7957         * modules/unicase/u16-is-uppercase-tests: Likewise.
7958         * modules/unicase/u16-tolower-tests: Likewise.
7959         * modules/unicase/u16-totitle-tests: Likewise.
7960         * modules/unicase/u16-toupper-tests: Likewise.
7961         * modules/unicase/u32-casecmp-tests: Likewise.
7962         * modules/unicase/u32-casecoll-tests: Likewise.
7963         * modules/unicase/u32-casefold-tests: Likewise.
7964         * modules/unicase/u32-is-cased-tests: Likewise.
7965         * modules/unicase/u32-is-casefolded-tests: Likewise.
7966         * modules/unicase/u32-is-lowercase-tests: Likewise.
7967         * modules/unicase/u32-is-titlecase-tests: Likewise.
7968         * modules/unicase/u32-is-uppercase-tests: Likewise.
7969         * modules/unicase/u32-tolower-tests: Likewise.
7970         * modules/unicase/u32-totitle-tests: Likewise.
7971         * modules/unicase/u32-toupper-tests: Likewise.
7972         * modules/unicase/ulc-casecmp-tests: Likewise.
7973         * modules/unicase/ulc-casecoll-tests: Likewise.
7974         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7975         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7976         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7977         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7978         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7979         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7980         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7981         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7982         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7983         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7984         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7985         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7986         * modules/unictype/bidicategory-byname-tests: Likewise.
7987         * modules/unictype/bidicategory-name-tests: Likewise.
7988         * modules/unictype/bidicategory-of-tests: Likewise.
7989         * modules/unictype/bidicategory-test-tests: Likewise.
7990         * modules/unictype/block-list-tests: Likewise.
7991         * modules/unictype/block-of-tests: Likewise.
7992         * modules/unictype/block-test-tests: Likewise.
7993         * modules/unictype/category-C-tests: Likewise.
7994         * modules/unictype/category-Cc-tests: Likewise.
7995         * modules/unictype/category-Cf-tests: Likewise.
7996         * modules/unictype/category-Cn-tests: Likewise.
7997         * modules/unictype/category-Co-tests: Likewise.
7998         * modules/unictype/category-Cs-tests: Likewise.
7999         * modules/unictype/category-L-tests: Likewise.
8000         * modules/unictype/category-Ll-tests: Likewise.
8001         * modules/unictype/category-Lm-tests: Likewise.
8002         * modules/unictype/category-Lo-tests: Likewise.
8003         * modules/unictype/category-Lt-tests: Likewise.
8004         * modules/unictype/category-Lu-tests: Likewise.
8005         * modules/unictype/category-M-tests: Likewise.
8006         * modules/unictype/category-Mc-tests: Likewise.
8007         * modules/unictype/category-Me-tests: Likewise.
8008         * modules/unictype/category-Mn-tests: Likewise.
8009         * modules/unictype/category-N-tests: Likewise.
8010         * modules/unictype/category-Nd-tests: Likewise.
8011         * modules/unictype/category-Nl-tests: Likewise.
8012         * modules/unictype/category-No-tests: Likewise.
8013         * modules/unictype/category-P-tests: Likewise.
8014         * modules/unictype/category-Pc-tests: Likewise.
8015         * modules/unictype/category-Pd-tests: Likewise.
8016         * modules/unictype/category-Pe-tests: Likewise.
8017         * modules/unictype/category-Pf-tests: Likewise.
8018         * modules/unictype/category-Pi-tests: Likewise.
8019         * modules/unictype/category-Po-tests: Likewise.
8020         * modules/unictype/category-Ps-tests: Likewise.
8021         * modules/unictype/category-S-tests: Likewise.
8022         * modules/unictype/category-Sc-tests: Likewise.
8023         * modules/unictype/category-Sk-tests: Likewise.
8024         * modules/unictype/category-Sm-tests: Likewise.
8025         * modules/unictype/category-So-tests: Likewise.
8026         * modules/unictype/category-Z-tests: Likewise.
8027         * modules/unictype/category-Zl-tests: Likewise.
8028         * modules/unictype/category-Zp-tests: Likewise.
8029         * modules/unictype/category-Zs-tests: Likewise.
8030         * modules/unictype/category-and-not-tests: Likewise.
8031         * modules/unictype/category-and-tests: Likewise.
8032         * modules/unictype/category-byname-tests: Likewise.
8033         * modules/unictype/category-name-tests: Likewise.
8034         * modules/unictype/category-none-tests: Likewise.
8035         * modules/unictype/category-of-tests: Likewise.
8036         * modules/unictype/category-or-tests: Likewise.
8037         * modules/unictype/category-test-withtable-tests: Likewise.
8038         * modules/unictype/combining-class-tests: Likewise.
8039         * modules/unictype/ctype-alnum-tests: Likewise.
8040         * modules/unictype/ctype-alpha-tests: Likewise.
8041         * modules/unictype/ctype-blank-tests: Likewise.
8042         * modules/unictype/ctype-cntrl-tests: Likewise.
8043         * modules/unictype/ctype-digit-tests: Likewise.
8044         * modules/unictype/ctype-graph-tests: Likewise.
8045         * modules/unictype/ctype-lower-tests: Likewise.
8046         * modules/unictype/ctype-print-tests: Likewise.
8047         * modules/unictype/ctype-punct-tests: Likewise.
8048         * modules/unictype/ctype-space-tests: Likewise.
8049         * modules/unictype/ctype-upper-tests: Likewise.
8050         * modules/unictype/ctype-xdigit-tests: Likewise.
8051         * modules/unictype/decimal-digit-tests: Likewise.
8052         * modules/unictype/digit-tests: Likewise.
8053         * modules/unictype/mirror-tests: Likewise.
8054         * modules/unictype/numeric-tests: Likewise.
8055         * modules/unictype/property-alphabetic-tests: Likewise.
8056         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8057         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8058         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8059         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8060         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8061         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8062         * modules/unictype/property-bidi-control-tests: Likewise.
8063         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8064         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8065         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8066         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8068         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8069         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8070         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8071         * modules/unictype/property-bidi-pdf-tests: Likewise.
8072         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8073         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8074         * modules/unictype/property-byname-tests: Likewise.
8075         * modules/unictype/property-combining-tests: Likewise.
8076         * modules/unictype/property-composite-tests: Likewise.
8077         * modules/unictype/property-currency-symbol-tests: Likewise.
8078         * modules/unictype/property-dash-tests: Likewise.
8079         * modules/unictype/property-decimal-digit-tests: Likewise.
8080         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8081         * modules/unictype/property-deprecated-tests: Likewise.
8082         * modules/unictype/property-diacritic-tests: Likewise.
8083         * modules/unictype/property-extender-tests: Likewise.
8084         * modules/unictype/property-format-control-tests: Likewise.
8085         * modules/unictype/property-grapheme-base-tests: Likewise.
8086         * modules/unictype/property-grapheme-extend-tests: Likewise.
8087         * modules/unictype/property-grapheme-link-tests: Likewise.
8088         * modules/unictype/property-hex-digit-tests: Likewise.
8089         * modules/unictype/property-hyphen-tests: Likewise.
8090         * modules/unictype/property-id-continue-tests: Likewise.
8091         * modules/unictype/property-id-start-tests: Likewise.
8092         * modules/unictype/property-ideographic-tests: Likewise.
8093         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8094         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8095         * modules/unictype/property-ignorable-control-tests: Likewise.
8096         * modules/unictype/property-iso-control-tests: Likewise.
8097         * modules/unictype/property-join-control-tests: Likewise.
8098         * modules/unictype/property-left-of-pair-tests: Likewise.
8099         * modules/unictype/property-line-separator-tests: Likewise.
8100         * modules/unictype/property-logical-order-exception-tests: Likewise.
8101         * modules/unictype/property-lowercase-tests: Likewise.
8102         * modules/unictype/property-math-tests: Likewise.
8103         * modules/unictype/property-non-break-tests: Likewise.
8104         * modules/unictype/property-not-a-character-tests: Likewise.
8105         * modules/unictype/property-numeric-tests: Likewise.
8106         * modules/unictype/property-other-alphabetic-tests: Likewise.
8107         * modules/unictype/property-other-default-ignorable-code-point-tests:
8108         Likewise.
8109         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8110         * modules/unictype/property-other-id-continue-tests: Likewise.
8111         * modules/unictype/property-other-id-start-tests: Likewise.
8112         * modules/unictype/property-other-lowercase-tests: Likewise.
8113         * modules/unictype/property-other-math-tests: Likewise.
8114         * modules/unictype/property-other-uppercase-tests: Likewise.
8115         * modules/unictype/property-paired-punctuation-tests: Likewise.
8116         * modules/unictype/property-paragraph-separator-tests: Likewise.
8117         * modules/unictype/property-pattern-syntax-tests: Likewise.
8118         * modules/unictype/property-pattern-white-space-tests: Likewise.
8119         * modules/unictype/property-private-use-tests: Likewise.
8120         * modules/unictype/property-punctuation-tests: Likewise.
8121         * modules/unictype/property-quotation-mark-tests: Likewise.
8122         * modules/unictype/property-radical-tests: Likewise.
8123         * modules/unictype/property-sentence-terminal-tests: Likewise.
8124         * modules/unictype/property-soft-dotted-tests: Likewise.
8125         * modules/unictype/property-space-tests: Likewise.
8126         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8127         * modules/unictype/property-test-tests: Likewise.
8128         * modules/unictype/property-titlecase-tests: Likewise.
8129         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8130         * modules/unictype/property-unified-ideograph-tests: Likewise.
8131         * modules/unictype/property-uppercase-tests: Likewise.
8132         * modules/unictype/property-variation-selector-tests: Likewise.
8133         * modules/unictype/property-white-space-tests: Likewise.
8134         * modules/unictype/property-xid-continue-tests: Likewise.
8135         * modules/unictype/property-xid-start-tests: Likewise.
8136         * modules/unictype/property-zero-width-tests: Likewise.
8137         * modules/unictype/scripts-tests: Likewise.
8138         * modules/unictype/syntax-c-ident-tests: Likewise.
8139         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8140         * modules/unictype/syntax-java-ident-tests: Likewise.
8141         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8142         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8143         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8144         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8145         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8146         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8147         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8148         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8149         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8150         * modules/uniname/uniname-tests: Likewise.
8151         * modules/uninorm/canonical-decomposition-tests: Likewise.
8152         * modules/uninorm/compat-decomposition-tests: Likewise.
8153         * modules/uninorm/composition-tests: Likewise.
8154         * modules/uninorm/decomposing-form-tests: Likewise.
8155         * modules/uninorm/decomposition-tests: Likewise.
8156         * modules/uninorm/filter-tests: Likewise.
8157         * modules/uninorm/nfc-tests: Likewise.
8158         * modules/uninorm/nfd-tests: Likewise.
8159         * modules/uninorm/nfkc-tests: Likewise.
8160         * modules/uninorm/nfkd-tests: Likewise.
8161         * modules/uninorm/u8-normcmp-tests: Likewise.
8162         * modules/uninorm/u8-normcoll-tests: Likewise.
8163         * modules/uninorm/u16-normcmp-tests: Likewise.
8164         * modules/uninorm/u16-normcoll-tests: Likewise.
8165         * modules/uninorm/u32-normcmp-tests: Likewise.
8166         * modules/uninorm/u32-normcoll-tests: Likewise.
8167         * modules/unistdio/u8-asnprintf-tests: Likewise.
8168         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8169         * modules/unistdio/u8-vasprintf-tests: Likewise.
8170         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8171         * modules/unistdio/u8-vsprintf-tests: Likewise.
8172         * modules/unistdio/u16-asnprintf-tests: Likewise.
8173         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8174         * modules/unistdio/u16-vasprintf-tests: Likewise.
8175         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8176         * modules/unistdio/u16-vsprintf-tests: Likewise.
8177         * modules/unistdio/u32-asnprintf-tests: Likewise.
8178         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8179         * modules/unistdio/u32-vasprintf-tests: Likewise.
8180         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8181         * modules/unistdio/u32-vsprintf-tests: Likewise.
8182         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8183         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8184         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8185         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8186         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8187         * modules/unistr/u8-check-tests: Likewise.
8188         * modules/unistr/u8-chr-tests: Likewise.
8189         * modules/unistr/u8-cmp-tests: Likewise.
8190         * modules/unistr/u8-cmp2-tests: Likewise.
8191         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8192         * modules/unistr/u8-cpy-tests: Likewise.
8193         * modules/unistr/u8-mblen-tests: Likewise.
8194         * modules/unistr/u8-mbsnlen-tests: Likewise.
8195         * modules/unistr/u8-mbtouc-tests: Likewise.
8196         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8197         * modules/unistr/u8-mbtoucr-tests: Likewise.
8198         * modules/unistr/u8-move-tests: Likewise.
8199         * modules/unistr/u8-next-tests: Likewise.
8200         * modules/unistr/u8-prev-tests: Likewise.
8201         * modules/unistr/u8-set-tests: Likewise.
8202         * modules/unistr/u8-stpcpy-tests: Likewise.
8203         * modules/unistr/u8-stpncpy-tests: Likewise.
8204         * modules/unistr/u8-strcat-tests: Likewise.
8205         * modules/unistr/u8-strcmp-tests: Likewise.
8206         * modules/unistr/u8-strcoll-tests: Likewise.
8207         * modules/unistr/u8-strcpy-tests: Likewise.
8208         * modules/unistr/u8-strdup-tests: Likewise.
8209         * modules/unistr/u8-strlen-tests: Likewise.
8210         * modules/unistr/u8-strmblen-tests: Likewise.
8211         * modules/unistr/u8-strmbtouc-tests: Likewise.
8212         * modules/unistr/u8-strncat-tests: Likewise.
8213         * modules/unistr/u8-strncmp-tests: Likewise.
8214         * modules/unistr/u8-strncpy-tests: Likewise.
8215         * modules/unistr/u8-strnlen-tests: Likewise.
8216         * modules/unistr/u8-to-u16-tests: Likewise.
8217         * modules/unistr/u8-to-u32-tests: Likewise.
8218         * modules/unistr/u8-uctomb-tests: Likewise.
8219         * modules/unistr/u16-check-tests: Likewise.
8220         * modules/unistr/u16-chr-tests: Likewise.
8221         * modules/unistr/u16-cmp-tests: Likewise.
8222         * modules/unistr/u16-cmp2-tests: Likewise.
8223         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8224         * modules/unistr/u16-cpy-tests: Likewise.
8225         * modules/unistr/u16-mblen-tests: Likewise.
8226         * modules/unistr/u16-mbsnlen-tests: Likewise.
8227         * modules/unistr/u16-mbtouc-tests: Likewise.
8228         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8229         * modules/unistr/u16-mbtoucr-tests: Likewise.
8230         * modules/unistr/u16-move-tests: Likewise.
8231         * modules/unistr/u16-next-tests: Likewise.
8232         * modules/unistr/u16-prev-tests: Likewise.
8233         * modules/unistr/u16-set-tests: Likewise.
8234         * modules/unistr/u16-stpcpy-tests: Likewise.
8235         * modules/unistr/u16-stpncpy-tests: Likewise.
8236         * modules/unistr/u16-strcat-tests: Likewise.
8237         * modules/unistr/u16-strcmp-tests: Likewise.
8238         * modules/unistr/u16-strcoll-tests: Likewise.
8239         * modules/unistr/u16-strcpy-tests: Likewise.
8240         * modules/unistr/u16-strdup-tests: Likewise.
8241         * modules/unistr/u16-strlen-tests: Likewise.
8242         * modules/unistr/u16-strmblen-tests: Likewise.
8243         * modules/unistr/u16-strmbtouc-tests: Likewise.
8244         * modules/unistr/u16-strncat-tests: Likewise.
8245         * modules/unistr/u16-strncmp-tests: Likewise.
8246         * modules/unistr/u16-strncpy-tests: Likewise.
8247         * modules/unistr/u16-strnlen-tests: Likewise.
8248         * modules/unistr/u16-to-u32-tests: Likewise.
8249         * modules/unistr/u16-to-u8-tests: Likewise.
8250         * modules/unistr/u16-uctomb-tests: Likewise.
8251         * modules/unistr/u32-check-tests: Likewise.
8252         * modules/unistr/u32-chr-tests: Likewise.
8253         * modules/unistr/u32-cmp-tests: Likewise.
8254         * modules/unistr/u32-cmp2-tests: Likewise.
8255         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8256         * modules/unistr/u32-cpy-tests: Likewise.
8257         * modules/unistr/u32-mblen-tests: Likewise.
8258         * modules/unistr/u32-mbsnlen-tests: Likewise.
8259         * modules/unistr/u32-mbtouc-tests: Likewise.
8260         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8261         * modules/unistr/u32-mbtoucr-tests: Likewise.
8262         * modules/unistr/u32-move-tests: Likewise.
8263         * modules/unistr/u32-next-tests: Likewise.
8264         * modules/unistr/u32-prev-tests: Likewise.
8265         * modules/unistr/u32-set-tests: Likewise.
8266         * modules/unistr/u32-stpcpy-tests: Likewise.
8267         * modules/unistr/u32-stpncpy-tests: Likewise.
8268         * modules/unistr/u32-strcat-tests: Likewise.
8269         * modules/unistr/u32-strcmp-tests: Likewise.
8270         * modules/unistr/u32-strcoll-tests: Likewise.
8271         * modules/unistr/u32-strcpy-tests: Likewise.
8272         * modules/unistr/u32-strdup-tests: Likewise.
8273         * modules/unistr/u32-strlen-tests: Likewise.
8274         * modules/unistr/u32-strmblen-tests: Likewise.
8275         * modules/unistr/u32-strmbtouc-tests: Likewise.
8276         * modules/unistr/u32-strncat-tests: Likewise.
8277         * modules/unistr/u32-strncmp-tests: Likewise.
8278         * modules/unistr/u32-strncpy-tests: Likewise.
8279         * modules/unistr/u32-strnlen-tests: Likewise.
8280         * modules/unistr/u32-to-u16-tests: Likewise.
8281         * modules/unistr/u32-to-u8-tests: Likewise.
8282         * modules/unistr/u32-uctomb-tests: Likewise.
8283         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8284         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8285         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8286         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8287         * modules/uniwidth/u8-strwidth-tests: Likewise.
8288         * modules/uniwidth/u8-width-tests: Likewise.
8289         * modules/uniwidth/u16-strwidth-tests: Likewise.
8290         * modules/uniwidth/u16-width-tests: Likewise.
8291         * modules/uniwidth/u32-strwidth-tests: Likewise.
8292         * modules/uniwidth/u32-width-tests: Likewise.
8293         * modules/uniwidth/width-tests: Likewise.
8294
8295 2010-05-18  Richard Jones  <rjones@redhat.com>
8296
8297         doc: users.txt: list hivex
8298         * users.txt: Add hivex.
8299
8300 2010-05-18  Richard Jones  <rjones@redhat.com>
8301
8302         doc: users.txt: list febootstrap
8303         * users.txt: Add febootstrap.
8304
8305 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8306
8307         bootstrap: fix an error when gnulib is not used as a git submodule
8308         * build-aux/bootstrap (gnulib_path): If its length is zero then
8309         assign "gnulib" to it.
8310         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8311
8312 2010-05-16  Bruno Haible  <bruno@clisp.org>
8313
8314         Avoid autoconf warnings about AM_ICONV.
8315         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8316         2.64.
8317
8318 2010-05-16  Bruno Haible  <bruno@clisp.org>
8319
8320         absolute-header: Make the macro usable in more situations.
8321         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8322         from gl_ABSOLUTE_HEADER.
8323         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8324
8325 2010-05-16  James Youngman  <jay@gnu.org>
8326
8327         doc: update users.txt
8328         * users.txt: Add CSSC.
8329
8330 2010-05-16  Jim Meyering  <meyering@redhat.com>
8331
8332         init.sh: fix an error in the previous change; add more comments
8333         * tests/init.sh: Compare exit code in loop against 9, not 2.
8334         Patch by Bruno Haible.
8335         Make the two tests more similar by adding an empty "then" clause.
8336         Add comments.
8337
8338         init.sh: avoid unnecessary shell re-exec
8339         * tests/init.sh: Improve the re-exec-required check to first test the
8340         current shell.  If it passes the test, do not search for a shell that
8341         does pass, and do not re-exec.  This test is particularly contorted to
8342         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8343         of $(...) evokes a syntax error and causes immediate shell exit with
8344         status 2.  Bruno Haible reported that the re-exec made it impossible
8345         to single-step through any init.sh-using script.
8346
8347 2010-05-16  Bruno Haible  <bruno@clisp.org>
8348
8349         Fix collision between gnulib's and libintl's printf replacements.
8350         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8351         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8352         (printf): When using GNU C, map the __printf__ function to rpl_printf
8353         via __asm__. When not using GNU C, define rpl_printf instead of
8354         __printf__.
8355         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8356         commit.
8357         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8358         commit.
8359         * m4/asm-underscore.m4: New file.
8360         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8361         * modules/stdio (Files): Add m4/asm-underscore.m4.
8362         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8363         Reported by Ben Pfaff.
8364
8365 2010-05-16  Bruno Haible  <bruno@clisp.org>
8366
8367         verify: Avoid skipping the test on openSUSE 11.0.
8368         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8369
8370 2010-05-13  Bruno Haible  <bruno@clisp.org>
8371
8372         Avoid useless warnings from G++.
8373         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8374         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8375         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8376
8377 2010-05-11  Jim Meyering  <meyering@redhat.com>
8378
8379         maint.mk: tweak preceding change
8380         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8381         regexps tighter by anchoring at EOL, and make the new group "shy"
8382         for slightly decreased overhead.
8383
8384 2010-05-11  Eric Blake  <eblake@redhat.com>
8385
8386         maint.mk: gnulib doesn't guarantee NSIG
8387         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8388
8389 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8390
8391         test-pwrite.c: Remove unused variable declaration.
8392         * tests/test-pwrite.c (main): Remove read_buf declaration.
8393
8394         Remove useless test-pwrite.sh file.
8395         * tests/test-pwrite.sh: Delete file.
8396         * modules/pwrite-tests: Remove references.
8397         Reported by Bruno Haible.
8398
8399 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8400
8401         init.sh: fix a typo
8402         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8403
8404 2010-05-10  Jim Meyering  <meyering@redhat.com>
8405
8406         maint.mk: avoid using a temporary file in the always-defined-macros check
8407         * top/maint.mk (.re-defmac): Remove rule.
8408         (gl_trap_): Remove definition.
8409         (sc_prohibit_always-defined_macros): Rewrite not to create and
8410         depend on a temporary file.  Instead, depend on GNU grep's ability
8411         to read a list of regular expressions from stdin when given "-f -".
8412
8413 2010-05-09  Bruno Haible  <bruno@clisp.org>
8414
8415         Update to GNU gettext 0.18, part 1.
8416         * m4/gettext.m4: Update to GNU gettext 0.18.
8417         * m4/intl.m4: Likewise.
8418         * m4/po.m4: Likewise.
8419         * modules/gettext (Files): Add m4/fcntl-o.m4.
8420         (configure.ac): Require gettext infrastructure from version 0.18.
8421
8422 2010-05-09  Jim Meyering  <meyering@redhat.com>
8423
8424         init.sh: enable MALLOC_PERTURB_
8425         * tests/init.sh: Enable glibc's malloc-perturbing option.
8426
8427         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8428         With my recent change in init.sh from the two-line form:
8429             -#   : ${srcdir=.}
8430             -#   . "$srcdir/init.sh"; path_prepend_ .
8431             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8432         I noticed that using the one-line form would cause this test
8433         to fail with a false-positive, or to stop working altogether,
8434         depending on whether help-version changed or all the tests did.
8435         * top/maint.mk (_hv_regex): Remove this definition.
8436         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8437         (_hv_regex_strong): Use a stronger regex to check for conformance.
8438         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8439         Give a separate diagnostic for lack of conforming use.
8440
8441         maint.mk: prohibit definition of symbols defined by gnulib
8442         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8443         definition of symbols defined by gnulib.
8444
8445 2010-05-09  Bruno Haible  <bruno@clisp.org>
8446
8447         acl: Avoid test failure on Cygwin-hosted mingw.
8448         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8449
8450 2010-05-09  Bruno Haible  <bruno@clisp.org>
8451
8452         error: Use system's fcntl function.
8453         * lib/error.c (fcntl): Undefine.
8454
8455 2010-05-09  Jim Meyering  <meyering@redhat.com>
8456
8457         verify: adjust formatting to be more consistent
8458         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8459         argument-list '('s, and after one comma.
8460
8461 2010-05-09  Bruno Haible  <bruno@clisp.org>
8462
8463         error: More reliable output on mingw.
8464         * lib/error.c: Include <windows.h>.
8465         (is_open): New function.
8466         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8467         defined.
8468
8469 2010-05-09  Bruno Haible  <bruno@clisp.org>
8470
8471         vasnprintf: Fix syntax errors in libintl build on mingw.
8472         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8473         pad_ourselves and prec_ourselves after use.
8474
8475 2010-05-08  Bruno Haible  <bruno@clisp.org>
8476
8477         * lib/config.charset: Update comments for Cygwin 1.7.
8478         * lib/localcharset.c: Likewise.
8479
8480 2010-05-07  Jim Meyering  <meyering@redhat.com>
8481
8482         init.sh: improve comments
8483         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8484         . "${srcdir=.}/init.sh"; path_prepend_ .
8485         Add a note about path_prepend_ and the alternative of using
8486         TESTS_ENVIRONMENT.
8487
8488 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8489
8490         exclude: Unescape hashed patterns in wildcard mode.
8491         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8492         to the hash list.
8493         * tests/test-exclude8.sh: New test case.
8494         * modules/exclude-tests: Add new test.
8495
8496 2010-05-05  Eric Blake  <eblake@redhat.com>
8497
8498         verify: automate tests
8499         * modules/verify-tests: New module.
8500         * tests/test-verify.sh: New file.
8501         * tests/test-verify.c: Guard each negative test with a unique id.
8502         Also avoid warning about unused left hand of comma expressions.
8503
8504 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8505
8506         Further improvements to verify.h, suggested by Eric Blake.
8507         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8508         the GL_* versions, to avoid collision with OpenGL.
8509         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8510         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8511         than testing merely whether it's defined.
8512
8513         Modify verify.h to pacify gcc -Wredundant_decls.
8514         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8515         These use the prefix "GL_" since they're likely to be useful elsewhere.
8516         We may need to break them out into a different .h file.
8517         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8518         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8519         of verify_function__.
8520
8521 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8522
8523         Tests for module pwrite.
8524         * modules/pwrite-tests: New file.
8525         * tests/test-pwrite.sh: New file.
8526         * tests/test-pwrite.c: New file.
8527
8528         New module pwrite.
8529         * lib/unistd.in.h (pwrite): New declaration.
8530         * lib/pwrite.c: New file, from glibc with modifications.
8531         * m4/pwrite.m4: New file.
8532         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8533         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8534         REPLACE_PWRITE.
8535         * modules/pwrite: New file.
8536         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8537         REPLACE_PWRITE.
8538         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8539         * doc/posix-functions/pwrite.texi: Mention the new module.
8540
8541 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8542
8543         pread: Update documentation.
8544         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8545
8546 2010-05-04  Eric Blake  <eblake@redhat.com>
8547
8548         docs: update cygwin progress
8549         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8550         this bug.
8551         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8552         Added in cygwin 1.7.2.
8553         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8554         Likewise.
8555         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8556         Likewise.
8557         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8558         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8559         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8560         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8561         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8562         Mention nproc module.
8563         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8564         bug in cygwin 1.7.5 addition.
8565         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8566         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8567         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8568         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8569         1.7.5.
8570         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8571         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8572         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8573         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8574         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8575         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8576         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8577         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8578         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8579         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8580         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8581         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8582         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8583         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8584         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8585         Likewise.
8586         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8587         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8588         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8589         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8590         Likewise.
8591         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8592         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8593         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8594         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8595         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8596         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8597         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8598         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8599         Likewise.
8600         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8601         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8602         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8603         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8604         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8605         Likewise.
8606         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8607         Likewise.
8608         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8609         Likewise.
8610         * doc/glibc-functions/xdrrec_endofrecord.texi
8611         (xdrrec_endofrecord): Likewise.
8612         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8613         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8614         Likewise.
8615         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8616         Likewise.
8617
8618 2010-05-04  Jim Meyering  <meyering@redhat.com>
8619
8620         gendocs.sh: make its "-s FILE" option more useful
8621         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8622         $PACKAGE to reflect the probably-different basename of "FILE".
8623
8624 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8625
8626         bootstrap: don't ignore download_po_files failure
8627         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8628         failure.
8629
8630 2010-05-03  Jim Meyering  <meyering@redhat.com>
8631
8632         maint.mk: allow to pass options to gendocs.sh
8633         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8634         (gendocs_options_): New overridable variable.
8635
8636         gnu-web-doc-update: don't ignore configure or build failure
8637         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8638
8639         announce-gen: backslash-escape '@'s in --help output
8640         * build-aux/announce-gen: Fix syntax errors.
8641
8642         maint.mk, announce-gen: allow project-specific announcement mail headers
8643         * top/maint.mk (translation_project_): Define default.
8644         (announcement_Cc_, announcement_mail_headers_): Likewise.
8645         (announcement): Invoke announce-gen with new --mail-headers option.
8646         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8647
8648         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8649         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8650         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8651         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8652         line in the "err2" output file when running "make check" in verbose
8653         mode (i.e., with set -x enabled).
8654
8655 2010-05-03  Bruno Haible  <bruno@clisp.org>
8656
8657         wctob: Fix for weird platforms.
8658         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8659         argument value.
8660
8661 2010-05-03  Jim Meyering  <meyering@redhat.com>
8662
8663         maint.mk: prohibit unwarranted use of <strings.h>
8664         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8665         strings.h in a file that does not also use strcasecmp, strncasecmp,
8666         ffs or ffsll.
8667
8668         maint.mk: remove obsolete comments
8669         * top/maint.mk: Remove stale, commented-out rules.
8670
8671 2010-05-02  Bruno Haible  <bruno@clisp.org>
8672
8673         wcwidth: Declare also when it's aliased.
8674         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8675         macro.
8676
8677 2010-05-02  Bruno Haible  <bruno@clisp.org>
8678
8679         Fix regression from 2010-04-25.
8680         * gnulib-tool (func_modules_transitive_closure): Check the status of
8681         all modules, not only of the tests that are of the form foo-tests where
8682         foo is a module.
8683
8684 2010-05-02  Bruno Haible  <bruno@clisp.org>
8685
8686         wctob: Work around nasty Cygwin 1.7.2 bug.
8687         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8688         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8689
8690 2010-05-01  Bruno Haible  <bruno@clisp.org>
8691
8692         fpurge: Sharper test.
8693         * tests/test-fpurge.c (main): Add one more ftell check.
8694         * modules/fpurge-tests (Depends-on): Add ftell.
8695         Suggested by Eric Blake.
8696
8697 2010-05-01  Bruno Haible  <bruno@clisp.org>
8698
8699         ftello: Another test.
8700         * tests/test-ftello3.c: New file.
8701         * modules/ftello-tests (Files): Add it.
8702         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8703         MOSTLYCLEANFILES.
8704
8705         ftell: Another test.
8706         * tests/test-ftell3.c: New file.
8707         * modules/ftell-tests (Files): Add it.
8708         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8709         MOSTLYCLEANFILES.
8710
8711 2010-05-01  Bruno Haible  <bruno@clisp.org>
8712
8713         ftell, ftello: Work around Solaris bug.
8714         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8715         * lib/ftello.c: Include stdio-impl.h.
8716         (ftello): On Solaris, when _IOWRT is set, compute the result without
8717         looking at _IOREAD.
8718         * modules/ftello (Files): Add lib/stdio-impl.h.
8719         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8720         * doc/posix-functions/ftello.texi: Likewise.
8721         Reported by Eric Blake.
8722
8723 2010-05-01  Bruno Haible  <bruno@clisp.org>
8724
8725         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8726         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8727         the _IOWRT flag is also set.
8728
8729 2010-05-01  Bruno Haible  <bruno@clisp.org>
8730
8731         Fix doc about a HP-UX stdio bug.
8732         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8733         * doc/posix-functions/ftello.texi: Likewise.
8734
8735 2010-05-01  Bruno Haible  <bruno@clisp.org>
8736
8737         lseek test: Fix failure on Solaris.
8738         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8739         output.
8740
8741 2010-04-30  Jim Meyering  <meyering@redhat.com>
8742
8743         bootstrap: don't ignore failure to generate po*/Makevars
8744         * build-aux/bootstrap (with_gettext): Don't ignore failure
8745         to create po/Makevars or runtime-po/Makevars.
8746
8747 2010-04-29  Eric Blake  <eblake@redhat.com>
8748
8749         headers: relax license to LGPLv2+
8750         * modules/fcntl-h (License): Relax license.
8751         * modules/getopt-posix (License): Likewise.
8752         * modules/locale (License): Likewise.
8753         * modules/math (License): Likewise.
8754         * modules/pty (License): Likewise.
8755         * modules/sched (License): Likewise.
8756         * modules/search (License): Likewise.
8757         * modules/spawn (License): Likewise.
8758         * modules/stdarg (License): Likewise.
8759         * modules/sysexits (License): Likewise.
8760
8761 2010-04-29  Jim Meyering  <meyering@redhat.com>
8762
8763         inttypes: relax license to LGPLv2+
8764         * modules/inttypes (License): Relax license.
8765
8766 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8767
8768         * top/maint.mk (indent): Run twice to produce idempotent results.
8769
8770 2010-04-28  Bruno Haible  <bruno@clisp.org>
8771
8772         getdate: Generate getdate.c in the source directory.
8773         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8774         MOSTLYCLEANFILES.
8775         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8776
8777 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8778
8779         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8780         is not declared as a const *; avoid warnings in that case.
8781
8782 2010-04-28  Eric Blake  <eblake@redhat.com>
8783
8784         canonicalize-lgpl: avoid compiler warning
8785         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8786         declaration' / 'extraneous semicolon' warning with some compilers.
8787         Reported by Andreas Gruenbacher.
8788
8789 2010-04-28  Jim Meyering  <meyering@redhat.com>
8790
8791         init.sh: ensure a more reliable exit status when exiting via trap
8792         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8793         Inspired by patches from Dmitry V. Levin.
8794         Also trap on signal 3 (SIGQUIT).
8795
8796 2010-04-27  Bruno Haible  <bruno@clisp.org>
8797
8798         Update doc about utimes().
8799         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8800         'utimens' module.
8801         Reported by Andreas Gruenbacher <agruen@suse.de>.
8802
8803 2010-04-27  Eric Blake  <eblake@redhat.com>
8804
8805         full-read, full-write: relax license
8806         * modules/full-read (License): Drop to LGPLv2+.
8807         * modules/full-write (License): Likewise.
8808         * modules/safe-read (License): Likewise.
8809         * modules/safe-write (License): Likewise.
8810
8811         pthread: mention library for linking
8812         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8813
8814 2010-04-27  Jim Meyering  <meyering@redhat.com>
8815
8816         maint.mk: fix a bug introduced in last change
8817         * top/maint.mk (gl_assured_headers_): Now that all names are on
8818         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8819         is not anchored to end of word, it should be adequate.
8820
8821         maint.mk: avoid side-effect in latest syntax-check
8822         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8823         to run commands via $(shell...), and hence to incur cost only when
8824         the new rule is actually run.
8825
8826         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8827         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8828         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8829         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8830         (gl_assured_headers_, az_, AZ_): Define.
8831         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8832
8833 2010-04-26  Jim Meyering  <jim@meyering.net>
8834             Bruno Haible  <bruno@clisp.org>
8835
8836         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8838         Prompted by an exchange with Gilles Espinasse.
8839
8840 2010-04-26  Jim Meyering  <meyering@redhat.com>
8841
8842         git-version-gen: aesthetic tweak
8843         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8844         so that the command remains on a single line.
8845
8846 2010-04-26  Eric Blake  <eblake@redhat.com>
8847
8848         git-version-gen: allow use on EBCDIC hosts
8849         * build-aux/git-version-gen (dirty): Use literal rather than tying
8850         ourselves to ascii.
8851         Reported by Steve Goetze.
8852
8853 2010-04-25  Bruno Haible  <bruno@clisp.org>
8854
8855         netdb: Add support for GNULIB_POSIXCHECK.
8856         * lib/netdb.in.h: Include warn-on-use.h.
8857         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8858         functions are used when GNULIB_POSIXCHECK is defined and the
8859         getaddrinfo module is not in use.
8860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8861         freeaddrinfo, gai_strerror, getnameinfo are declared.
8862         * modules/netdb (Depends-on): Add warn-on-use.
8863         (Makefile.am): Include warn-on-use.h in netdb.h.
8864
8865 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8866
8867         build: avoid "make check" failure without .git/ directory
8868         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8869         there is no .git/ directory.
8870
8871 2010-04-25  Bruno Haible  <bruno@clisp.org>
8872
8873         ptsname: Fix misuse of ttyname_r.
8874         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8875         of errno.
8876
8877 2010-04-25  Bruno Haible  <bruno@clisp.org>
8878
8879         ttyname_r: Make it work on Solaris 10.
8880         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8881         if the system function has the POSIX declaration. Test whether the
8882         function fails if the buffer is less than 128 bytes large.
8883         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8884         system's ttyname_r function. Provide a reasonably large buffer.
8885         * modules/ttyname_r (Depends-on): Add extensions.
8886         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8887
8888 2010-04-25  Bruno Haible  <bruno@clisp.org>
8889
8890         Use the 'extensions' module for some more functions on Solaris.
8891         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8892         module.
8893         * doc/posix-functions/ctime_r.texi: Likewise.
8894         * doc/posix-functions/getgrgid_r.texi: Likewise.
8895         * doc/posix-functions/getgrnam_r.texi: Likewise.
8896         * doc/posix-functions/getpwnam_r.texi: Likewise.
8897         * doc/posix-functions/getpwuid_r.texi: Likewise.
8898         * doc/posix-functions/readdir_r.texi: Likewise.
8899         * doc/posix-functions/sigwait.texi: Likewise.
8900         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8901         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8902
8903 2010-04-25  Bruno Haible  <bruno@clisp.org>
8904
8905         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8906         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8907         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8908         * lib/ttyname_r.c: Include <limits.h>.
8909         (ttyname_r): Define using the system's ttyname_r function, if it exists
8910         and not on Solaris.
8911         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8912         set.
8913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8914         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8915         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8916         Reported by Simon Josefsson.
8917
8918 2010-04-25  Bruno Haible  <bruno@clisp.org>
8919
8920         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8921         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8922         * doc/posix-functions/ctime_r.texi: Likewise.
8923         * doc/posix-functions/getgrgid_r.texi: Likewise.
8924         * doc/posix-functions/getgrnam_r.texi: Likewise.
8925         * doc/posix-functions/getlogin_r.texi: Likewise.
8926         * doc/posix-functions/getpwnam_r.texi: Likewise.
8927         * doc/posix-functions/getpwuid_r.texi: Likewise.
8928         * doc/posix-functions/readdir_r.texi: Likewise.
8929         * doc/posix-functions/sigwait.texi: Likewise.
8930         * doc/posix-functions/ttyname_r.texi: Likewise.
8931         Reported by Simon Josefsson.
8932
8933 2010-04-25  Bruno Haible  <bruno@clisp.org>
8934
8935         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8936         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8937         also to --create-testdir.
8938         (func_acceptable): Don't consider the status of *-tests modules here.
8939         (func_modules_transitive_closure): Consider it here, before including a
8940         test module.
8941         (func_import, func_create_testdir): Set inc_all_direct_tests,
8942         inc_all_indirect_tests.
8943         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8944         --create-testdir and --create-megatestdir.
8945
8946 2010-04-25  Bruno Haible  <bruno@clisp.org>
8947
8948         gnulib-tool: Add --without-*-tests options.
8949         * gnulib-tool (func_usage): Document the --without-*-tests options.
8950         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8951         excl_unportable_tests): New variables.
8952         Fail if they are specified with --import or --update.
8953         (func_acceptable): Respect the excl_*_tests variables.
8954         (func_import): Set the excl_*_tests variables to empty.
8955
8956 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8957             Bruno Haible  <bruno@clisp.org>
8958
8959         Work around a MacOS X 10.4 bug with openpty.
8960         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8961         * tests/test-openpty.c (main): Close the master side explicitly.
8962
8963 2010-04-25  Bruno Haible  <bruno@clisp.org>
8964
8965         strnlen: Fix a C++ test error on MacOS X and Solaris.
8966         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8967         the function is not declared.
8968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8969         Simon Josefsson.
8970
8971 2010-04-24  Bruno Haible  <bruno@clisp.org>
8972
8973         Avoid a gcc warning.
8974         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8975         of correct type for %08lx directive.
8976         Reported by Eric Blake.
8977
8978 2010-04-24  Bruno Haible  <bruno@clisp.org>
8979
8980         vasnprintf: Correct errno value in case of out-of-memory.
8981         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8982         or sprintf. Use the errno value from SNPRINTF or sprintf.
8983         Reported by Ian Beckwith <ianb@erislabs.net>.
8984
8985 2010-04-24  Bruno Haible  <bruno@clisp.org>
8986
8987         ansi-c++-opt: Find correct compiler when cross-compiling.
8988         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8989         AC_CHECK_PROGS.
8990         Reported by Simon Josefsson.
8991
8992 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8993
8994         vc-list-files: Add support for subversion
8995         * build-aux/vc-list-files: Use "svn list" to generate the list of
8996         files controlled by subversion.
8997
8998 2010-04-23  Jim Meyering  <meyering@redhat.com>
8999
9000         vc-list-files tests: convert to use init.sh
9001         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9002         path_prepend_.
9003         Use Exit, not exit.
9004         Use skip_ rather than open coding it.
9005         Remove trap set-up and compare definitions.
9006         * tests/test-vc-list-files-git.sh: Likewise.
9007         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9008
9009 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9010
9011         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9012         backup files.
9013
9014 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9015
9016         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9017
9018 2010-04-20  Eric Blake  <eblake@redhat.com>
9019
9020         tests: be robust to ignored SIGPIPE
9021         * tests/test-select-in.sh: Consume all output.
9022         * tests/test-lseek.sh: Check correct exit status, while avoiding
9023         EPIPE.
9024
9025 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9026             Bruno Haible  <bruno@clisp.org>
9027
9028         visibility: Don't use -fvisibility if it leads to a warning.
9029         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9030         yes, don't pretend that visibility works if it leads to a warning.
9031         Reported by Mike Gran <spk121@yahoo.com>.
9032
9033 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9034
9035         * build-aux/bootstrap: Use "git -h" for testing for supported options
9036         instead of "git --help".  The short-form option only shows a summary,
9037         and doesn't layout the full man page.  Grep for the full option name
9038         in the summary, too.
9039
9040 2010-04-19  Bruno Haible  <bruno@clisp.org>
9041
9042         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9044         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9045         mention of RELOCATABLE_STRIP.
9046         Reported by Sylvain Beucler <beuc@beuc.net>.
9047
9048 2010-04-19  Bruno Haible  <bruno@clisp.org>
9049
9050         * lib/diffseq.h: Fix typo in comment.
9051         Reported by Eric Blake.
9052
9053 2010-04-19  Bruno Haible  <bruno@clisp.org>
9054
9055         ioctl: Move autoconf macro to a .m4 file.
9056         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9057         * modules/ioctl (Files): Add it.
9058         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9059         Reported by Ian Beckwith <ianb@erislabs.net>.
9060
9061 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9062             Bruno Haible  <bruno@clisp.org>
9063
9064         diffseq: Accommodate use-case with abstract arrays.
9065         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9066         is not defined.
9067         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9068         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9069
9070 2010-04-18  Bruno Haible  <bruno@clisp.org>
9071
9072         * doc/posix-headers/stdbool.texi: More precise wording.
9073
9074 2010-04-17  Jim Meyering  <meyering@redhat.com>
9075
9076         maint.mk: use gnu-style indentation in an embedded perl script
9077         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9078         Rename variable: s/two/last_two_bytes/
9079
9080 2010-04-16  Eric Blake  <eblake@redhat.com>
9081
9082         test-stdbool: skip test that fails with Solaris CC
9083         * tests/test-stdbool.c (f): Skip test that causes compilation
9084         error under buggy C++ compiler.
9085         * lib/stdbool.in.h: Document the limitation.
9086         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9087
9088         setenv: allow compilation with C++
9089         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9090         register keyword.
9091
9092         stdint: allow test to pass with C++
9093         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9094
9095         getopt: allow compilation with C++
9096         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9097         struct.
9098         * lib/getopt.c (_getopt_internal_r): Use correct type.
9099         Reported by Dagobert Michelson, via Joel E. Denny.
9100
9101 2010-04-16  Bruno Haible  <bruno@clisp.org>
9102
9103         Override netdb.h always.
9104         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9106         Reported by Ludovic Courtès <ludo@gnu.org>.
9107
9108 2010-04-15  Bruno Haible  <bruno@clisp.org>
9109
9110         openpty: Fix mistake from 2010-03-21.
9111         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9112         Reported by Simon Josefsson.
9113
9114 2010-04-15  Eric Blake  <eblake@redhat.com>
9115
9116         test-forkpty: fix expected signature
9117         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9118         Reported by Simon Josefsson.
9119
9120 2010-04-15  Jim Meyering  <meyering@redhat.com>
9121
9122         maint.mk: texinfo_suffix_re_: correct the default regexp
9123         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9124
9125         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9126         make it configurable via texinfo_suffix_re_.
9127
9128 2010-04-14  Eric Blake  <eblake@redhat.com>
9129
9130         strtok_r: relax license to LGPLv2+
9131         * modules/strtok_r (License): Relax license.
9132         Reported by Matthias Bolte.
9133
9134 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9135
9136         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9137         version 1.4.4 by default instead of requiring the libgcrypt
9138         version used during build.  This makes it possible to use the
9139         application with older but still binary compatible libgcrypt
9140         versions.
9141
9142 2010-04-13  Eric Blake  <eblake@redhat.com>
9143
9144         getopt-gnu: match recent glibc fixes and posix ruling
9145         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9146         '+' handling, when requesting extensions.
9147         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9148         'W;' handling.
9149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9150         * doc/posix-functions/getopt.texi (getopt): Document this.
9151         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9152         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9153         Likewise.
9154
9155         getopt: merge bug fixes from glibc
9156         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9157         diagnostics.  Honor '+:' correctly.  Reject ';'.
9158
9159         getopt-posix: detect MacOS bug
9160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9161         optind when missing a required argument.
9162         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9163         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9165         Likewise.
9166
9167         getopt-posix: avoid spurious failure on Solaris
9168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9169         an indicator that setting optind=1 is sufficient for reset.
9170
9171         getopt-posix: avoid spurious failure on FreeBSD
9172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9173         in POSIX mode, since the m4 test uses it.
9174
9175         gnulib-tool: silence warning on BSD sh
9176         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9177
9178 2010-04-13  Jim Meyering  <meyering@redhat.com>
9179
9180         doc: users.txt: GNU patch now uses gnulib
9181         * users.txt: Add patch.
9182
9183 2010-04-12  Jim Meyering  <meyering@redhat.com>
9184
9185         maint.mk: generate more concise timing data for syntax-check rules
9186         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9187         " done" from each line that reports a syntax-check test duration.
9188
9189 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9190
9191         git-version-gen: use "git update-index..." rather than "git status"
9192         * build-aux/git-version-gen: Use git update-index --refresh, not
9193         "git status".  With some versions of git, "git status" would fail
9194         to update the index and result in an unwarranted "-dirty" suffix.
9195
9196 2010-04-11  Jim Meyering  <meyering@redhat.com>
9197
9198         openat: correct formatting (no semantic change)
9199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9200         Suggested by Bruno Haible.
9201
9202 2010-04-11  Bruno Haible  <bruno@clisp.org>
9203
9204         Stricter declaration checking in testdirs.
9205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9206         If for_tests is true, augment AM_CPPFLAGS to define
9207         GNULIB_STRICT_CHECKING.
9208         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9209         GNULIB_STRICT_CHECKING is defined, verify that the function is
9210         declared.
9211
9212 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9213             Bruno Haible  <bruno@clisp.org>
9214
9215         libunistring: Improve configure output.
9216         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9217         Don't say "consider installing GNU libunistring" when checking again
9218         with libiconv.
9219
9220 2010-04-11  Bruno Haible  <bruno@clisp.org>
9221
9222         libunistring: Correct value of $LTLIBUNISTRING.
9223         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9224         correct the value of $LTLIBUNISTRING.
9225
9226 2010-04-11  Bruno Haible  <bruno@clisp.org>
9227
9228         havelib: Add static libraries to LIBS in the right order.
9229         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9230         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9231
9232 2010-04-11  Bruno Haible  <bruno@clisp.org>
9233
9234         libunistring: Detect libunistring also when it depends on libiconv.
9235         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9236         the second AC_LIB_HAVE_LINKFLAGS invocation.
9237
9238 2010-04-11  James Youngman  <jay@gnu.org>
9239
9240         close-stream: declare local scalars to be "const"
9241         * lib/close-stream.c (close_stream): Make boolean variables const
9242         to document the fact that we set but do not change them.
9243
9244 2010-04-11  Bruno Haible  <bruno@clisp.org>
9245
9246         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9247
9248 2010-04-11  Jim Meyering  <meyering@redhat.com>
9249
9250         maint.mk: don't include dist-check.mk
9251         * top/maint.mk: Remove bogus include directive.
9252
9253         maint.mk: improve empty-line-at-EOF check
9254         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9255         solution, rather than tail+Perl-based one.  The latter would read
9256         a few kilobytes from the end of each file, and did not handle empty
9257         files properly.
9258
9259         maint.mk: print the elapsed time for each syntax-check rule
9260         * top/maint.mk (sc_m_rules_): Save start time in a file.
9261         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9262         (local-check): Interpose the .z rules
9263
9264 2010-04-11  Jim Meyering  <meyering@redhat.com>
9265
9266         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9267         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9268         empty file with one that ends in an empty line.
9269
9270 2010-04-10  Bruno Haible  <bruno@clisp.org>
9271
9272         mkdir: Make it work on mingw64.
9273         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9274         * lib/mkdir.c: Update comment.
9275         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
9276
9277 2010-04-10  Bruno Haible  <bruno@clisp.org>
9278
9279         Don't override improved macro from newer autoconf.
9280         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9281         autoconf >= 2.62.
9282         Reported by Joel E. Denny <jdenny@clemson.edu>.
9283
9284 2010-04-10  Jim Meyering  <meyering@redhat.com>
9285
9286         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9288
9289         maint.mk: correct a diagnostic
9290         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9291         in diagnostic; now use $prohibit.
9292
9293 2010-04-10  Bruno Haible  <address@hidden>
9294
9295         fchownat: Fix a C++ test error on Solaris 8.
9296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9297         the function does not exist.
9298
9299 2010-04-10  Bruno Haible  <bruno@clisp.org>
9300
9301         vasnprintf: Add more tests.
9302         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9303         (test_function): Test converting an invalid wide string.
9304
9305         vasnprintf: Correct handling of unconvertible wide string arguments.
9306         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9307         VASNPRINTF.
9308         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9309         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9310         smaller than the expected maximum need for the directive. Set errno to
9311         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9312         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9314         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9315         * modules/vasnprintf (Files): Add m4/printf.m4.
9316         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9317
9318 2010-04-10  Bruno Haible  <bruno@clisp.org>
9319
9320         vasnprintf: Fix crash in %ls directive.
9321         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9322         string is passed as argument to %ls, with no precision and no width.
9323         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9324
9325 2010-04-10  Bruno Haible  <bruno@clisp.org>
9326
9327         vasnprintf: Fix multiple test failures on mingw.
9328         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9329         _snprintf, or snwprintf, not _snwprintf.
9330
9331 2010-04-10  Bruno Haible  <bruno@clisp.org>
9332
9333         write: Fix a C++ test error on mingw.
9334         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9335
9336 2010-04-10  Bruno Haible  <bruno@clisp.org>
9337
9338         vasnprintf test: Reduce code duplication.
9339         * tests/test-vasnprintf.c (test_function): New function, extracted from
9340         test_vasnprintf.
9341         (test_vasnprintf, test_asnprintf): Invoke it.
9342
9343 2010-04-10  Bruno Haible  <bruno@clisp.org>
9344
9345         strnlen: Fix warning in C++ mode on MacOS X.
9346         * lib/string.in.h (strnlen): Use the modern idiom.
9347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9348         defining strnlen as a macro already in <config.h>.
9349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9350         REPLACE_STRNLEN.
9351         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9353
9354 2010-04-08  James Youngman  <jay@gnu.org>
9355
9356         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9357         the example.
9358
9359 2010-04-09  Jim Meyering  <meyering@redhat.com>
9360
9361         maint.mk: print better diagnostic when there is no $(_hv_file)
9362         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9363         announce that when $(_hv_file) (aka help-version) does not exist.
9364
9365         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9366         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9367         not try to interpret its random input bytes.  Jarno Rajahalme reported
9368         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9369         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9370         (mktempd_): Likewise, just in case.
9371
9372         ftruncate: add two years to projected module removal date: 2012
9373         * m4/ftruncate.m4: Adjust comments.
9374
9375         ftruncate: mark module as obsolete; even MinGW provides it, now
9376         * modules/ftruncate (Status): Obsolete.
9377         (Notice): Say that.
9378         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9379         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9380
9381 2010-04-08  Bruno Haible  <bruno@clisp.org>
9382
9383         Fix side effects from tests-related modules.
9384         * modules/dprintf-posix (Comment): New section.
9385         * modules/fprintf-posix (Comment): Likewise.
9386         * modules/obstack-printf-posix (Comment): Likewise.
9387         * modules/printf-posix (Comment): Likewise.
9388         * modules/snprintf-posix (Comment): Likewise.
9389         * modules/sprintf-posix (Comment): Likewise.
9390         * modules/vasnprintf-posix (Comment): Likewise.
9391         * modules/vasprintf-posix (Comment): Likewise.
9392         * modules/vdprintf-posix (Comment): Likewise.
9393         * modules/vfprintf-posix (Comment): Likewise.
9394         * modules/vprintf-posix (Comment): Likewise.
9395         * modules/vsnprintf-posix (Comment): Likewise.
9396         * modules/vsprintf-posix (Comment): Likewise.
9397         * modules/xprintf-posix (Comment): Likewise.
9398         * modules/xvasprintf-posix (Comment): Likewise.
9399         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9400         * modules/floorf-tests (Depends-on): Likewise.
9401         * modules/round-tests (Depends-on): Likewise.
9402         * modules/roundf-tests (Depends-on): Likewise.
9403         * modules/trunc-tests (Depends-on): Likewise.
9404         * modules/truncf-tests (Depends-on): Likewise.
9405         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9406         'fprintf-posix' module is not present.
9407         * tests/test-floorf2.c (check): Likewise.
9408         * tests/test-trunc2.c (check): Likewise.
9409         * tests/test-truncf2.c (check): Likewise.
9410         * tests/test-round2.c (equal): Likewise.
9411         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9412
9413 2010-04-07  Karl Berry  <karl@gnu.org>
9414
9415         * config/srclist.txt,
9416         * config/srclistvars.sh,
9417         * config/srclist-update: doc fixes.
9418
9419 2010-04-07  Jim Meyering  <meyering@redhat.com>
9420
9421         maint.mk: add a PATH crosschecking syntax-check rule
9422         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9423         Useful if you use a test like the one in help-version (coreutils,
9424         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9425         printed by prog --version.
9426
9427 2010-04-06  Bruno Haible  <bruno@clisp.org>
9428
9429         Fix link error on mingw.
9430         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9431         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9432
9433 2010-04-06  Bruno Haible  <bruno@clisp.org>
9434
9435         Assume rmdir exists.
9436         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9437
9438 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9439
9440         doc: update users.txt
9441         * users.txt: Add gcal.
9442
9443 2010-04-06  Jim Meyering  <meyering@redhat.com>
9444
9445         init.sh: simply unset TMPDIR rather than risking env -i
9446         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9447         although it probably works fine on all Unix-based systems, some
9448         systems (Cygwin?) cannot tolerate a totally cleared environment.
9449         Suggestion from Eric Blake.
9450
9451 2010-04-06  Jim Meyering  <meyering@redhat.com>
9452
9453         init.sh: portability fix: use env's POSIX-specified -i option not -u
9454         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9455         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9456
9457 2010-04-05  Bruno Haible  <bruno@clisp.org>
9458
9459         btowc: Work around Cygwin 1.7.2 bug.
9460         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9461         does not map NUL to 0.
9462         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9463
9464 2010-04-05  Bruno Haible  <bruno@clisp.org>
9465
9466         Make the multithread modules work on Cygwin 1.7.2.
9467         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9468         imported symbols can be declared weak, so that it returns "no" on
9469         Cygwin 1.7.2.
9470
9471 2010-04-05  Bruno Haible  <bruno@clisp.org>
9472
9473         Use the module 'strncat'.
9474         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9475
9476         Tests for module 'strncat'.
9477         * modules/strncat-tests: New file.
9478         * tests/test-strncat.c: New file.
9479
9480         New module 'strncat'.
9481         * lib/string.in.h (strncat): New declaration.
9482         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9483         * m4/strncat.m4: New file, based on m4/memchr.m4.
9484         * modules/strncat: New file.
9485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9486         is declared.
9487         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9488         REPLACE_STRNCAT.
9489         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9490         REPLACE_STRNCAT.
9491         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9492         module.
9493         * tests/test-string-c++.cc: Check signature of strncat.
9494
9495 2010-04-05  Jim Meyering  <meyering@redhat.com>
9496
9497         xstrtoumax-tests: convert to use init.sh
9498         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9499         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9500         Use Exit, not exit.
9501         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9502
9503         xstrtoimax-tests: convert to use init.sh
9504         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9505         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9506         Use Exit, not exit.
9507         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9508
9509 2010-04-05  Bruno Haible  <bruno@clisp.org>
9510
9511         sys_socket: Avoid #define replacements in C++ mode.
9512         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9513         warning to the function if possible, rather than #defining the symbol
9514         to a dysfunctional alias.
9515
9516 2010-04-05  Bruno Haible  <bruno@clisp.org>
9517
9518         fseeko: Fix C++ test error on mingw.
9519         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9520         gl_FUNC_FSEEKO.
9521         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9522         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9523         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9524         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9525
9526 2010-04-05  Bruno Haible  <bruno@clisp.org>
9527
9528         duplocale: Improve test output.
9529         * tests/test-duplocale.c (main): Print reason for skipped test.
9530
9531 2010-04-05  Bruno Haible  <bruno@clisp.org>
9532
9533         Assume rmdir exists.
9534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9535         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9536
9537 2010-04-05  Bruno Haible  <bruno@clisp.org>
9538
9539         Fix link error on Solaris 8 with cc.
9540         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9541
9542 2010-04-05  Bruno Haible  <bruno@clisp.org>
9543
9544         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9545         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9546
9547 2010-04-05  Bruno Haible  <bruno@clisp.org>
9548
9549         vasprintf: Update documentation.
9550         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9551
9552 2010-04-05  Bruno Haible  <bruno@clisp.org>
9553
9554         ptsname: Improve test.
9555         * tests/test-ptsname.c (main): Also try the various master names of BSD
9556         systems.
9557
9558 2010-04-05  Bruno Haible  <bruno@clisp.org>
9559
9560         memchr: Avoid a possible C++ test error.
9561         * lib/string.in.h (memchr): Provide declaration if function is missing.
9562         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9563         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9565         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9566
9567 2010-04-05  Bruno Haible  <bruno@clisp.org>
9568
9569         strtok_r: Improve idiom.
9570         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9571         AC_LIBOBJ is used.
9572
9573 2010-04-05  Bruno Haible  <bruno@clisp.org>
9574
9575         strdup: Improve idiom.
9576         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9577         AC_LIBOBJ is used.
9578         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9579         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9580         when AC_LIBOBJ is used.
9581
9582 2010-04-05  Bruno Haible  <bruno@clisp.org>
9583
9584         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9585         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9586         don't set REPLACE_MBSINIT to 1.
9587         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9588         don't set REPLACE_MBRTOWC to 1.
9589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9590         exist, don't set REPLACE_MBSRTOWCS to 1.
9591         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9592         exist, don't set REPLACE_MBSNRTOWCS to 1.
9593         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9594         don't set REPLACE_WCRTOMB to 1.
9595         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9596         exist, don't set REPLACE_WCSRTOMBS to 1.
9597         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9598         exist, don't set REPLACE_WCSNRTOMBS to 1.
9599
9600 2010-04-05  Bruno Haible  <bruno@clisp.org>
9601
9602         ldexpl: Improve idiom.
9603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9604         make sure to set HAVE_DECL_LDEXPL to 0.
9605
9606 2010-04-05  Jim Meyering  <meyering@redhat.com>
9607
9608         xstrtol-tests: convert to use init.sh
9609         * modules/xstrtol-tests (Files): Add tests/init.sh.
9610         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9611         Use Exit, not exit.
9612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9613
9614         atexit-tests: convert to use init.sh
9615         * modules/atexit-tests (Files): Add tests/init.sh.
9616         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9617         Use Exit, not exit.
9618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9619
9620         init.sh: fix typo
9621         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9622
9623         init.sh: make it easier for a test script to write to the tty, ...
9624         when using automake's parallel-tests mode.
9625         * tests/init.sh (stderr_fileno_): Define overridable variable.
9626         (warn_): New function, to use it.
9627         (fail_, skip_, framework_failure_): Use warn_.
9628
9629 2010-04-04  Bruno Haible  <bruno@clisp.org>
9630
9631         btowc: Avoid warning.
9632         * lib/btowc.c: Include <stdlib.h>.
9633         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9634
9635 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9636             Bruno Haible  <bruno@clisp.org>
9637
9638         wchar: Port to NetBSD 1.5.
9639         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9640         * lib/wctype.in.h (WEOF): Likewise.
9641
9642 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9643             Bruno Haible  <bruno@clisp.org>
9644
9645         Port extended stdio to NetBSD 1.5.
9646         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9647         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9648         older.
9649
9650 2010-04-04  Bruno Haible  <bruno@clisp.org>
9651
9652         string: Remove unused substitution.
9653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9654         HAVE_DECL_STRERROR.
9655         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9656
9657 2010-04-04  Bruno Haible  <bruno@clisp.org>
9658
9659         strtod: Avoid a possible C++ test error.
9660         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9661         set REPLACE_STRTOD.
9662
9663 2010-04-04  Bruno Haible  <bruno@clisp.org>
9664
9665         strerror: Update documentation.
9666         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9667
9668 2010-04-04  Bruno Haible  <bruno@clisp.org>
9669
9670         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9671         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9672         _GL_CXXALIAS_SYS_CAST.
9673
9674 2010-04-04  Bruno Haible  <bruno@clisp.org>
9675
9676         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9677         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9678         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9679         REPLACE_FREXPL to 1.
9680         * doc/posix-functions/frexpl.texi: Update documentation.
9681
9682 2010-04-04  Bruno Haible  <bruno@clisp.org>
9683
9684         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9685         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9686
9687 2010-04-04  Bruno Haible  <bruno@clisp.org>
9688
9689         Implement nanosleep for native Windows.
9690         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9691
9692 2010-04-04  Bruno Haible  <bruno@clisp.org>
9693
9694         math: Fix some C++ test errors on Solaris 8.
9695         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9696
9697 2010-04-04  Bruno Haible  <bruno@clisp.org>
9698
9699         math: Fix some C++ test errors on Cygwin.
9700         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9701         truncl): Provide declaration if the system does not have it.
9702         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9703         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9704         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9705         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9706         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9707         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9708         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9709         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9710         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9711         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9712         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9713         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9714         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9715         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9716         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9717         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9719         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9720         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9721         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9722         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9723         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9724
9725 2010-04-04  Bruno Haible  <bruno@clisp.org>
9726
9727         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9728         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9729         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9731         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9732         * m4/isinf.m4 (gl_ISINF): Likewise.
9733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9734
9735 2010-04-04  Bruno Haible  <bruno@clisp.org>
9736
9737         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9738         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9739
9740 2010-04-04  Bruno Haible  <bruno@clisp.org>
9741
9742         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9743         * modules/tmpfile (configure.ac): Update.
9744
9745         tmpfile: Fix C++ test error on mingw.
9746         * lib/stdio.in.h (tmpfile): New declaration.
9747         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9748         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9749         * modules/tmpfile (Depends-on): Add stdio.
9750         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9751         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9752         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9753         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9754         REPLACE_TMPFILE.
9755         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9756
9757 2010-04-04  Bruno Haible  <bruno@clisp.org>
9758
9759         ioctl: Fix C++ test error on mingw.
9760         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9761         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9762         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9763
9764 2010-04-03  Bruno Haible  <bruno@clisp.org>
9765
9766         wcwidth: Fix C++ test error on mingw.
9767         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9769         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9770
9771 2010-04-03  Bruno Haible  <bruno@clisp.org>
9772
9773         nanosleep: Fix C++ test error on mingw.
9774         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9775         * lib/time.in.h (nanosleep): Use modern idiom.
9776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9777         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9778         REPLACE_NANOSLEEP to 1.
9779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9780         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9781
9782 2010-04-03  Bruno Haible  <bruno@clisp.org>
9783
9784         strptime: Fix C++ test error on mingw.
9785         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9786         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9787         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9788         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9790         not REPLACE_STRPTIME.
9791         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9792         REPLACE_STRPTIME.
9793
9794 2010-04-03  Bruno Haible  <bruno@clisp.org>
9795
9796         timegm: Fix C++ test error on mingw.
9797         * lib/time.in.h (timegm): Use modern idiom.
9798         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9799         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9801         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9802
9803 2010-04-03  Bruno Haible  <bruno@clisp.org>
9804
9805         timegm: Assume declaration if function exists.
9806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9807         if it exists. Don't clobber ac_cv_func_timegm.
9808
9809 2010-04-03  Bruno Haible  <bruno@clisp.org>
9810
9811         time_r: Fix C++ test error on mingw.
9812         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9813         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9814         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9816         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9817
9818 2010-04-03  Bruno Haible  <bruno@clisp.org>
9819
9820         time_r: Minor updates.
9821         * modules/time_r (Description): Mention the provided functions.
9822         * lib/time_r.c: Don't include <string.h>.
9823         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9824         * doc/posix-functions/localtime_r.texi: Likewise.
9825
9826 2010-04-03  Bruno Haible  <bruno@clisp.org>
9827
9828         time: Fix regression introduced on 2010-03-08.
9829         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9830         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9831
9832 2010-04-03  Jim Meyering  <meyering@redhat.com>
9833
9834         maint.mk: don't silently disable project-specific syntax-check rules
9835         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9836         that they need to convert their project-specific syntax-check rules
9837         to use the new _sc_search_regexp.
9838
9839 2010-04-03  Bruno Haible  <bruno@clisp.org>
9840
9841         fchdir: Fix regression introduced on 2010-03-08.
9842         * lib/unistd.in.h (fchdir): Fix declaration.
9843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9845         REPLACE_FCHDIR.
9846         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9847         REPLACE_FCHDIR.
9848
9849 2010-04-03  Bruno Haible  <bruno@clisp.org>
9850
9851         getpagesize: Fix C++ test error on mingw.
9852         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9853         system does not declare the function.
9854         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9855         declared.
9856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9857         HAVE_DECL_GETPAGESIZE.
9858         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9859
9860 2010-04-03  Bruno Haible  <bruno@clisp.org>
9861
9862         stdio: Make C++ tests work on mingw.
9863         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9864         does not declare the function.
9865
9866 2010-04-03  Bruno Haible  <bruno@clisp.org>
9867
9868         ftello: Fix C++ test error on mingw.
9869         * lib/stdio.in.h (ftello): Use modern idiom.
9870         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9871         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9872         is missing and that it needs to be replaced.
9873         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9875         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9876
9877 2010-04-03  Bruno Haible  <bruno@clisp.org>
9878
9879         fseeko: Fix C++ test error on mingw.
9880         * lib/stdio.in.h (fseeko): Use modern idiom.
9881         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9883         is missing and that it needs to be replaced.
9884         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9886         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9887
9888 2010-04-03  Bruno Haible  <bruno@clisp.org>
9889
9890         mkstemp: Fix C++ test error on mingw.
9891         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9893         function is missing and that it needs to be replaced.
9894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9895         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9896
9897 2010-04-03  Bruno Haible  <bruno@clisp.org>
9898
9899         stpncpy: Fix C++ test error on mingw.
9900         * lib/string.in.h (stpncpy): Use modern idiom.
9901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9902         function is missing and that it needs to be replaced.
9903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9904         REPLACE_STPNCPY.
9905         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9906
9907 2010-04-03  Bruno Haible  <bruno@clisp.org>
9908
9909         sys_stat: Fix C++ test error on mingw.
9910         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9911         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9912
9913 2010-04-03  Bruno Haible  <bruno@clisp.org>
9914
9915         pty: Update doc.
9916         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9917
9918 2010-04-03  Bruno Haible  <bruno@clisp.org>
9919
9920         unistd: Fix C++ test error on mingw.
9921         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9922
9923 2010-04-03  Bruno Haible  <bruno@clisp.org>
9924
9925         Update doc regarding mingw.
9926         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9927         * doc/glibc-functions/login_tty.texi: Likewise.
9928         * doc/glibc-functions/forkpty.texi: Likewise.
9929
9930 2010-04-03  Bruno Haible  <bruno@clisp.org>
9931
9932         stdlib: Avoid compilation failure of c-strtold on mingw.
9933         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9934
9935 2010-04-03  Bruno Haible  <bruno@clisp.org>
9936
9937         locale: Make C++ tests work on Cygwin and mingw.
9938         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9939         cannot provide the function.
9940         Reported by Simon Josefsson.
9941
9942 2010-04-03  Bruno Haible  <bruno@clisp.org>
9943
9944         localename: Port to MacOS X 10.6.
9945         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9946         memory layout of the locales in MacOS X 10.6 as well.
9947         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9948
9949 2010-04-02  Bruno Haible  <bruno@clisp.org>
9950
9951         gnulib-tool: Ensure that long-running tests are executed last.
9952         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9953         running tests after the one for the other tests.
9954
9955 2010-04-02  Bruno Haible  <bruno@clisp.org>
9956
9957         gnulib-tool: Ensure the tests in the main directory are executed first.
9958         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9959         start with the current directory.
9960
9961 2010-04-02  Bruno Haible  <bruno@clisp.org>
9962
9963         Tests for module 'havelib', moved here from GNU gettext.
9964         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9965         modifications.
9966         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9967         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9968         with modifications.
9969         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9970         modifications.
9971         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9972         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9973         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9974         with modifications.
9975         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9976         with modifications.
9977         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9978         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9979         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9980         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9981         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9982         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9983         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9984         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9985         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9986         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9987         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9988         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9989         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9990         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9991         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9992         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9993         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9994         with modifications.
9995         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9996         with modifications.
9997         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9998         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9999         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10000         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10001         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10002         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10003         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10004         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10005         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10006         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10007         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10008         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10009         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10010         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10011         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10012         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10013         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10014         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10015         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10016         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10017         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10018         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10019         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10020         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10021         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10022         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10023         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10024         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10025         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10026         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10027         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10028         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10029         * tests/havelib/rpathx/rpathx.c: New file, from
10030         gettext/autoconf-lib-link.
10031         * tests/havelib/rpathx/Makefile.am: New file, from
10032         gettext/autoconf-lib-link.
10033         * tests/havelib/rpathx/configure.ac: New file, from
10034         gettext/autoconf-lib-link with modifications.
10035         * tests/havelib/rpathy/rpathy.c: New file, from
10036         gettext/autoconf-lib-link.
10037         * tests/havelib/rpathy/Makefile.am: New file, from
10038         gettext/autoconf-lib-link.
10039         * tests/havelib/rpathy/configure.ac: New file, from
10040         gettext/autoconf-lib-link with modifications.
10041         * tests/havelib/rpathz/rpathz.c: New file, from
10042         gettext/autoconf-lib-link.
10043         * tests/havelib/rpathz/Makefile.am: New file, from
10044         gettext/autoconf-lib-link.
10045         * tests/havelib/rpathz/configure.ac: New file, from
10046         gettext/autoconf-lib-link with modifications.
10047         * tests/havelib/rpathlx/usex.c: New file, from
10048         gettext/autoconf-lib-link.
10049         * tests/havelib/rpathlx/Makefile.am: New file, from
10050         gettext/autoconf-lib-link.
10051         * tests/havelib/rpathlx/configure.ac: New file, from
10052         gettext/autoconf-lib-link with modifications.
10053         * tests/havelib/rpathly/usey.c: New file, from
10054         gettext/autoconf-lib-link.
10055         * tests/havelib/rpathly/Makefile.am: New file, from
10056         gettext/autoconf-lib-link.
10057         * tests/havelib/rpathly/configure.ac: New file, from
10058         gettext/autoconf-lib-link with modifications.
10059         * tests/havelib/rpathlz/usez.c: New file, from
10060         gettext/autoconf-lib-link.
10061         * tests/havelib/rpathlz/Makefile.am: New file, from
10062         gettext/autoconf-lib-link.
10063         * tests/havelib/rpathlz/configure.ac: New file, from
10064         gettext/autoconf-lib-link with modifications.
10065         * tests/havelib/rpathlyx/usey.c: New file, from
10066         gettext/autoconf-lib-link.
10067         * tests/havelib/rpathlyx/Makefile.am: New file, from
10068         gettext/autoconf-lib-link.
10069         * tests/havelib/rpathlyx/configure.ac: New file, from
10070         gettext/autoconf-lib-link with modifications.
10071         * tests/havelib/rpathlzyx/usez.c: New file, from
10072         gettext/autoconf-lib-link.
10073         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10074         gettext/autoconf-lib-link.
10075         * tests/havelib/rpathlzyx/configure.ac: New file, from
10076         gettext/autoconf-lib-link with modifications.
10077         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10078         with modifications.
10079
10080 2010-04-02  Bruno Haible  <bruno@clisp.org>
10081
10082         gnulib-tool: Create distributed built sources also for the tests.
10083         * gnulib-tool (func_create_testdir): Also generate distributed built
10084         sources in the tests directory.
10085
10086 2010-04-02  Bruno Haible  <bruno@clisp.org>
10087
10088         gnulib-tool: Obey user's environment variables.
10089         * gnulib-tool (func_create_testdir): When creating built sources,
10090         respect the environment variables for autoconf, automake, etc. given by
10091         the user.
10092
10093 2010-04-02  Bruno Haible  <bruno@clisp.org>
10094
10095         gnulib-tool: Provide the value of --m4-base to modules.
10096         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10097         of gl_m4_base.
10098
10099 2010-04-02  Eric Blake  <eblake@redhat.com>
10100
10101         maint.mk: fix some fallout
10102         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10103         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10104
10105 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10106
10107         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10108         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10109         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10110         (sc_cast_of_x_alloc_return_value): Likewise.
10111         (sc_cast_of_alloca_return_value): Likewise.
10112         (sc_space_tab): Likewise.
10113         (sc_prohibit_atoi_atof): Likewise.
10114         (sc_prohibit_magic_number_exit): Likewise.
10115         (sc_error_exit_success): Likewise.
10116         (sc_file_system): Likewise.
10117         (sc_prohibit_have_config_h): Likewise.
10118         (sc_require_config_h): Likewise.
10119         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10120         (sc_obsolete_symbols): Likewise.
10121         (sc_changelog): Likewise.
10122         (sc_program_name): Likewise.
10123         (sc_the_the): Likewise.
10124         (sc_trailing_blank): Likewise.
10125         (sc_two_space_separator_in_usage): Likewise.
10126         (sc_useless_cpp_parens): Likewise.
10127         (sc_GPL_version): Likewise.
10128         (sc_GFDL_version): Likewise.
10129         (sc_texinfo_acronym): Likewise.
10130         (sc_prohibit_cvs_keyword): Likewise.
10131         (sc_prohibit_stat_st_blocks): Likewise.
10132         (sc_prohibit_S_IS_definition): Likewise.
10133         (sc_redundant_const): Likewise.
10134         (sc_makefile_TAB_only_indentation): Likewise.
10135         (sc_m4_quote_check): Likewise.
10136         (sc_makefile_path_separator_check): Likewise.
10137         (sc_copyright_check): Likewise.
10138         (sc_Wundef_boolean): Likewise.
10139         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10140
10141         maint.mk: match 0 or more whitespace-before-function-call '('
10142         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10143         that have zero or two-and-more spaces between the function name
10144         and the open parenthesis.
10145         (sc_error_message_warn_fatal): Likewise.
10146         (sc_error_message_uppercase): Likewise.
10147         (sc_error_message_period): Likewise.
10148
10149 2010-03-31  Eric Blake  <eblake@redhat.com>
10150
10151         maint.mk: check for [ as well as test
10152         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10153         Based on a libvirt report by Matthias Bolte.
10154
10155         gnumakefile: don't squelch _version output
10156         * top/GNUmakefile (_version): Create one-shot dependency rather
10157         than using $(shell) when version must be regenerated.
10158         (_autoreconf): Run verbosely, by default.
10159
10160         sys_time: avoid compiler warnings
10161         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10162         unconditional, fixing regression from 2010-03-29.
10163         Reported by Simon Josefsson.
10164
10165 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10166
10167         maint.mk: s/_header_without_use/_sc_header_without_use/
10168         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10169         (sc_prohibit_assert_without_use): Use the new name.
10170         (sc_prohibit_close_stream_without_use): Likewise.
10171         (sc_prohibit_getopt_without_use): Likewise.
10172         (sc_prohibit_quotearg_without_use): Likewise.
10173         (sc_prohibit_quote_without_use): Likewise.
10174         (sc_prohibit_long_options_without_use): Likewise.
10175         (sc_prohibit_inttostr_without_use): Likewise.
10176         (sc_prohibit_ignore_value_without_use): Likewise.
10177         (sc_prohibit_error_without_use): Likewise.
10178         (sc_prohibit_xalloc_without_use): Likewise.
10179         (sc_prohibit_hash_without_use): Likewise.
10180         (sc_prohibit_hash_pjw_without_use): Likewise.
10181         (sc_prohibit_safe_read_without_use): Likewise.
10182         (sc_prohibit_argmatch_without_use): Likewise.
10183         (sc_prohibit_canonicalize_without_use): Likewise.
10184         (sc_prohibit_root_dev_ino_without_use): Likewise.
10185         (sc_prohibit_openat_without_use): Likewise.
10186         (sc_prohibit_c_ctype_without_use): Likewise.
10187         (sc_prohibit_signal_without_use): Likewise.
10188         (sc_prohibit_intprops_without_use): Likewise.
10189
10190 2010-03-30  Eric Blake  <eblake@redhat.com>
10191
10192         maint: improve module indicators
10193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10194         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10195         columns, and avoid extra macro expansion.
10196
10197         fdopendir: work around FreeBSD bug
10198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10200         * modules/dirent (Makefile.am): Substitute it.
10201         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10202         declaration.
10203         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10204         fix.
10205         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10206
10207 2010-03-29  Bruno Haible  <bruno@clisp.org>
10208
10209         Emit #pragma system_header after the inclusion guard, not before.
10210         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10211         guard that spans the entire file, not before. This enables an
10212         optimization in GCC's preprocessor.
10213         * lib/ctype.in.h: Likewise.
10214         * lib/dirent.in.h: Likewise.
10215         * lib/errno.in.h: Likewise.
10216         * lib/float.in.h: Likewise.
10217         * lib/getopt.in.h: Likewise.
10218         * lib/iconv.in.h: Likewise.
10219         * lib/langinfo.in.h: Likewise.
10220         * lib/locale.in.h: Likewise.
10221         * lib/math.in.h: Likewise.
10222         * lib/netdb.in.h: Likewise.
10223         * lib/netinet_in.in.h: Likewise.
10224         * lib/pty.in.h: Likewise.
10225         * lib/sched.in.h: Likewise.
10226         * lib/se-selinux.in.h: Likewise.
10227         * lib/search.in.h: Likewise.
10228         * lib/spawn.in.h: Likewise.
10229         * lib/stdarg.in.h: Likewise.
10230         * lib/stdint.in.h: Likewise.
10231         * lib/string.in.h: Likewise.
10232         * lib/strings.in.h: Likewise.
10233         * lib/sys_file.in.h: Likewise.
10234         * lib/sys_ioctl.in.h: Likewise.
10235         * lib/sys_time.in.h: Likewise.
10236         * lib/sys_times.in.h: Likewise.
10237         * lib/sys_utsname.in.h: Likewise.
10238         * lib/sys_wait.in.h: Likewise.
10239         * lib/sysexits.in.h: Likewise.
10240         * lib/wctype.in.h: Likewise.
10241
10242 2010-03-28  James Youngman  <jay@gnu.org>
10243
10244         save-cwd: don't leak a file descriptor when the caller execs.
10245         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10246         saved file descriptor.
10247         * modules/save-cwd (Depends-on): Depend on cloexec.
10248
10249 2010-03-29  Bruno Haible  <bruno@clisp.org>
10250
10251         Remove vestiges of fts-lgpl module.
10252         * lib/fts_.h: Assume GNULIB_FTS is 1.
10253         * lib/fts.c: Likewise.
10254         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10255
10256 2010-03-28  Bruno Haible  <bruno@clisp.org>
10257
10258         Fix definition of tests witness macro.
10259         * gnulib-tool (func_import): Fix definition of witness macro.
10260
10261 2010-03-28  Bruno Haible  <bruno@clisp.org>
10262
10263         Fix ioctl's protoype on glibc systems.
10264         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10265         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10266         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10267         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10268         signature. If not, arrange to replace the ioctl function.
10269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10270         REPLACE_IOCTL.
10271         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10272         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10273         Reported by Ludovic Courtès <ludo@gnu.org>.
10274
10275 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10276
10277         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10278         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10279         made it so grep -r --include=GLOB* ... did not work.
10280
10281 2010-03-26  Jim Meyering  <meyering@redhat.com>
10282             Eric Blake  <eblake@redhat.com>
10283
10284         maint.mk: prohibit use of test's -o and -a operators
10285         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10286
10287 2010-03-28  Bruno Haible  <bruno@clisp.org>
10288
10289         Remove unused GNULIB_XYZ macro definitions.
10290         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10291         invocation.
10292
10293 2010-03-28  Bruno Haible  <bruno@clisp.org>
10294
10295         Mark privileged tests modules.
10296         * modules/idpriv-drop-tests (Status): New section.
10297         * modules/idpriv-droptemp-tests (Status): New section.
10298
10299 2010-03-28  Bruno Haible  <bruno@clisp.org>
10300
10301         Split C++ tests into separate tests modules.
10302         * modules/dirent-c++-tests: New file, extracted from
10303         modules/dirent-tests.
10304         * modules/dirent-tests: Depend on it.
10305         * modules/fcntl-h-c++-tests: New file, extracted from
10306         modules/fcntl-h-tests.
10307         * modules/fcntl-h-tests: Depend on it.
10308         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10309         * modules/glob-tests: Depend on it.
10310         * modules/iconv-h-c++-tests: New file, extracted from
10311         modules/iconv-h-tests.
10312         * modules/iconv-h-tests: Depend on it.
10313         * modules/langinfo-c++-tests: New file, extracted from
10314         modules/langinfo-tests.
10315         * modules/langinfo-tests: Depend on it.
10316         * modules/locale-c++-tests: New file, extracted from
10317         modules/locale-tests.
10318         * modules/locale-tests: Depend on it.
10319         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10320         * modules/math-tests: Depend on it.
10321         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10322         * modules/pty-tests: Depend on it.
10323         * modules/search-c++-tests: New file, extracted from
10324         modules/search-tests.
10325         * modules/search-tests: Depend on it.
10326         * modules/signal-c++-tests: New file, extracted from
10327         modules/signal-tests.
10328         * modules/signal-tests: Depend on it.
10329         * modules/spawn-c++-tests: New file, extracted from
10330         modules/spawn-tests.
10331         * modules/spawn-tests: Depend on it.
10332         * modules/stdio-c++-tests: New file, extracted from
10333         modules/stdio-tests.
10334         * modules/stdio-tests: Depend on it.
10335         * modules/stdlib-c++-tests: New file, extracted from
10336         modules/stdlib-tests.
10337         * modules/stdlib-tests: Depend on it.
10338         * modules/string-c++-tests: New file, extracted from
10339         modules/string-tests.
10340         * modules/string-tests: Depend on it.
10341         * modules/sys_ioctl-c++-tests: New file, extracted from
10342         modules/sys_ioctl-tests.
10343         * modules/sys_ioctl-tests: Depend on it.
10344         * modules/sys_select-c++-tests: New file, extracted from
10345         modules/sys_select-tests.
10346         * modules/sys_select-tests: Depend on it.
10347         * modules/sys_socket-c++-tests: New file, extracted from
10348         modules/sys_socket-tests.
10349         * modules/sys_socket-tests: Depend on it.
10350         * modules/sys_stat-c++-tests: New file, extracted from
10351         modules/sys_stat-tests.
10352         * modules/sys_stat-tests: Depend on it.
10353         * modules/sys_time-c++-tests: New file, extracted from
10354         modules/sys_time-tests.
10355         * modules/sys_time-tests: Depend on it.
10356         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10357         * modules/time-tests: Depend on it.
10358         * modules/unistd-c++-tests: New file, extracted from
10359         modules/unistd-tests.
10360         * modules/unistd-tests: Depend on it.
10361         * modules/wchar-c++-tests: New file, extracted from
10362         modules/wchar-tests.
10363         * modules/wchar-tests: Depend on it.
10364         * modules/wctype-c++-tests: New file, extracted from
10365         modules/wctype-tests.
10366         * modules/wctype-tests: Depend on it.
10367         Reported by Simon Josefsson.
10368
10369 2010-03-28  Bruno Haible  <bruno@clisp.org>
10370
10371         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10372         * gnulib-tool (func_exists_module): New function, extracted from
10373         func_verify_module.
10374         (func_verify_module): Use it.
10375         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10376         'foo' only if 'foo' exists.
10377         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10378         module.
10379
10380 2010-03-28  Bruno Haible  <bruno@clisp.org>
10381
10382         gnulib-tool: Add support for special categories of tests.
10383         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10384         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10385         (func_usage): Document them.
10386         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10387         inc_unportable_tests, inc_all_tests): New variables.
10388         (func_acceptable): Consider these variables.
10389         (func_modules_transitive_closure): Make it work when the 'Status' field
10390         consists of multiple words.
10391         (func_import): Store and restore the values of inc_cxx_tests,
10392         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10393         inc_all_tests in gnulib-comp.m4.
10394         (func_create_testdir): Set inc_all_tests to true.
10395         * doc/gnulib.texi (Extra tests modules): New section.
10396         Suggested by Jim Meyering.
10397
10398 2010-03-28  Bruno Haible  <bruno@clisp.org>
10399
10400         ansi-c++-opt: Allow turning off the C++ build by default.
10401         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10402         gl_CXX_CHOICE_DEFAULT_NO is defined.
10403         Requested by Eric Blake.
10404
10405 2010-03-28  Bruno Haible  <bruno@clisp.org>
10406
10407         unistd: Avoid #define replacements in C++ mode.
10408         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10409         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10410         setsockopt, shutdown, select): In C++, attach a warning to the function
10411         if possible, rather than #defining the symbol to a dysfunctional alias.
10412         Reported by John W. Eaton <jwe@gnu.org>.
10413
10414 2010-03-28  Bruno Haible  <bruno@clisp.org>
10415
10416         Fix link errors on mingw.
10417         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10418         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10419         $(LIBSOCKET).
10420         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10421         $(LIBSOCKET).
10422
10423 2010-03-28  Bruno Haible  <bruno@clisp.org>
10424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10425
10426         lib-ignore: Determine different options for different compilers.
10427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10428         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10429         Add comments.
10430         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10431         * NEWS: Mention the change.
10432
10433 2010-03-27  Bruno Haible  <bruno@clisp.org>
10434
10435         Remove unused GNULIB_XYZ macro definitions.
10436         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10437         * modules/fseek (configure.ac): Likewise.
10438         * modules/ioctl (configure.ac): Likewise.
10439         * modules/open (configure.ac): Likewise.
10440         * modules/stdlib-safer (configure.ac): Likewise.
10441
10442 2010-03-27  Bruno Haible  <bruno@clisp.org>
10443
10444         Add a remark about certain modules.
10445         * modules/malloc (Comment): New section.
10446         * modules/realloc (Comment): Likewise.
10447         * modules/sigpipe (Comment): Likewise.
10448
10449 2010-03-27  Bruno Haible  <bruno@clisp.org>
10450
10451         Resolve conflict between the two kinds of module indicators.
10452         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10453         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10454         * modules/canonicalize (configure.ac): Invoke
10455         gl_MODULE_INDICATOR_FOR_TESTS.
10456         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10457         GNULIB_XYZ.
10458         * tests/test-dirent-c++.cc: Likewise.
10459         * tests/test-dirent-safer.c: Likewise.
10460         * tests/test-dup2.c: Likewise.
10461         * tests/test-fchdir.c: Likewise.
10462         * tests/test-fcntl-h-c++.cc: Likewise.
10463         * tests/test-getopt.c: Likewise.
10464         * tests/test-getopt.h: Likewise.
10465         * tests/test-langinfo-c++.cc: Likewise.
10466         * tests/test-locale-c++.cc: Likewise.
10467         * tests/test-math-c++.cc: Likewise.
10468         * tests/test-pty-c++.cc: Likewise.
10469         * tests/test-search-c++.cc: Likewise.
10470         * tests/test-signal-c++.cc: Likewise.
10471         * tests/test-spawn-c++.cc: Likewise.
10472         * tests/test-stdio-c++.cc: Likewise.
10473         * tests/test-stdlib-c++.cc: Likewise.
10474         * tests/test-string-c++.cc: Likewise.
10475         * tests/test-sys_ioctl-c++.cc: Likewise.
10476         * tests/test-sys_select-c++.cc: Likewise.
10477         * tests/test-sys_socket-c++.cc: Likewise.
10478         * tests/test-sys_stat-c++.cc: Likewise.
10479         * tests/test-sys_time-c++.cc: Likewise.
10480         * tests/test-time-c++.cc: Likewise.
10481         * tests/test-unistd-c++.cc: Likewise.
10482         * tests/test-wchar-c++.cc: Likewise.
10483         * tests/uninorm/test-u8-nfc.c: Likewise.
10484         * tests/uninorm/test-u8-nfd.c: Likewise.
10485         * tests/uninorm/test-u8-nfkc.c: Likewise.
10486         * tests/uninorm/test-u8-nfkd.c: Likewise.
10487         * tests/uninorm/test-u16-nfc.c: Likewise.
10488         * tests/uninorm/test-u16-nfd.c: Likewise.
10489         * tests/uninorm/test-u16-nfkc.c: Likewise.
10490         * tests/uninorm/test-u16-nfkd.c: Likewise.
10491         * tests/uninorm/test-u32-nfc.c: Likewise.
10492         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10493         * tests/uninorm/test-u32-nfd.c: Likewise.
10494         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10495         * tests/uninorm/test-u32-nfkc.c: Likewise.
10496         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10497         * tests/uninorm/test-u32-nfkd.c: Likewise.
10498         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10499         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10500
10501 2010-03-27  Bruno Haible  <bruno@clisp.org>
10502
10503         Distinguish two kinds of module indicators.
10504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10505         gl_MODULE_INDICATOR.
10506         (gl_MODULE_INDICATOR): New macro.
10507         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10508         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10509         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10510         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10511         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10512         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10513         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10514         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10515         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10521         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10523         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10524         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10525         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10526         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10527         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10528         * modules/cloexec (configure.ac): Likewise.
10529         * modules/getopt-gnu (configure.ac): Likewise.
10530         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10531         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10532         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10533         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10534
10535 2010-03-27  Bruno Haible  <bruno@clisp.org>
10536
10537         New module description field 'Comment'.
10538         * gnulib-tool: New option --extract-comment.
10539         (func_usage): Document it.
10540         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10541         (func_get_comment): New function.
10542         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10543
10544 2010-03-27  Bruno Haible  <bruno@clisp.org>
10545
10546         Addendum to 2010-02-07 commit.
10547         * gnulib-tool (func_usage): Document --extract-applicability option.
10548
10549 2010-03-27  Bruno Haible  <bruno@clisp.org>
10550
10551         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10552         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10553         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10554         rather than link errors.
10555
10556 2010-03-27  Bruno Haible  <bruno@clisp.org>
10557
10558         Avoid side effects from tests-related modules on the compilation of lib.
10559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10560         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10561         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10562         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10563         macro.
10564         (func_import): Define a witness macro. Assign it a value that depends
10565         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10566         tests-related modules.
10567         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10568         Reported by Jim Meyering.
10569
10570 2010-03-27  Bruno Haible  <bruno@clisp.org>
10571
10572         Factorize common .m4 code.
10573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10574         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10575         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10578         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10579         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10580         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10581         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10582         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10583         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10588         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10589         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10590         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10592         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10594         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10595         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10597         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10598         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10599         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10600         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10601         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10602         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10603         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10604         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10605
10606 2010-03-27  Bruno Haible  <bruno@clisp.org>
10607
10608         Fix a compilation error on Cygwin with g++ >= 4.3.
10609         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10610         if it is undefined or if we alias it to chmod.
10611         (lstat): Don't warn about the use of this function if it is undefined
10612         or if we alias it to stat.
10613         Reported by Simon Josefsson.
10614
10615 2010-03-27  Bruno Haible  <bruno@clisp.org>
10616
10617         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10618         * modules/getlogin (configure.ac): Update.
10619
10620         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10621         * modules/getlogin_r (configure.ac): Update.
10622
10623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10625         * modules/inet_ntop (configure.ac): Update.
10626
10627         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10628         * modules/inet_pton (configure.ac): Update.
10629
10630         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10631         * modules/mbslen (configure.ac): Update.
10632
10633         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10634         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10635         * modules/forkpty (configure.ac): Update.
10636         * modules/openpty (configure.ac): Update.
10637
10638 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10639
10640         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10641         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10642
10643 2010-03-25  Eric Blake  <eblake@redhat.com>
10644
10645         maint: use pragma consistently across replacement headers
10646         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10647         * lib/dirent.in.h (system_header): Likewise.
10648         * lib/errno.in.h (system_header): Likewise.
10649         * lib/float.in.h (system_header): Likewise.
10650         * lib/getopt.in.h (system_header): Likewise.
10651         * lib/iconv.in.h (system_header): Likewise.
10652         * lib/inttypes.in.h (system_header): Likewise.
10653         * lib/langinfo.in.h (system_header): Likewise.
10654         * lib/locale.in.h (system_header): Likewise.
10655         * lib/math.in.h (system_header): Likewise.
10656         * lib/netdb.in.h (system_header): Likewise.
10657         * lib/netinet_in.in.h (system_header): Likewise.
10658         * lib/pty.in.h (system_header): Likewise.
10659         * lib/sched.in.h (system_header): Likewise.
10660         * lib/se-selinux.in.h (system_header): Likewise.
10661         * lib/search.in.h (system_header): Likewise.
10662         * lib/spawn.in.h (system_header): Likewise.
10663         * lib/stdarg.in.h (system_header): Likewise.
10664         * lib/stdint.in.h (system_header): Likewise.
10665         * lib/string.in.h (system_header): Likewise.
10666         * lib/strings.in.h (system_header): Likewise.
10667         * lib/sys_file.in.h (system_header): Likewise.
10668         * lib/sys_ioctl.in.h (system_header): Likewise.
10669         * lib/sys_socket.in.h (system_header): Likewise.
10670         * lib/sys_times.in.h (system_header): Likewise.
10671         * lib/sys_utsname.in.h (system_header): Likewise.
10672         * lib/sys_wait.in.h (system_header): Likewise.
10673         * lib/sysexits.in.h (system_header): Likewise.
10674         * lib/unistd.in.h (system_header): Likewise.
10675         * lib/wctype.in.h (system_header): Likewise.
10676
10677         arpa/inet: fix mingw compilation warning
10678         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10679         Reported by Matthew Bolte.
10680
10681 2010-03-25  Bruno Haible  <bruno@clisp.org>
10682
10683         Avoid collision between gnulib wrapper and libintl wrapper.
10684         * lib/printf.c (printf): Don't define if a printf wrapper is already
10685         defined in intl/printf.c.
10686         Reported by Michel Boaventura <michel@michelboaventura.com>.
10687
10688 2010-03-25  Bruno Haible  <bruno@clisp.org>
10689
10690         Use ANSI C.
10691         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10692
10693 2010-03-25  Bruno Haible  <bruno@clisp.org>
10694
10695         Minor formatting changes.
10696         * lib/acosl.c: Insert space before function argument list.
10697         * lib/argz.c: Likewise.
10698         * lib/asinl.c: Likewise.
10699         * lib/expl.c: Likewise.
10700         * lib/gen-uni-tables.c: Likewise.
10701         * lib/gettext.h: Likewise.
10702         * lib/glthread/lock.h: Likewise.
10703         * lib/tanl.c: Likewise.
10704         * lib/uniname/uniname.c: Likewise.
10705         * tests/test-idpriv-drop.c: Likewise.
10706         * tests/test-idpriv-droptemp.c: Likewise.
10707         * tests/test-lock.c: Likewise.
10708         * tests/test-tls.c: Likewise.
10709         * lib/argp-help.c: Insert space before function-like macro argument
10710         list.
10711         * lib/memcmp.c: Likewise.
10712         * tests/test-base64.c: Likewise.
10713         * lib/localename.c: Insert space before sizeof's argument list.
10714         * lib/safe-alloc.h: Likewise.
10715         * lib/file-set.h: Insert space before macro argument list.
10716         * tests/test-argp.c: Likewise.
10717         * lib/argp-namefrob.h: Insert space before function parameter list.
10718         * lib/getaddrinfo.c: Likewise.
10719         * lib/netdb.in.h: Likewise.
10720         * lib/parse-duration.h: Likewise.
10721         * lib/parse-duration.c: Likewise.
10722         * lib/poll.c: Likewise.
10723         * lib/select.c: Likewise.
10724         * lib/trim.h: Likewise.
10725         * tests/test-usleep.c: Likewise.
10726         * lib/ldexpl.c: Insert space before function parameter list and before
10727         function argument list.
10728         * lib/logl.c: Likewise.
10729         * lib/sqrtl.c: Likewise.
10730         * lib/trim.c: Likewise.
10731         * lib/cosl.c: Use GNU style indentation. Insert space before function
10732         argument list.
10733         * lib/sinl.c: Likewise.
10734         * lib/tsearch.c: Insert space after 'for'.
10735         Reported by Jim Meyering.
10736
10737 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10738
10739         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10740         config header before grepping, as it's not present before
10741         autoreconf/configure are run.  Reported by Simon Josefsson.
10742
10743 2010-03-23  Bruno Haible  <bruno@clisp.org>
10744
10745         pt_chown: Make it work with automake < 1.11.
10746         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10747         Reported by Simon Josefsson.
10748
10749 2010-03-23  Bruno Haible  <bruno@clisp.org>
10750
10751         pt_chown: Don't depend on GPLed modules.
10752         * lib/pt_chown.c: Don't include idpriv.h.
10753         (main): Don't drop privileges.
10754         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10755         Reported by Simon Josefsson.
10756
10757 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10758
10759         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10760         suggestions from karl@freefriends.org (Karl Berry).
10761
10762 2010-03-22  Eric Blake  <eblake@redhat.com>
10763
10764         gethostname: further tweaks
10765         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10766         are overriding gethostname.
10767         Suggested by Bruno Haible.
10768
10769 2010-03-21  Bruno Haible  <bruno@clisp.org>
10770
10771         Fix comments.
10772         * lib/forkpty.c (rpl_forkpty): Fix comment.
10773         * lib/openpty.c (rpl_openpty): Likewise.
10774         Reported by Eric Blake.
10775
10776 2010-03-22  Eric Blake  <eblake@redhat.com>
10777
10778         gethostname: fix build on mingw
10779         * lib/unistd.in.h (includes): Work around fact that mingw
10780         <winsock2.h> re-includes <unistd.h>, by avoiding any
10781         redeclarations if we are being included by <winsock2.h>.
10782         Reported by Matthias Bolte.
10783
10784 2010-03-21  Bruno Haible  <bruno@clisp.org>
10785
10786         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10787         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10788         modifications.
10789         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10790         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10791         provide the replacement.
10792         * modules/forkpty (Depends-on): Add openpty, login_tty.
10793         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10794         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10795         * doc/glibc-functions/forkpty.texi: More supported platforms.
10796         * config/srclist.txt: Add forkpty.c (commented).
10797
10798 2010-03-21  Bruno Haible  <bruno@clisp.org>
10799
10800         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10801         (Makefile.am): Verify that PTY_LIB is defined.
10802
10803         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10804
10805 2010-03-21  Bruno Haible  <bruno@clisp.org>
10806
10807         Tests for module 'login_tty'.
10808         * modules/login_tty-tests: New file.
10809         * tests/test-login_tty.c: New file.
10810
10811         New module 'login_tty'.
10812         * lib/login_tty.c: New file.
10813         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10814         * modules/login_tty: New file.
10815         * doc/glibc-functions/login_tty.texi: Mention the new module.
10816
10817 2010-03-21  Bruno Haible  <bruno@clisp.org>
10818
10819         login_tty: Documentation.
10820         * doc/glibc-functions/login_tty.texi: New file.
10821         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10822
10823 2010-03-21  Bruno Haible  <bruno@clisp.org>
10824
10825         pty: Consistent macro naming.
10826         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10827         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10828         * modules/pty (configure.ac): Update.
10829
10830 2010-03-21  Bruno Haible  <bruno@clisp.org>
10831
10832         Tests for openpty: Make stricter.
10833         * tests/test-openpty.c (main): Add test of canonical processing and
10834         erase.
10835         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10836
10837         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10838         * lib/openpty.c (openpty): New replacement function.
10839         * lib/pty.in.h: Include <termios.h>.
10840         (openpty): Update declaration. Add comments.
10841         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10842         is not declared, arrange to provide the replacement. Check for _getpty
10843         and posix_openpt.
10844         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10845         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10846         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10847         * modules/pty-tests (test_pty_c___LDADD): New variable.
10848         * doc/glibc-functions/openpty.texi: More supported platforms.
10849
10850 2010-03-21  Bruno Haible  <bruno@clisp.org>
10851
10852         setenv: Tweaks.
10853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10854         the test program.
10855         * doc/posix-functions/setenv.texi: Update platforms list.
10856
10857 2010-03-21  Bruno Haible  <bruno@clisp.org>
10858
10859         New module 'unlockpt'.
10860         * lib/unlockpt.c: New file, from glibc with modifications.
10861         * m4/unlockpt.m4: New file.
10862         * modules/unlockpt: New file.
10863         * lib/stdlib.in.h (unlockpt): New declaration.
10864         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10865         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10866         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10867         HAVE_UNLOCKPT.
10868         * doc/posix-functions/unlockpt.texi: Mention the new module.
10869         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10870         * config/srclist.txt: Add unlockpt.c (commented).
10871
10872 2010-03-21  Jim Meyering  <meyering@redhat.com>
10873
10874         maint.mk: prohibit inclusion of "intprops.h" without use
10875         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10876
10877 2010-03-21  Bruno Haible  <bruno@clisp.org>
10878
10879         New module 'grantpt'.
10880         * lib/grantpt.c: New file, from glibc with modifications.
10881         * m4/grantpt.m4: New file.
10882         * modules/grantpt: New file.
10883         * lib/stdlib.in.h (grantpt): New declaration.
10884         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10885         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10886         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10887         HAVE_GRANTPT.
10888         * doc/posix-functions/grantpt.texi: Mention the new module.
10889         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10890         * config/srclist.txt: Add grantpt.c (commented).
10891
10892 2010-03-21  Bruno Haible  <bruno@clisp.org>
10893
10894         New module 'pt_chown'.
10895         * lib/pt_chown.c: New file, from glibc with modifications.
10896         * lib/pty-private.h: New file, from glibc with modifications.
10897         * modules/pt_chown: New file.
10898         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10899
10900 2010-03-21  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'ptsname'.
10903         * modules/ptsname-tests: New file.
10904         * tests/test-ptsname.c: New file.
10905
10906         New module 'ptsname'.
10907         * lib/ptsname.c: New file, from glibc with modifications.
10908         * m4/ptsname.m4: New file.
10909         * modules/ptsname: New file.
10910         * lib/stdlib.in.h (ptsname): New declaration.
10911         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10912         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10913         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10914         HAVE_PTSNAME.
10915         * doc/posix-functions/ptsname.texi: Mention the new module.
10916         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10917         * config/srclist.txt: Add ptsname.c (commented).
10918
10919 2010-03-21  Bruno Haible  <bruno@clisp.org>
10920
10921         Tests for module 'ttyname_r'.
10922         * modules/ttyname_r-tests: New file.
10923         * tests/test-ttyname_r.c: New file.
10924
10925         New module 'ttyname_r'.
10926         * lib/ttyname_r.c: New file.
10927         * m4/ttyname_r.m4: New file.
10928         * modules/ttyname_r: New file.
10929         * lib/unistd.in.h (ttyname_r): New declaration.
10930         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10932         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10933         HAVE_TTYNAME_R.
10934         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10935         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10936
10937 2010-03-20  Bruno Haible  <bruno@clisp.org>
10938
10939         signal: Undefine macro definitions in C++ mode.
10940         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10941         sigfillset): Undefine macro definitions from the system header in C++
10942         mode.
10943         Reported by John W. Eaton <jwe@gnu.org>.
10944
10945 2010-03-20  Bruno Haible  <bruno@clisp.org>
10946
10947         Ensure no #include statements inside extern "C" { ... }.
10948         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10949         contain #include statements.
10950         * lib/time.in.h: Likewise.
10951
10952 2010-03-20  Bruno Haible  <bruno@clisp.org>
10953
10954         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10955         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10956         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10957         Reported by John W. Eaton <jwe@gnu.org>.
10958
10959 2010-03-20  Bruno Haible  <bruno@clisp.org>
10960
10961         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10962         Reported by Jim Meyering.
10963
10964 2010-03-20  Bruno Haible  <bruno@clisp.org>
10965
10966         pipe: Set errno upon failure.
10967         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10968         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10969         errno value in error message.
10970
10971 2010-03-20  Bruno Haible  <bruno@clisp.org>
10972             Jim Meyering  <meyering@redhat.com>
10973
10974         lchown: Avoid "unused variable" warning.
10975         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10976
10977 2010-03-20  Bruno Haible  <bruno@clisp.org>
10978
10979         Work around unlink() bug on MacOS X 10.5.6.
10980         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10981         attempting to unlink a parent directory.
10982         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10983         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10984         activate for the replacement function.
10985         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10986
10987 2010-03-20  Bruno Haible  <bruno@clisp.org>
10988
10989         Fix link errors on Solaris 8.
10990         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10991         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10992
10993 2010-03-19  Jim Meyering  <meyering@redhat.com>
10994
10995         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10996         The _LIBC implementation of build_range_exp correctly honors the
10997         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10998         However, the non-_LIBC implementation would ignore that syntax-bit
10999         flag and return REG_ERANGE unconditionally.
11000         This change makes it honor that flag.
11001         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11002         Make two pointer parameters "const".
11003         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11004         (parse_bracket_exp): Update caller.
11005
11006         regex.m4: correct the reversed range endpoint ([b-a]) test
11007         * m4/regex.m4: When requiring that [b-a] evoke failure,
11008         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11009         test pass once again for x86-based systems.
11010
11011 2010-03-19  Bruno Haible  <bruno@clisp.org>
11012
11013         scandir: Fix link error on Solaris 8.
11014         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11015         macros.
11016
11017 2010-03-19  Bruno Haible  <bruno@clisp.org>
11018
11019         getusershell: Fix documentation.
11020         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11021         module.
11022         * doc/glibc-functions/setusershell.texi: Likewise.
11023
11024         getusershell: Provide declaration, missing on Solaris 9.
11025         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11026         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11027         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11028         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11030         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11032         HAVE_GETUSERSHELL.
11033         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11034
11035 2010-03-19  Bruno Haible  <bruno@clisp.org>
11036
11037         wctype: Provide iswblank function.
11038         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11039         exists and is fine.
11040         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11041         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11042         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11043         * doc/posix-functions/iswblank.texi: Update.
11044
11045 2010-03-19  Bruno Haible  <bruno@clisp.org>
11046
11047         Tests of module 'pty' in C++ mode.
11048         * modules/pty-tests: New file.
11049         * tests/test-pty-c++.cc: New file.
11050         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11051
11052 2010-03-19  Eric Blake  <eblake@redhat.com>
11053
11054         logb: fix documentation
11055         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11056         1.5 declaration bug.
11057
11058         forkpty, openpty: prefer glibc's const-safe prototype
11059         * lib/forkpty.c (rpl_forkpty): New file.
11060         * lib/openpty.c (rpl_openpty): Likewise.
11061         * modules/forkpty (Files): Distribute it.
11062         * modules/openpty (Files): Likewise.
11063         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11064         check...
11065         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11066         replacement for for non-const BSD signature.
11067         * modules/pty (Makefile.am): Substitute witnesses.
11068         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11069         * tests/test-forkpty.c: Update signature check.
11070         * tests/test-openpty.c: Likewise.
11071         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11072         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11073
11074         forkpty, openpty: split functions into new modules
11075         * modules/pty (Makefile.am): Substitute new witnesses.
11076         (Libraries): Move library detection...
11077         * modules/forkpty: ...into new module.
11078         * modules/openpty: Another new module.
11079         * modules/pty-tests: Rename and split...
11080         * modules/forkpty-tests: ...to this...
11081         * modules/openpty-tests: ...and this.
11082         * tests/test-pty.c: Rename and split...
11083         * tests/test-forkpty.c: ...to this...
11084         * tests/test-openpty.c: ...and this.
11085         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11086         (gl_PTY): Split library searching...
11087         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11088         (gl_FORKPTY, gl_OPENPTY): New macros.
11089         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11090         * NEWS: Mention the split.
11091         * MODULES.html.sh (Misc): Document the modules.
11092         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11093         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11094
11095         pty: improve replacement header
11096         * lib/pty.in.h: New file.
11097         * modules/pty (Files): Ship it.
11098         (Makefile.am): Always build replacement.
11099         * m4/pty.m4: Rename...
11100         * m4/pty_h.m4: ...to this.
11101         (gl_PTY): Modernize setting of witness macros; update check of
11102         forkpty to take proper advantage of cache.
11103         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11104
11105         getopt: avoid compiler warning
11106         * lib/getopt.c (attribute_hidden): Remove unused macro.
11107
11108 2010-03-18  Bruno Haible  <bruno@clisp.org>
11109
11110         Fix link errors on Solaris 8.
11111         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11112         * modules/search-tests (test_search_c___LDADD): Likewise.
11113         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11114         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11115         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11116         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11117         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11118         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11119         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11120
11121 2010-03-18  Bruno Haible  <bruno@clisp.org>
11122
11123         Fix bug introduced on 2010-03-14.
11124         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11125         (gl_SPAWN_H): Require it.
11126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11127         Reported by Simon Josefsson.
11128
11129 2010-03-18  Bruno Haible  <bruno@clisp.org>
11130
11131         Fix typo introduced on 2009-12-31.
11132         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11133         posix_spawn_file_actions_adddup2.
11134
11135 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11136         and Eric Blake  <eblake@redhat.com>
11137
11138         test-vc-list-files-git: make more robust
11139         * tests/test-vc-list-files-git.sh: Unset problematic environment
11140         variables.  Chain commands together.
11141
11142 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11143
11144         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11145         `AC_CHECK_DECL' invocation.
11146
11147 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11148
11149         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11150         appears before executable statements. Suggested by Petr Sumbera
11151         <Petr.Sumbera@Sun.COM>.
11152
11153 2010-03-14  Bruno Haible  <bruno@clisp.org>
11154
11155         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11156         portability problems. Instead use a simpler test.
11157         (main): Check that invalid arguments are rejected only on Linux.
11158
11159 2010-03-14  Bruno Haible  <bruno@clisp.org>
11160
11161         Fix bug introduced on 2009-12-31.
11162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11163         gl_PREREQ_SYS_H_WINSOCK2 always.
11164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11165         SYS_SOCKET_H variable.
11166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11167         Update comments.
11168         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11170         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11173
11174 2010-03-14  Bruno Haible  <bruno@clisp.org>
11175
11176         Fix values returned by sinl, cosl.
11177         * lib/trigl.h: Add specification comments.
11178         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11179         that combines the values from the precomputed table with the values of
11180         the Chebyshev polynomials.
11181
11182 2010-03-14  Bruno Haible  <bruno@clisp.org>
11183
11184         Fix compilation error when modules 'posix_spawn[p]' are not used.
11185         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11187
11188 2010-03-14  Bruno Haible  <bruno@clisp.org>
11189
11190         Fix compilation error on mingw when module 'time_r' is not used.
11191         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11192         is 1.
11193         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11194         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11195         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11196         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11197
11198 2010-03-14  Bruno Haible  <bruno@clisp.org>
11199
11200         Fix compilation error with Sun C.
11201         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11202         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11203         instead of GCC specific ULONG_LONG_MAX.
11204         * lib/xstrtoll.c: Likewise.
11205         * lib/xstrtoull.c: Likewise.
11206
11207 2010-03-13  Bruno Haible  <bruno@clisp.org>
11208
11209         Allow the user to disable C++ code and tests.
11210         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11211         (gl_PROG_ANSI_CXX): Require it.
11212
11213 2010-03-13  Bruno Haible  <bruno@clisp.org>
11214
11215         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11216         cases.
11217
11218 2010-03-13  Bruno Haible  <bruno@clisp.org>
11219
11220         Test that gnulib does not break the standard C++ headers.
11221         * tests/test-locale-c++2.cc: New file.
11222         * modules/locale-tests (Files): Add it.
11223         (Makefile.am): Compile it for test-locale-c++.
11224         * tests/test-math-c++2.cc: New file.
11225         * modules/math-tests (Files): Add it.
11226         (Makefile.am): Compile it for test-math-c++.
11227         * tests/test-signal-c++2.cc: New file.
11228         * modules/signal-tests (Files): Add it.
11229         (Makefile.am): Compile it for test-signal-c++.
11230         * tests/test-stdio-c++2.cc: New file.
11231         * modules/stdio-tests (Files): Add it.
11232         (Makefile.am): Compile it for test-stdio-c++.
11233         * tests/test-stdlib-c++2.cc: New file.
11234         * modules/stdlib-tests (Files): Add it.
11235         (Makefile.am): Compile it for test-stdlib-c++.
11236         * tests/test-string-c++2.cc: New file.
11237         * modules/string-tests (Files): Add it.
11238         (Makefile.am): Compile it for test-string-c++.
11239         * tests/test-time-c++2.cc: New file.
11240         * modules/time-tests (Files): Add it.
11241         (Makefile.am): Compile it for test-time-c++.
11242         Reported by John W. Eaton <jwe@gnu.org>.
11243
11244 2010-03-13  Bruno Haible  <bruno@clisp.org>
11245
11246         * gnulib-tool (func_usage): Clarify which options are available for
11247         --create-testdir and --create-megatestdir.
11248
11249 2010-03-13  Bruno Haible  <bruno@clisp.org>
11250
11251         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11252         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11253         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11254         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11255         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11256         when appropriate.
11257         Reported by Jim Meyering.
11258
11259 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11260
11261         * gnulib-tool (func_import): Explain origin of code.
11262
11263 2010-03-12  Bruno Haible  <bruno@clisp.org>
11264
11265         Fix problem with automake's definition of CXXLINK.
11266         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11267         Reported by Simon Josefsson and Ludovic Courtès.
11268
11269 2010-03-12  Bruno Haible  <bruno@clisp.org>
11270
11271         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11272         stable releases.
11273
11274 2010-03-11  Bruno Haible  <bruno@clisp.org>
11275
11276         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11277         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11278         whether the system provides one variant or multiple variants of the
11279         function.
11280         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11281         C++ compilers.
11282         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11283         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11284         Reported by Jim Meyering.
11285
11286 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11287
11288         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11289
11290 2010-03-08  Bruno Haible  <bruno@clisp.org>
11291
11292         gnulib-tool: Add support for --libtool in --create-testdir.
11293         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11294         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11295
11296 2010-03-08  Eric Blake  <eblake@redhat.com>
11297
11298         gnulib-tool.texi: mention possibility of git submodule
11299         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11300         submodules.
11301         * doc/.gitignore: Ignore another generated file.
11302
11303 2010-03-08  Karl Berry  <karl@gnu.org>
11304
11305         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11306         of committing gnulib files while skipping others.
11307
11308 2010-03-07  Bruno Haible  <bruno@clisp.org>
11309
11310         Tests of module 'wctype' in C++ mode.
11311         * tests/test-wctype-c++.cc: New file.
11312         * modules/wctype-tests (Files): Add it and tests/signature.h.
11313         (Depends-on): Add ansi-c++-opt.
11314         (Makefile.am): Arrange to compile and run test-wctype-c++.
11315
11316         Tests of module 'wchar' in C++ mode.
11317         * tests/test-wchar-c++.cc: New file.
11318         * modules/wchar-tests (Files): Add it and tests/signature.h.
11319         (Depends-on): Add ansi-c++-opt.
11320         (Makefile.am): Arrange to compile and run test-wchar-c++.
11321         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11322         gl_MODULE_INDICATOR.
11323
11324         Tests of module 'unistd' in C++ mode.
11325         * tests/test-unistd-c++.cc: New file.
11326         * modules/unistd-tests (Files): Add it and tests/signature.h.
11327         (Depends-on): Add ansi-c++-opt.
11328         (Makefile.am): Arrange to compile and run test-unistd-c++.
11329         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11330         gl_MODULE_INDICATOR.
11331
11332         Tests of module 'time' in C++ mode.
11333         * tests/test-time-c++.cc: New file.
11334         * modules/time-tests (Files): Add it and tests/signature.h.
11335         (Depends-on): Add ansi-c++-opt.
11336         (Makefile.am): Arrange to compile and run test-time-c++.
11337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11338
11339         Tests of module 'sys_time' in C++ mode.
11340         * tests/test-sys_time-c++.cc: New file.
11341         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11342         (Depends-on): Add ansi-c++-opt.
11343         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11344         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11345         gl_MODULE_INDICATOR.
11346
11347         Tests of module 'sys_stat' in C++ mode.
11348         * tests/test-sys_stat-c++.cc: New file.
11349         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11350         (Depends-on): Add ansi-c++-opt.
11351         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11352         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11353         gl_MODULE_INDICATOR.
11354
11355         Tests of module 'sys_socket' in C++ mode.
11356         * tests/test-sys_socket-c++.cc: New file.
11357         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11358         (Depends-on): Add ansi-c++-opt.
11359         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11361         gl_MODULE_INDICATOR.
11362
11363         Tests of module 'sys_select' in C++ mode.
11364         * tests/test-sys_select-c++.cc: New file.
11365         * modules/sys_select-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_select-c++.
11368         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11369         gl_MODULE_INDICATOR.
11370
11371         Tests of module 'sys_ioctl' in C++ mode.
11372         * tests/test-sys_ioctl-c++.cc: New file.
11373         * modules/sys_ioctl-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_ioctl-c++.
11376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11377         gl_MODULE_INDICATOR.
11378
11379         Tests of module 'string' in C++ mode.
11380         * tests/test-string-c++.cc: New file.
11381         * modules/string-tests (Files): Add it and tests/signature.h.
11382         (Depends-on): Add ansi-c++-opt.
11383         (Makefile.am): Arrange to compile and run test-string-c++.
11384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11385         gl_MODULE_INDICATOR.
11386
11387         Tests of module 'stdlib' in C++ mode.
11388         * tests/test-stdlib-c++.cc: New file.
11389         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11390         (Depends-on): Add ansi-c++-opt.
11391         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11392         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11393         gl_MODULE_INDICATOR.
11394
11395         Tests of module 'stdio' in C++ mode.
11396         * tests/test-stdio-c++.cc: New file.
11397         * modules/stdio-tests (Files): Add it and tests/signature.h.
11398         (Depends-on): Add ansi-c++-opt.
11399         (Makefile.am): Arrange to compile and run test-stdio-c++.
11400         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11401         gl_MODULE_INDICATOR.
11402
11403         Tests of module 'spawn' in C++ mode.
11404         * tests/test-spawn-c++.cc: New file.
11405         * modules/spawn-tests (Files): Add it and tests/signature.h.
11406         (Depends-on): Add ansi-c++-opt.
11407         (Makefile.am): Arrange to compile and run test-spawn-c++.
11408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11409         gl_MODULE_INDICATOR.
11410
11411         Tests of module 'signal' in C++ mode.
11412         * tests/test-signal-c++.cc: New file.
11413         * modules/signal-tests (Files): Add it and tests/signature.h.
11414         (Depends-on): Add ansi-c++-opt.
11415         (Makefile.am): Arrange to compile and run test-signal-c++.
11416         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11417         gl_MODULE_INDICATOR.
11418
11419         Tests of module 'search' in C++ mode.
11420         * tests/test-search-c++.cc: New file.
11421         * modules/search-tests (Files): Add it and tests/signature.h.
11422         (Depends-on): Add ansi-c++-opt.
11423         (Makefile.am): Arrange to compile and run test-search-c++.
11424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11425         gl_MODULE_INDICATOR.
11426
11427         Tests of module 'math' in C++ mode.
11428         * tests/test-math-c++.cc: New file.
11429         * modules/math-tests (Files): Add it and tests/signature.h.
11430         (Depends-on): Add ansi-c++-opt.
11431         (Makefile.am): Arrange to compile and run test-math-c++.
11432         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11433
11434         Tests of module 'locale' in C++ mode.
11435         * tests/test-locale-c++.cc: New file.
11436         * modules/locale-tests (Files): Add it and tests/signature.h.
11437         (Depends-on): Add ansi-c++-opt.
11438         (Makefile.am): Arrange to compile and run test-locale-c++.
11439         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11440         gl_MODULE_INDICATOR.
11441
11442         Tests of module 'langinfo' in C++ mode.
11443         * tests/test-langinfo-c++.cc: New file.
11444         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11445         (Depends-on): Add ansi-c++-opt.
11446         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11447         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11448         gl_MODULE_INDICATOR.
11449
11450         Tests of module 'iconv-h' in C++ mode.
11451         * tests/test-iconv-h-c++.cc: New file.
11452         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11453         (Depends-on): Add ansi-c++-opt.
11454         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11455
11456         Tests of module 'glob' in C++ mode.
11457         * tests/test-glob-c++.cc: New file.
11458         * modules/glob-tests (Files): Add it.
11459         (Depends-on): Add ansi-c++-opt.
11460         (Makefile.am): Arrange to compile and run test-glob-c++.
11461
11462         Tests of module 'fcntl-h' in C++ mode.
11463         * tests/test-fcntl-h-c++.cc: New file.
11464         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11465         (Depends-on): Add ansi-c++-opt.
11466         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11467         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11468         gl_MODULE_INDICATOR.
11469
11470         Tests of module 'dirent' in C++ mode.
11471         * tests/test-dirent-c++.cc: New file.
11472         * modules/dirent-tests (Files): Add it and tests/signature.h.
11473         (Depends-on): Add ansi-c++-opt.
11474         (Makefile.am): Arrange to compile and run test-dirent-c++.
11475         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11476         gl_MODULE_INDICATOR.
11477
11478         New module 'ansi-c++-opt'.
11479         * modules/ansi-c++-opt: New file.
11480         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11481
11482         Document C++ namespace mode.
11483         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11484
11485         wctype: Avoid #define replacements in C++ mode.
11486         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11487         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11488         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11489         In C++, define a namespaced alias symbol.
11490         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11491         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11492         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11493         rule.
11494
11495         wchar: Avoid #define replacements in C++ mode.
11496         * lib/wchar.in.h: Include c++defs.h.
11497         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11498         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11499         symbol.
11500         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11501         * modules/wchar (Depends-on): Add c++defs.
11502         (Makefile.am): Update wchar.h rule.
11503
11504         unistd: Avoid #define replacements in C++ mode.
11505         * lib/unistd.in.h: Include c++defs.h.
11506         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11507         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11508         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11509         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11510         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11511         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11512         symbol.
11513         (environ): Update.
11514         * modules/unistd (Depends-on): Add c++defs.
11515         (Makefile.am): Update unistd.h rule.
11516
11517         time: Avoid #define replacements in C++ mode.
11518         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11519         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11520         define a namespaced alias symbol.
11521         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11522         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11523         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11524         * modules/time (Depends-on): Add c++defs, warn-on-use.
11525         (Makefile.am): Update time.h rule.
11526         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11527         * modules/nanosleep (configure.ac): Likewise.
11528         * modules/strptime (configure.ac): Likewise.
11529         * modules/timegm (configure.ac): Likewise.
11530
11531         sys_time: Avoid #define replacements in C++ mode.
11532         * lib/sys_time.in.h: Include c++defs.h.
11533         (gettimeofday): In C++, define a namespaced alias symbol.
11534         * modules/sys_time (Depends-on): Add c++defs.
11535         (Makefile.am): Update sys/time.h rule.
11536
11537         sys_stat: Avoid #define replacements in C++ mode.
11538         * lib/sys_stat.in.h: Include c++defs.h.
11539         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11540         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11541         namespaced alias symbol.
11542         In C++, define a namespaced alias symbol.
11543         * modules/sys_stat (Depends-on): Add c++defs.
11544         (Makefile.am): Update sys/stat.h rule.
11545
11546         sys_socket: Avoid #define replacements in C++ mode.
11547         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11548         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11549         definitions also when the system has a <sys/socket.h>.
11550         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11551         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11552         In C++, define a namespaced alias symbol.
11553         * modules/sys_socket (Depends-on): Add c++defs.
11554         (Makefile.am): Update sys/socket.h rule.
11555
11556         sys_select: Avoid #define replacements in C++ mode.
11557         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11558         definitions also when the system has a <sys/select.h>.
11559         (select): In C++, define a namespaced alias symbol.
11560         * modules/sys_select (Depends-on): Add c++defs.
11561         (Makefile.am): Update sys/select.h rule.
11562
11563         sys_ioctl: Avoid #define replacements in C++ mode.
11564         * lib/sys_ioctl.in.h: Include c++defs.h.
11565         (ioctl): In C++, define a namespaced alias symbol.
11566         * modules/sys_ioctl (Depends-on): Add c++defs.
11567         (Makefile.am): Update sys/ioctl.h rule.
11568
11569         string: Avoid #define replacements in C++ mode.
11570         * lib/string.in.h: Include c++defs.h.
11571         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11572         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11573         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11574         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11575         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11576         * modules/string (Depends-on): Add c++defs.
11577         (Makefile.am): Update string.h rule.
11578
11579         stdlib: Avoid #define replacements in C++ mode.
11580         * lib/stdlib.in.h: Include c++defs.h.
11581         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11582         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11583         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11584         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11585         symbol.
11586         * modules/stdlib (Depends-on): Add c++defs.
11587         (Makefile.am): Update stdlib.h rule.
11588
11589         stdio: Avoid #define replacements in C++ mode.
11590         * lib/stdio.in.h: Include c++defs.h.
11591         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11592         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11593         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11594         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11595         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11596         namespaced alias symbol.
11597         * modules/stdio (Depends-on): Add c++defs.
11598         (Makefile.am): Update stdio.h rule.
11599
11600         spawn: Avoid #define replacements in C++ mode.
11601         * lib/spawn.in.h: Include c++defs.h.
11602         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11603         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11604         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11605         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11606         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11607         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11608         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11609         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11610         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11611         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11612         In C++, define a namespaced alias symbol.
11613         * modules/spawn (Depends-on): Add c++defs.
11614         (Makefile.am): Update spawn.h rule.
11615
11616         signal: Avoid #define replacements in C++ mode.
11617         * lib/signal.in.h: Include c++defs.h.
11618         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11619         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11620         namespaced alias symbol.
11621         * modules/signal (Depends-on): Add c++defs.
11622         (Makefile.am): Update signal.h rule.
11623
11624         search: Avoid #define replacements in C++ mode.
11625         * lib/search.in.h: Include c++defs.h.
11626         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11627         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11628         symbol.
11629         * modules/search (Depends-on): Add c++defs.
11630         (Makefile.am): Update search.h rule.
11631
11632         math: Avoid #define replacements in C++ mode.
11633         * lib/math.in.h: Include c++defs.h.
11634         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11635         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11636         trunc, truncl): In C++, define a namespaced alias symbol.
11637         * modules/math (Depends-on): Add c++defs.
11638         (Makefile.am): Update math.h rule.
11639
11640         locale: Avoid #define replacements in C++ mode.
11641         * lib/locale.in.h: Include c++defs.h.
11642         (duplocale): In C++, define a namespaced alias symbol.
11643         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11644         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11645         * modules/locale (Depends-on): Add c++defs.
11646         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11647
11648         langinfo: Avoid #define replacements in C++ mode.
11649         * lib/langinfo.in.h: Include c++defs.h.
11650         (nl_langinfo): In C++, define a namespaced alias symbol.
11651         * modules/langinfo (Depends-on): Add c++defs.
11652         (Makefile.am): Update langinfo.h rule.
11653
11654         iconv-h: Avoid #define replacements in C++ mode.
11655         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11656         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11657         symbol.
11658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11659         whenever iconv is present.
11660         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11661         (Makefile.am): Update iconv.h rule.
11662
11663         glob: Avoid #define replacements in C++ mode.
11664         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11665         (_gl_glob_errfunc_fn): New type.
11666         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11667         symbol.
11668         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11669         (Makefile.am): Update glob.h rule.
11670
11671         fcntl-h: Avoid #define replacements in C++ mode.
11672         * lib/fcntl.in.h: Include c++defs.h.
11673         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11674         * modules/fcntl-h (Depends-on): Add c++defs.
11675         (Makefile.am): Update fcntl.h rule.
11676
11677         dirent: Avoid #define replacements in C++ mode.
11678         * lib/dirent.in.h: Include c++defs.h.
11679         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11680         namespaced alias symbol.
11681         (dirfd): Update declaration.
11682         * modules/dirent (Depends-on): Add c++defs.
11683         (Makefile.am): Update dirent.h rule.
11684
11685         ctype: Make it usable in C++ code.
11686         * lib/ctype.in.h: Include c++defs.h.
11687         (isblank): Declare as extern "C".
11688         * modules/ctype (Depends-on): Add c++defs.
11689         (Makefile.am): Update ctype.h rule.
11690
11691         New module 'c++defs'.
11692         * modules/c++defs: New file.
11693         * build-aux/c++defs.h: New file.
11694         Reported by John W. Eaton <jwe@gnu.org>.
11695
11696 2010-03-07  Bruno Haible  <bruno@clisp.org>
11697
11698         logb: Provide missing declaration for Cygwin.
11699         * lib/math.in.h (logb): New declaration.
11700         * m4/logb.m4: New file.
11701         * modules/logb (Files): Add m4/logb.m4.
11702         (Depends-on): Add math.
11703         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11704         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11706         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11707         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11708
11709 2010-03-07  Bruno Haible  <bruno@clisp.org>
11710
11711         Fix test-cond link error.
11712         * tests/test-cond.c: Include <stdio.h>.
11713
11714 2010-03-07  Bruno Haible  <bruno@clisp.org>
11715
11716         Fix test-dirent-safer link error.
11717         * modules/dirent-safer-tests (Makefile.am): Define
11718         test_dirent_safer_LDADD.
11719
11720 2010-03-07  Bruno Haible  <bruno@clisp.org>
11721
11722         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11723         among default module list.
11724
11725 2010-03-07  Bruno Haible  <bruno@clisp.org>
11726
11727         Fix link error on platforms with GNU libiconv.
11728         * modules/unistr/u8-strcoll-tests (Makefile): Define
11729         test_u8_strcoll_LDADD.
11730         * modules/unistr/u16-strcoll-tests (Makefile): Define
11731         test_u16_strcoll_LDADD.
11732         * modules/unistr/u32-strcoll-tests (Makefile): Define
11733         test_u32_strcoll_LDADD.
11734
11735 2010-03-07  Bruno Haible  <bruno@clisp.org>
11736
11737         Use POSIX declarations for socket functions.
11738         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11739         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11740         rpl_sendto): Change declaration to match POSIX.
11741         * lib/connect.c (rpl_connect): Likewise.
11742         * lib/accept.c (rpl_accept): Likewise.
11743         * lib/bind.c (rpl_bind): Likewise.
11744         * lib/getpeername.c (rpl_getpeername): Likewise.
11745         * lib/getsockname.c (rpl_getsockname): Likewise.
11746         * lib/recv.c (rpl_recv): Likewise.
11747         * lib/send.c (rpl_send): Likewise.
11748         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11749         * lib/sendto.c (rpl_sendto): Likewise.
11750
11751 2010-03-06  Bruno Haible  <bruno@clisp.org>
11752
11753         Clarify access, euidaccess, faccessat.
11754         * doc/posix-functions/faccessat.texi: Mention security problem under
11755         "Other problems", not "Portability problems".
11756         * doc/posix-functions/access.texi: Likewise. Mention a related security
11757         problem.
11758         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11759         * lib/euidaccess.c: Add comments about platforms.
11760         * lib/unistd.in.h (access, euidaccess): Add warnings.
11761
11762 2010-03-07  Bruno Haible  <bruno@clisp.org>
11763
11764         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11765         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11766         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11767         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11768         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11769         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11770         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11771         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11772         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11773         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11774         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11775         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11776         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11777         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11778         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11779         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11780         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11781         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11782         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11783         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11784         Likewise.
11785         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11786         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11787         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11788         Likewise.
11789         * tests/test-spawn.c (main): Make it work when
11790         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11791
11792 2010-03-07  Bruno Haible  <bruno@clisp.org>
11793
11794         Fix incorrect Makefile.am generation in German locale.
11795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11796         Execute sed command with character range in C locale.
11797
11798 2010-03-06  Bruno Haible  <bruno@clisp.org>
11799
11800         Tests for module 'iconv-h'.
11801         * modules/iconv-h-tests: New file.
11802         * tests/test-iconv-h.c: New file.
11803
11804         New module 'iconv-h'.
11805         * modules/iconv-h: New file.
11806         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11807         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11808         (configure.ac): Remove gl_ICONV_H.
11809         (Makefile.am): Remove rule for iconv.h.
11810
11811 2010-03-06  Bruno Haible  <bruno@clisp.org>
11812
11813         More consistent naming of *.m4 files.
11814         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11815         * modules/wctype (Files): Update.
11816
11817         More consistent naming of *.m4 files.
11818         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11819         * modules/wchar (Files): Update.
11820
11821 2010-03-06  Jim Meyering  <meyering@redhat.com>
11822
11823         euidaccess: relax license to LGPLv2+
11824         * modules/euidaccess (License): Relax to LGPLv2+.
11825
11826 2010-03-06  Bruno Haible  <bruno@clisp.org>
11827
11828         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11829         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11830         (Makefile.am): Augment lib_SOURCES instead.
11831
11832 2010-03-04  Jim Meyering  <meyering@redhat.com>
11833
11834         utime: remove obsolete module
11835         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11836         unnecessary for years, and has been marked as obsolete for 10 months.
11837         * modules/utime: Remove file.
11838         * lib/utime.c: Remove file.
11839         * m4/utime.m4: Remove file.
11840         * m4/utimes-null.m4: Remove file.
11841         * doc/posix-functions/utime.texi (utime): Remove reference to
11842         the module.  Move the sole "fixed by gnulib" item into the
11843         "problems not fixed by Gnulib" list.
11844         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11845
11846 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11847
11848         * modules/exit (License): Relax license to LGPLv2+.
11849         (Status): Mark as obsolete.
11850         * NEWS: Mention deprecated 'exit' module.
11851         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11852         of now obsolete 'exit'.
11853
11854 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11855
11856         fts-lgpl: remove unused module
11857         * modules/fts-lgpl: Remove.
11858         * MODULES.html.sh (func_all_modules): Adjust.
11859         * check-module (find_included_lib_files): Adjust.
11860         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11861
11862 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11863
11864         copy-acl: enhance Solaris ACL error handling
11865         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11866         * lib/set-mode-acl.c (qset_acl): Likewise.
11867
11868 2010-03-02  Bruno Haible  <bruno@clisp.org>
11869
11870         spawn: Don't override the system defined values on FreeBSD 8.
11871         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11872         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11873         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11874         if HAVE_POSIX_SPAWN is 1.
11875         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11876
11877 2010-03-01  Bruno Haible  <bruno@clisp.org>
11878
11879         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11880         regarding Automake.
11881
11882 2010-02-25  Bruno Haible  <bruno@clisp.org>
11883
11884         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11885         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11886         setting, not afterwards.
11887         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11888
11889 2010-02-24  Eric Blake  <eblake@redhat.com>
11890
11891         bootstrap, git-version-gen: use timestamp
11892         * build-aux/git-version-gen (scriptversion): Force UTC.
11893         * build-aux/bootstrap (scriptversion): New variable.
11894
11895         bootstrap: allow older git
11896         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11897         older than 1.6.4.  Requested by the libvirt project.
11898
11899 2010-02-23  Eric Blake  <eblake@redhat.com>
11900
11901         warn-on-use: work with old autoconf
11902         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11903         AS_VAR semantics of autoconf 2.60.
11904         Reported by Bruno Haible.
11905
11906         bootstrap: improve some comments
11907         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11908         clarification comments.
11909
11910         gettimeofday: provide correct function
11911         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11912         when replacement is declared, otherwise provide gettimeofday.
11913         Reported by Michael Goffioul.
11914
11915 2010-02-23  Jim Meyering  <meyering@redhat.com>
11916
11917         lib-ignore: relax license to "unlimited", not LGPLv2+
11918         * modules/lib-ignore (License): Relax to "unlimited".
11919
11920 2010-02-23  Jim Meyering  <meyering@redhat.com>
11921
11922         lib-ignore: relax license to LGPLv2+
11923         * modules/lib-ignore (License): Relax to LGPLv2+.
11924
11925 2010-02-22  Eric Blake  <eblake@redhat.com>
11926
11927         lseek: avoid bash 3.2 broken pipe bug
11928         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11929         warning from bash 3.2.
11930         Reported by Ben Pfaff, with analysis from Bruno Haible.
11931
11932         bootstrap: support non-FSF copyright holder
11933         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11934         bootstrap.conf override of COPYRIGHT_HOLDER.
11935         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11936
11937         bootstrap: interoperate with gettext 0.14.1
11938         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11939
11940         bootstrap: allow for alternate submodule location
11941         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11942         hardcoding submodule location.
11943         (gnulib_mk): Allow direct use of Makefile.am.
11944
11945         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11946         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11947         rather than reconfiguring where the submodule points.
11948
11949         gettimeofday: restore support for platforms that lack function
11950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11951         replacement if function is missing.
11952         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11953         * modules/sys_time (Makefile.am): Substitute it.
11954         * lib/sys_time.in.h (gettimeofday): Check it.
11955         Reported by Michael Goffioul.
11956
11957 2010-02-21  Bruno Haible  <bruno@clisp.org>
11958
11959         * lib/stdio.in.h (obstack_printf): Fix typo.
11960
11961 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11962
11963         vc-list-files: use bzr ls's -R option
11964         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11965         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11966
11967 2010-02-21  Jim Meyering  <meyering@redhat.com>
11968
11969         init.sh: fix EXEEXT shims to work also for names like test-prog
11970         * tests/init.sh: Re-exec a better shell, when needed.
11971         If the current shell lacks support for posix $(...), an init.sh-using
11972         test will now try to find a shell that supports that.  If EXEEXT is
11973         nonempty, we also require support for hyphen-in-alias-name and shell
11974         substitutions like ${var#glob}.  Failure to find such a shell results
11975         in a skipped test.
11976
11977 2010-02-21  Bruno Haible  <bruno@clisp.org>
11978
11979         Really work around around "broken pipe" error message from bash 3.2.
11980         * gnulib-tool (func_reset_sigpipe): Remove function.
11981         (echo): In bash 3.2, define to a function that uses printf.
11982         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11983
11984 2010-02-20  Bruno Haible  <bruno@clisp.org>
11985
11986         Restore support for automake 1.9.6 with autoconf 2.61.
11987         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11988         Reported by James Youngman <jay@gnu.org>.
11989
11990 2010-02-20  Bruno Haible  <bruno@clisp.org>
11991
11992         Improve *printf warning condition.
11993         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11994         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11995         and the function is overridden due to SIGPIPE emulation.
11996
11997 2010-02-20  Bruno Haible  <bruno@clisp.org>
11998
11999         * lib/stdio.in.h: Tweak comments.
12000
12001 2010-02-19  Bruno Haible  <bruno@clisp.org>
12002
12003         Make it easier to find modules. New gnulib-tool option '--find'.
12004         * gnulib-tool: New option --find.
12005         (func_usage): Document it.
12006         (func_sanitize_modulelist): New function, extracted from
12007         func_all_modules.
12008         (func_all_modules): Invoke it.
12009         * doc/gnulib-tool.texi (Which modules?): New node.
12010
12011 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12012
12013         * lib/sys_select.in.h: Provide select replacement even if
12014         sys/select.h exists on a system, for Interix.
12015
12016 2010-02-18  Jim Meyering  <meyering@redhat.com>
12017
12018         init.sh: don't use $(...) just yet
12019         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12020         to accommodate e.g., Solaris' /bin/sh.
12021
12022 2010-02-17  Bruno Haible  <bruno@clisp.org>
12023
12024         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12025         Reported by Ludovic Courtès <ludo@gnu.org>.
12026
12027 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12028
12029         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12030         linking with -lintl.
12031
12032 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12033
12034         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12035         if not provided by the system's netdb.h.  Reported by
12036         ludo@gnu.org (Ludovic Courtès).
12037
12038 2010-02-15  Jim Meyering  <meyering@redhat.com>
12039
12040         init.sh: improve portability and efficiency
12041         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12042         "dummy" in a for loop.
12043         Use '!', not '^' to select the complement of a character set used
12044         in a "case" statement.
12045         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12046         Suggestions from Eric Blake.
12047
12048         init.sh: automatically accommodate programs with the .exe suffix
12049         Automatically arrange for an invocation of "prog" to execute the
12050         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12051         may use the simpler "prog", yet still work when built on a system
12052         that requires specifying the added suffix.
12053         Do this by constructing a function named "prog" that invokes
12054         "prog.exe" for each .exe file in selected directories.
12055         * tests/init.sh (find_exe_basenames_): New function.
12056         (create_exe_shim_functions_): New function.
12057         (path_prepend_): Use it.
12058
12059         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12060         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12061         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12062
12063 2010-02-14  Jim Meyering  <meyering@redhat.com>
12064
12065         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12066         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12067         (sc_prohibit_hash_pjw_without_use): New rule.
12068
12069         maint.mk: allow the default upload destination dir to be overridden
12070         * top/maint.mk (upload_dest_dir_): Define with a default that
12071         preserves the status quo.
12072         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12073         Reported by Peter Simons.
12074
12075         maint.mk: prohibit inclusion of "hash.h" without_use
12076         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12077
12078 2010-02-10  Jim Meyering  <meyering@redhat.com>
12079
12080         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12081         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12082
12083 2010-02-09  Eric Blake  <ebb9@byu.net>
12084         and Bruno Haible  <bruno@clisp.org>
12085
12086         obstack-printf-posix: ensure declaration
12087         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12088         extracted from gl_FUNC_OBSTACK_PRINTF.
12089         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12090         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12091         Likewise.
12092         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12093         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12094         0.
12095
12096 2010-02-08  Bruno Haible  <bruno@clisp.org>
12097
12098         gnulib-tool: Fix typo in 2010-02-07 commit.
12099         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12100         Reported by Eric Blake.
12101
12102 2010-02-07  Bruno Haible  <bruno@clisp.org>
12103
12104         gnulib-tool: Fix up caching patches.
12105         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12106         option --no-cache. Use associative arrays when supported by the shell.
12107         (sed_comments): New variable.
12108         (modcache): Renamed from do_cache.
12109         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12110         abbreviate unnecessarily.
12111         (have_associative): New variable.
12112         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12113         way also for ksh and zsh.
12114         (func_init_sed_convert_to_cache_statements): New function, extracted
12115         from func_cache_lookup_module. Add support for associative arrays.
12116         Don't set the c_MODULE_cached variable here. Ignore all lines before
12117         the first field header. Remove only the final newline, not all trailing
12118         newlines. Support empty fields correctly. Limit the use of 'eval' to
12119         assignments.
12120         (func_get_description, func_get_status, func_get_notice,
12121         func_get_applicability, func_get_filelist, func_get_dependencies,
12122         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12123         func_get_automake_snippet, func_get_include_directive,
12124         func_get_link_directive, func_get_license, func_get_maintainer):
12125         Update documentation. List the unoptimized code first. Add support for
12126         associative arrays. Limit the use of 'eval' to assignments.
12127         (func_get_applicability): Undo stylistic pessimisations.
12128         (func_get_automake_snippet, func_get_include_directive): Reduce code
12129         duplication.
12130         (func_modules_transitive_closure, func_modules_add_dummy,
12131         func_modules_notice, func_modules_to_filelist, func_add_file,
12132         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12133         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12134         func_create_testdir, func_create_megatestdir): Update documentation.
12135
12136 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12137
12138         * gnulib-tool (func_cache_lookup_module): Store the module name
12139         belonging to the cache variable; error out if two different
12140         module names map to the same cache variable name.
12141
12142 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12143
12144         gnulib-tool: Make caching optional.
12145         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12146         Update matching short versions of --no-changelog.
12147         (func_usage): Update.
12148         (sed_extract_cache_prog): Renamed from ...
12149         (sed_extract_prog): ... this; revert to old extraction script.
12150         (func_get_description, func_get_status)
12151         (func_get_notice, func_get_applicability, func_get_filelist)
12152         (func_get_dependencies, func_get_autoconf_early_snippet)
12153         (func_get_autoconf_snippet, func_get_automake_snippet)
12154         (func_get_include_directive, func_get_link_directive)
12155         (func_get_license, func_get_maintainer): If $do_cache is false,
12156         use old, non-caching extraction scripts.
12157         Suggestion by Bruno Haible.
12158
12159 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12160
12161         gnulib-tool: cache module metainformation.
12162         * gnulib-tool (sed_extract_prog): Match newline before each
12163         header, and rewrite header to a shell variable suffix.
12164         (func_cache_var, func_cache_lookup_module): New functions,
12165         to turn a module name into a cache variable prefix, and to
12166         look up and cache module metainformation.
12167         (func_get_description, func_get_status)
12168         (func_get_notice, func_get_applicability, func_get_filelist)
12169         (func_get_dependencies, func_get_autoconf_early_snippet)
12170         (func_get_autoconf_snippet, func_get_automake_snippet)
12171         (func_get_include_directive, func_get_link_directive)
12172         (func_get_license, func_get_maintainer): Use
12173         func_cache_lookup_module.
12174
12175 2010-02-07  Bruno Haible  <bruno@clisp.org>
12176
12177         fnctl: Fix missing dependency.
12178         * modules/fcntl (Depends-on): Add getdtablesize.
12179         Reported by John W. Eaton <jwe@gnu.org>.
12180
12181 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12182
12183         Argp: fix recognition of short alias options.
12184
12185         * lib/argp-parse.c (convert_options): Fix improper use of
12186         `|' between character values.
12187         * tests/test-argp.c (group1_option): New alias option
12188         --read (-r).
12189         (group1_parser): Special handling for 'r'.
12190         (test15): New test case.
12191         (test_fun): Add test15.
12192         * tests/test-argp-2.sh: Update expected --help and --usage
12193         outputs.
12194
12195 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12196
12197         * tests/test-argp.c: Fix indentation.
12198
12199 2010-02-04  Eric Blake  <ebb9@byu.net>
12200
12201         gettimeofday: expose type of second argument
12202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12203         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12204         * tests/test-gettimeofday.c: Use it to silence warning.
12205         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12206         the issue.
12207
12208 2010-02-03  Jim Meyering  <meyering@redhat.com>
12209
12210         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12211         * lib/regcomp.c (TYPE_SIGNED): Define.
12212         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12213
12214         regcomp.c: avoid a new -Wshadow warning
12215         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12216
12217 2010-02-01  Jim Meyering  <meyering@redhat.com>
12218
12219         removing useless parentheses in cpp #define directives
12220         For motivation, see commit c0221df4, "define STREQ(a,b)
12221         consistently, removing useless parentheses"
12222         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12223         * lib/mountlist.c (MNT_IGNORE): Likewise.
12224         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12225
12226 2010-02-01  Eric Blake  <ebb9@byu.net>
12227
12228         sys_time: use link-warning
12229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12230         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12231         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12232         * modules/sys_time (Depends-on): Add warn-on-use.
12233         (Makefile.am): Always build replacement.
12234         (configure.ac): Update substitutions.
12235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12236         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12237         bother with SYS_TIME_H.
12238         * modules/gettimeofday (configure.ac): Declare indicator.
12239         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12240         in use.
12241
12242         closein-tests: silence compiler warning
12243         * tests/test-closein.c (main): Ignore fread result.
12244         * modules/closein-tests (Depends-on): Add ignore-value.
12245
12246         tests: silence warning about system return
12247         * tests/test-areadlink-with-size.c (main): Ignore system result.
12248         * tests/test-areadlink.c (main): Likewise.
12249         * tests/test-areadlinkat-with-size.c (main): Likewise.
12250         * tests/test-areadlinkat.c (main): Likewise.
12251         * tests/test-canonicalize-lgpl.c (main): Likewise.
12252         * tests/test-canonicalize.c (main): Likewise.
12253         * tests/test-chown.c (main): Likewise.
12254         * tests/test-fchownat.c (main): Likewise.
12255         * tests/test-fdutimensat.c (main): Likewise.
12256         * tests/test-fstatat.c (main): Likewise.
12257         * tests/test-futimens.c (main): Likewise.
12258         * tests/test-lchown.c (main): Likewise.
12259         * tests/test-link.c (main): Likewise.
12260         * tests/test-linkat.c (main): Likewise.
12261         * tests/test-lstat.c (main): Likewise.
12262         * tests/test-mkdir.c (main): Likewise.
12263         * tests/test-mkdirat.c (main): Likewise.
12264         * tests/test-mkfifo.c (main): Likewise.
12265         * tests/test-mkfifoat.c (main): Likewise.
12266         * tests/test-mknod.c (main): Likewise.
12267         * tests/test-readlink.c (main): Likewise.
12268         * tests/test-remove.c (main): Likewise.
12269         * tests/test-rename.c (main): Likewise.
12270         * tests/test-renameat.c (main): Likewise.
12271         * tests/test-rmdir.c (main): Likewise.
12272         * tests/test-symlink.c (main): Likewise.
12273         * tests/test-symlinkat.c (main): Likewise.
12274         * tests/test-unlink.c (main): Likewise.
12275         * tests/test-unlinkat.c (main): Likewise.
12276         * tests/test-utimens.c (main): Likewise.
12277         * tests/test-utimensat.c (main): Likewise.
12278         * modules/areadlink-tests (Depends-on): Add ignore-value.
12279         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12280         * modules/areadlinkat-tests (Depends-on): Likewise.
12281         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12282         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12283         * modules/canonicalize-tests (Depends-on): Likewise.
12284         * modules/chown-tests (Depends-on): Likewise.
12285         * modules/fdutimensat-tests (Depends-on): Likewise.
12286         * modules/futimens-tests (Depends-on): Likewise.
12287         * modules/lchown-tests (Depends-on): Likewise.
12288         * modules/link-tests (Depends-on): Likewise.
12289         * modules/linkat-tests (Depends-on): Likewise.
12290         * modules/lstat-tests (Depends-on): Likewise.
12291         * modules/mkdir-tests (Depends-on): Likewise.
12292         * modules/mkfifo-tests (Depends-on): Likewise.
12293         * modules/mkfifoat-tests (Depends-on): Likewise.
12294         * modules/mknod-tests (Depends-on): Likewise.
12295         * modules/openat-tests (Depends-on): Likewise.
12296         * modules/readlink-tests (Depends-on): Likewise.
12297         * modules/remove-tests (Depends-on): Likewise.
12298         * modules/rename-tests (Depends-on): Likewise.
12299         * modules/renameat-tests (Depends-on): Likewise.
12300         * modules/rmdir-tests (Depends-on): Likewise.
12301         * modules/symlink-tests (Depends-on): Likewise.
12302         * modules/symlinkat-tests (Depends-on): Likewise.
12303         * modules/unlink-tests (Depends-on): Likewise.
12304         * modules/utimens-tests (Depends-on): Likewise.
12305         * modules/utimensat-tests (Depends-on): Likewise.
12306
12307 2010-01-31  Bruno Haible  <bruno@clisp.org>
12308
12309         Perform the same test for many <math.h> functions.
12310         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12311         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12312         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12313         of gl_MATHFUNC.
12314         * modules/acos (configure.ac): Likewise.
12315         * modules/asin (configure.ac): Likewise.
12316         * modules/atan (configure.ac): Likewise.
12317         * modules/atan2 (configure.ac): Likewise.
12318         * modules/cbrt (configure.ac): Likewise.
12319         * modules/copysign (configure.ac): Likewise.
12320         * modules/cos (configure.ac): Likewise.
12321         * modules/cosh (configure.ac): Likewise.
12322         * modules/erf (configure.ac): Likewise.
12323         * modules/erfc (configure.ac): Likewise.
12324         * modules/exp (configure.ac): Likewise.
12325         * modules/fmod (configure.ac): Likewise.
12326         * modules/hypot (configure.ac): Likewise.
12327         * modules/j0 (configure.ac): Likewise.
12328         * modules/j1 (configure.ac): Likewise.
12329         * modules/jn (configure.ac): Likewise.
12330         * modules/lgamma (configure.ac): Likewise.
12331         * modules/log (configure.ac): Likewise.
12332         * modules/log10 (configure.ac): Likewise.
12333         * modules/log1p (configure.ac): Likewise.
12334         * modules/pow (configure.ac): Likewise.
12335         * modules/remainder (configure.ac): Likewise.
12336         * modules/sin (configure.ac): Likewise.
12337         * modules/sinh (configure.ac): Likewise.
12338         * modules/tan (configure.ac): Likewise.
12339         * modules/tanh (configure.ac): Likewise.
12340         * modules/y0 (configure.ac): Likewise.
12341         * modules/y1 (configure.ac): Likewise.
12342         * modules/yn (configure.ac): Likewise.
12343         Suggested by Paolo Bonzini.
12344
12345 2010-01-31  Bruno Haible  <bruno@clisp.org>
12346
12347         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12348
12349 2010-01-31  Bruno Haible  <bruno@clisp.org>
12350
12351         Work around getdelim() bug on FreeBSD 8.0.
12352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12353         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12354         not work.
12355         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12356         is 1.
12357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12358         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12359         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12360         a non-zero size.
12361         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12362
12363 2010-01-31  Bruno Haible  <bruno@clisp.org>
12364
12365         Work around getline() bug on FreeBSD 8.0.
12366         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12367         and a non-zero size.
12368         * tests/test-getline.c (main): Likewise.
12369         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12370         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12371
12372 2010-01-28  Eric Blake  <ebb9@byu.net>
12373
12374         regex: fix build failure
12375         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12376         platforms.
12377
12378 2010-01-28  Jim Meyering  <meyering@redhat.com>
12379
12380         regex: do not ignore memory allocation failure
12381         * lib/regex_internal.c (create_cd_newstate): Detect
12382         re_node_set_init_copy failure.   Extracted from glibc commit
12383         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12384
12385         regex: sync more white-space changes from libc
12386         * lib/regex_internal.c: White-space only changes.
12387         * lib/regexec.c: Likewise.
12388
12389         regex: add many uses of __attribute_warn_unused_result__
12390         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12391         * lib/regexec.c: Likewise.
12392         Extracted from a messy glibc commit.
12393
12394         regcomp.c: spelling and merge-artifact from glibc
12395         * lib/regcomp.c: Merge remainder of glibc's
12396         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12397
12398         regcomp.c: sync white-space changes from glibc
12399         * lib/regcomp.c: Merge to accommodate white space
12400         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12401
12402         regcomp.c: do not ignore internal return values
12403         * lib/regcomp.c: Do not ignore internal return values.
12404         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12405         but without its white-space changes and spelling fixes.
12406
12407         regex_internal.h: define __attribute_warn_unused_result__
12408         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12409
12410         maint: add a syntax-check rule to check for vulnerable Makefile.in
12411         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12412
12413 2010-01-27  Jim Meyering  <meyering@redhat.com>
12414
12415         ncftpput-ftp: clean up spaces
12416         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12417         Remove trailing blanks.
12418
12419 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12420
12421         * build-aux/git-version-gen: Fix copyright statement.
12422         * build-aux/gnupload: Likewise.
12423         * tests/test-arcfour.c: Likewise.
12424         * tests/test-arctwo.c: Likewise.
12425         * tests/test-count-one-bits.c: Likewise.
12426         * tests/test-crc.c: Likewise.
12427         * tests/test-des.c: Likewise.
12428         * tests/test-gc-arcfour.c: Likewise.
12429         * tests/test-gc-arctwo.c: Likewise.
12430         * tests/test-gc-des.c: Likewise.
12431         * tests/test-gc-hmac-md5.c: Likewise.
12432         * tests/test-gc-hmac-sha1.c: Likewise.
12433         * tests/test-gc-md2.c: Likewise.
12434         * tests/test-gc-md4.c: Likewise.
12435         * tests/test-gc-md5.c: Likewise.
12436         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12437         * tests/test-gc-rijndael.c: Likewise.
12438         * tests/test-gc-sha1.c: Likewise.
12439         * tests/test-gc.c: Likewise.
12440         * tests/test-gethostname.c: Likewise.
12441         * tests/test-gettimeofday.c: Likewise.
12442         * tests/test-hash.c: Likewise.
12443         * tests/test-hmac-md5.c: Likewise.
12444         * tests/test-hmac-sha1.c: Likewise.
12445         * tests/test-md2.c: Likewise.
12446         * tests/test-md4.c: Likewise.
12447         * tests/test-md5.c: Likewise.
12448         * tests/test-memchr.c: Likewise.
12449         * tests/test-memchr2.c: Likewise.
12450         * tests/test-memcmp.c: Likewise.
12451         * tests/test-memmem.c: Likewise.
12452         * tests/test-memrchr.c: Likewise.
12453         * tests/test-rawmemchr.c: Likewise.
12454         * tests/test-read-file.c: Likewise.
12455         * tests/test-rijndael.c: Likewise.
12456         * tests/test-sockets.c: Likewise.
12457         * tests/test-strchrnul.c: Likewise.
12458         * tests/test-strstr.c: Likewise.
12459         * tests/test-strtod.c: Likewise.
12460         * build-aux/ncftpput-ftp: Likewise.
12461
12462 2010-01-26  Eric Blake  <ebb9@byu.net>
12463
12464         ignore-value: update recommended header name
12465         * modules/ignore-value (Include): Only use <> for headers that
12466         exist in glibc.
12467
12468 2010-01-26  Jim Meyering  <meyering@redhat.com>
12469
12470         test-userspec.c: avoid compiler warnings
12471         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12472         and "initialization discards qualifiers..." warnings.
12473         Put the first "uid" in its own scope, and make char* members "const".
12474
12475 2010-01-25  Bruno Haible  <bruno@clisp.org>
12476
12477         gnulib-tool: Make warning diagnostics consistent.
12478         * gnulib-tool (func_warning): New function.
12479         Use it everywhere where gnulib-tool produces output to stderr and it is
12480         not a fatal error.
12481
12482 2010-01-25  Bruno Haible  <bruno@clisp.org>
12483
12484         Fix test dependencies.
12485         * modules/xstrtol-tests (Depends-on): Add inttypes.
12486         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12487
12488 2010-01-25 Pádraig Brady <P@draigBrady.com>
12489
12490         syntax-check: detect incorrect boolean macro values in config.h
12491         * modules/maintainer-makefile (configure.ac): Parameterize the location
12492         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12493         The logic is from Eric Blake and the location indicated by Jim Meyering.
12494         Note the more natural CONFIG_HEADER name is prohibited by automake
12495         for backwards compatibility reasons.
12496         * top/maint.mk (sc_Wundef_boolean): New rule.
12497
12498 2010-01-25  Jim Meyering  <meyering@redhat.com>
12499
12500         bootstrap: detect MacOS 10.6's shasum, too
12501         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12502         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12503
12504 2010-01-23  Jim Meyering  <meyering@redhat.com>
12505
12506         xstrtoll: new module
12507         * modules/xstrtoll: New file.
12508         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12509         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12510         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12511         ./configure fails if you use this module and lack "long long".
12512         * modules/xstrtoll-tests: New module.
12513         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12514         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12515         new init.sh-based test framework.
12516
12517 2010-01-24  Bruno Haible  <bruno@clisp.org>
12518
12519         Tests for module 'yn'.
12520         * modules/yn-tests: New file.
12521         * tests/test-yn.c: New file.
12522
12523         Tests for module 'y1'.
12524         * modules/y1-tests: New file.
12525         * tests/test-y1.c: New file.
12526
12527         Tests for module 'y0'.
12528         * modules/y0-tests: New file.
12529         * tests/test-y0.c: New file.
12530
12531         Tests for module 'tanh'.
12532         * modules/tanh-tests: New file.
12533         * tests/test-tanh.c: New file.
12534
12535         Tests for module 'tan'.
12536         * modules/tan-tests: New file.
12537         * tests/test-tan.c: New file.
12538
12539         Tests for module 'sqrt'.
12540         * modules/sqrt-tests: New file.
12541         * tests/test-sqrt.c: New file.
12542
12543         Tests for module 'sinh'.
12544         * modules/sinh-tests: New file.
12545         * tests/test-sinh.c: New file.
12546
12547         Tests for module 'sin'.
12548         * modules/sin-tests: New file.
12549         * tests/test-sin.c: New file.
12550
12551         Tests for module 'rint'.
12552         * modules/rint-tests: New file.
12553         * tests/test-rint.c: New file.
12554
12555         Tests for module 'remainder'.
12556         * modules/remainder-tests: New file.
12557         * tests/test-remainder.c: New file.
12558
12559         Tests for module 'pow'.
12560         * modules/pow-tests: New file.
12561         * tests/test-pow.c: New file.
12562
12563         Tests for module 'nextafter'.
12564         * modules/nextafter-tests: New file.
12565         * tests/test-nextafter.c: New file.
12566
12567         Tests for module 'modf'.
12568         * modules/modf-tests: New file.
12569         * tests/test-modf.c: New file.
12570
12571         Tests for module 'logb'.
12572         * modules/logb-tests: New file.
12573         * tests/test-logb.c: New file.
12574
12575         Tests for module 'log1p'.
12576         * modules/log1p-tests: New file.
12577         * tests/test-log1p.c: New file.
12578
12579         Tests for module 'log10'.
12580         * modules/log10-tests: New file.
12581         * tests/test-log10.c: New file.
12582
12583         Tests for module 'log'.
12584         * modules/log-tests: New file.
12585         * tests/test-log.c: New file.
12586
12587         Tests for module 'lgamma'.
12588         * modules/lgamma-tests: New file.
12589         * tests/test-lgamma.c: New file.
12590
12591         Tests for module 'ldexp'.
12592         * modules/ldexp-tests: New file.
12593         * tests/test-ldexp.c: New file.
12594
12595         Tests for module 'jn'.
12596         * modules/jn-tests: New file.
12597         * tests/test-jn.c: New file.
12598
12599         Tests for module 'j1'.
12600         * modules/j1-tests: New file.
12601         * tests/test-j1.c: New file.
12602
12603         Tests for module 'j0'.
12604         * modules/j0-tests: New file.
12605         * tests/test-j0.c: New file.
12606
12607         Tests for module 'hypot'.
12608         * modules/hypot-tests: New file.
12609         * tests/test-hypot.c: New file.
12610
12611         Tests for module 'fmod'.
12612         * modules/fmod-tests: New file.
12613         * tests/test-fmod.c: New file.
12614
12615         Tests for module 'fabs'.
12616         * modules/fabs-tests: New file.
12617         * tests/test-fabs.c: New file.
12618
12619         Tests for module 'exp'.
12620         * modules/exp-tests: New file.
12621         * tests/test-exp.c: New file.
12622
12623         Tests for module 'erfc'.
12624         * modules/erfc-tests: New file.
12625         * tests/test-erfc.c: New file.
12626
12627         Tests for module 'erf'.
12628         * modules/erf-tests: New file.
12629         * tests/test-erf.c: New file.
12630
12631         Tests for module 'cosh'.
12632         * modules/cosh-tests: New file.
12633         * tests/test-cosh.c: New file.
12634
12635         Tests for module 'cos'.
12636         * modules/cos-tests: New file.
12637         * tests/test-cos.c: New file.
12638
12639         Tests for module 'copysign'.
12640         * modules/copysign-tests: New file.
12641         * tests/test-copysign.c: New file.
12642
12643         Tests for module 'cbrt'.
12644         * modules/cbrt-tests: New file.
12645         * tests/test-cbrt.c: New file.
12646
12647         Tests for module 'atan2'.
12648         * modules/atan2-tests: New file.
12649         * tests/test-atan2.c: New file.
12650
12651         Tests for module 'atan'.
12652         * modules/atan-tests: New file.
12653         * tests/test-atan.c: New file.
12654
12655         Tests for module 'asin'.
12656         * modules/asin-tests: New file.
12657         * tests/test-asin.c: New file.
12658
12659         Tests for module 'acos'.
12660         * modules/acos-tests: New file.
12661         * tests/test-acos.c: New file.
12662
12663 2010-01-24  Bruno Haible  <bruno@clisp.org>
12664
12665         Fix tests for common <math.h> functions.
12666         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12667         code snippet that references the function pointer, rather than merely
12668         calling the function. Substitute the FUNC_LIBM variable.
12669         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12670         * modules/acos (configure.ac): Likewise.
12671         * modules/asin (configure.ac): Likewise.
12672         * modules/atan (configure.ac): Likewise.
12673         * modules/atan2 (configure.ac): Likewise.
12674         * modules/cbrt (configure.ac): Likewise.
12675         * modules/copysign (configure.ac): Likewise.
12676         * modules/cos (configure.ac): Likewise.
12677         * modules/cosh (configure.ac): Likewise.
12678         * modules/erf (configure.ac): Likewise.
12679         * modules/erfc (configure.ac): Likewise.
12680         * modules/exp (configure.ac): Likewise.
12681         * modules/fabs (configure.ac): Likewise.
12682         * modules/fmod (configure.ac): Likewise.
12683         * modules/hypot (configure.ac): Likewise.
12684         * modules/j0 (configure.ac): Likewise.
12685         * modules/j1 (configure.ac): Likewise.
12686         * modules/jn (configure.ac): Likewise.
12687         * modules/ldexp (configure.ac): Likewise.
12688         * modules/lgamma (configure.ac): Likewise.
12689         * modules/log (configure.ac): Likewise.
12690         * modules/log10 (configure.ac): Likewise.
12691         * modules/log1p (configure.ac): Likewise.
12692         * modules/logb (configure.ac): Likewise.
12693         * modules/modf (configure.ac): Likewise.
12694         * modules/nextafter (configure.ac): Likewise.
12695         * modules/pow (configure.ac): Likewise.
12696         * modules/remainder (configure.ac): Likewise.
12697         * modules/rint (configure.ac): Likewise.
12698         * modules/sin (configure.ac): Likewise.
12699         * modules/sinh (configure.ac): Likewise.
12700         * modules/tan (configure.ac): Likewise.
12701         * modules/tanh (configure.ac): Likewise.
12702         * modules/y0 (configure.ac): Likewise.
12703         * modules/y1 (configure.ac): Likewise.
12704         * modules/yn (configure.ac): Likewise.
12705
12706 2010-01-24  Bruno Haible  <bruno@clisp.org>
12707
12708         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12709         * tests/test-acosl.c (x): New variable.
12710         (main): Store argument in x and fetch it from x.
12711         * tests/test-asinl.c (x): New variable.
12712         (main): Store argument in x and fetch it from x.
12713         * tests/test-atanl.c (x): New variable.
12714         (main): Store argument in x and fetch it from x.
12715         * tests/test-cosl.c (x): New variable.
12716         (main): Store argument in x and fetch it from x.
12717         * tests/test-expl.c (x): New variable.
12718         (main): Store argument in x and fetch it from x.
12719         * tests/test-logl.c (x): New variable.
12720         (main): Store argument in x and fetch it from x.
12721         * tests/test-sinl.c (x): New variable.
12722         (main): Store argument in x and fetch it from x.
12723         * tests/test-sqrtl.c (x): New variable.
12724         (main): Store argument in x and fetch it from x.
12725         * tests/test-tanl.c (x): New variable.
12726         (main): Store argument in x and fetch it from x.
12727
12728 2010-01-24  Bruno Haible  <bruno@clisp.org>
12729
12730         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12731         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12732         assignments to the initial TESTS_ENVIRONMENT.
12733         * doc/gnulib.texi (Unit test modules): Document it.
12734         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12735         TESTS_ENVIRONMENT.
12736         * modules/btowc-tests (Makefile.am): Likewise.
12737         * modules/c-stack-tests (Makefile.am): Likewise.
12738         * modules/c-strcase-tests (Makefile.am): Likewise.
12739         * modules/copy-file-tests (Makefile.am): Likewise.
12740         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12741         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12742         * modules/mbrtowc-tests (Makefile.am): Likewise.
12743         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12744         * modules/mbscasestr-tests (Makefile.am): Likewise.
12745         * modules/mbschr-tests (Makefile.am): Likewise.
12746         * modules/mbscspn-tests (Makefile.am): Likewise.
12747         * modules/mbsinit-tests (Makefile.am): Likewise.
12748         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12749         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12750         * modules/mbspbrk-tests (Makefile.am): Likewise.
12751         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12752         * modules/mbsrchr-tests (Makefile.am): Likewise.
12753         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12754         * modules/mbsspn-tests (Makefile.am): Likewise.
12755         * modules/mbsstr-tests (Makefile.am): Likewise.
12756         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12757         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12758         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12759         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12760         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12761         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12762         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12763         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12764         * modules/wcrtomb-tests (Makefile.am): Likewise.
12765         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12766         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12767         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12768         assignments from TESTS_ENVIRONMENT.
12769         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12770         augmentation.
12771         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12772         * modules/atexit-tests (Makefile.am): Likewise.
12773         * modules/binary-io-tests (Makefile.am): Likewise.
12774         * modules/closein-tests (Makefile.am): Likewise.
12775         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12776         * modules/exclude-tests (Makefile.am): Likewise.
12777         * modules/fflush-tests (Makefile.am): Likewise.
12778         * modules/fpending-tests (Makefile.am): Likewise.
12779         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12780         * modules/freadahead-tests (Makefile.am): Likewise.
12781         * modules/freadptr-tests (Makefile.am): Likewise.
12782         * modules/freadseek-tests (Makefile.am): Likewise.
12783         * modules/fseek-tests (Makefile.am): Likewise.
12784         * modules/fseeko-tests (Makefile.am): Likewise.
12785         * modules/ftell-tests (Makefile.am): Likewise.
12786         * modules/ftello-tests (Makefile.am): Likewise.
12787         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12788         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12789         * modules/lseek-tests (Makefile.am): Likewise.
12790         * modules/parse-duration-tests (Makefile.am): Likewise.
12791         * modules/perror-tests (Makefile.am): Likewise.
12792         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12793         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12794         * modules/pipe-tests (Makefile.am): Likewise.
12795         * modules/pread-tests (Makefile.am): Likewise.
12796         * modules/printf-posix-tests (Makefile.am): Likewise.
12797         * modules/select-tests (Makefile.am): Likewise.
12798         * modules/sigpipe-tests (Makefile.am): Likewise.
12799         * modules/tsearch-tests (Makefile.am): Likewise.
12800         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12801         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12802         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12803         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12804         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12805         * modules/version-etc-tests (Makefile.am): Likewise.
12806         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12807         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12808         * modules/xalloc-die-tests (Makefile.am): Likewise.
12809         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12810         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12811         * modules/xstrtol-tests (Makefile.am): Likewise.
12812         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12813         * modules/yesno-tests (Makefile.am): Likewise.
12814         Suggested by Jim Meyering.
12815
12816 2010-01-24  Bruno Haible  <bruno@clisp.org>
12817
12818         More documentation.
12819         * doc/gnulib.texi (Writing modules): New chapter.
12820         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12821         the new chapter.
12822
12823 2010-01-24  Jim Meyering  <meyering@redhat.com>
12824
12825         maint.mk: do not prepend "./" after filtering
12826         * top/maint.mk (_prepend_srcdir_prefix): New variable
12827         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12828         "./" when $(srcdir) is ".".
12829
12830         define STREQ(a,b) consistently, removing useless parentheses
12831         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12832         since the only risk is that "a" or "b" contains an unparenthesized
12833         comma, but if either did that, STREQ would have 3 or more arguments.
12834         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12835         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12836         * lib/hash-triple.c (STREQ): Likewise.
12837         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12838         * lib/getugroups.c (STREQ): Likewise.
12839
12840 2010-01-23  Jim Meyering  <meyering@redhat.com>
12841
12842         maint.mk: fix syntax-check in a non-srcdir build directory
12843         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12844         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12845
12846 2010-01-22  Jim Meyering  <meyering@redhat.com>
12847
12848         userspec: add unit tests
12849         * tests/test-userspec.c: New file.
12850         * modules/userspec-tests: Likewise.
12851
12852 2010-01-21  Jim Meyering  <meyering@redhat.com>
12853
12854         maint.mk: handle source file names containing "." robustly
12855         * top/maint.mk (_dot_escaped_srcdir): Define.
12856         (VC_LIST): Use it in LHS of sed substitution.
12857
12858 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12859
12860         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12861         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12862         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12863         from a non-srcdir build.
12864
12865 2010-01-20  Eric Blake  <ebb9@byu.net>
12866
12867         warn-on-use: use instead of link-warning
12868         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12869         * modules/unistd (Depends-on, Makefile.am): Likewise.
12870         * modules/arpa_inet (Depends-on): Replace link-warning with
12871         warn-on-use.
12872         (Makefile.am): Update rules accordingly.
12873         * modules/ctype (Depends-on, Makefile.am): Likewise.
12874         * modules/dirent (Depends-on, Makefile.am): Likewise.
12875         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12876         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12877         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12878         * modules/locale (Depends-on, Makefile.am): Likewise.
12879         * modules/math (Depends-on, Makefile.am): Likewise.
12880         * modules/search (Depends-on, Makefile.am): Likewise.
12881         * modules/signal (Depends-on, Makefile.am): Likewise.
12882         * modules/spawn (Depends-on, Makefile.am): Likewise.
12883         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12884         * modules/string (Depends-on, Makefile.am): Likewise.
12885         * modules/strings (Depends-on, Makefile.am): Likewise.
12886         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12887         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12888         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12889         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12890         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12891         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12892         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12893         * modules/wchar (Depends-on, Makefile.am): Likewise.
12894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12895         should be poisoned.
12896         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12897         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12898         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12901         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12902         * m4/math_h.m4 (gl_MATH_H): Likewise.
12903         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12904         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12905         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12906         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12907         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12909         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12910         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12918         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12919         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12920         GL_LINK_WARNING.
12921         * lib/ctype.in.h: Likewise.
12922         * lib/dirent.in.h: Likewise.
12923         * lib/fcntl.in.h: Likewise.
12924         * lib/inttypes.in.h: Likewise.
12925         * lib/langinfo.in.h: Likewise.
12926         * lib/locale.in.h: Likewise.
12927         * lib/math.in.h: Likewise.
12928         * lib/search.in.h: Likewise.
12929         * lib/signal.in.h: Likewise.
12930         * lib/spawn.in.h: Likewise.
12931         * lib/stdio.in.h: Likewise.
12932         * lib/stdlib.in.h: Likewise.
12933         * lib/string.in.h: Likewise.
12934         * lib/strings.in.h: Likewise.
12935         * lib/sys_file.in.h: Likewise.
12936         * lib/sys_ioctl.in.h: Likewise.
12937         * lib/sys_select.in.h: Likewise.
12938         * lib/sys_socket.in.h: Likewise.
12939         * lib/sys_stat.in.h: Likewise.
12940         * lib/sys_times.in.h: Likewise.
12941         * lib/sys_utsname.in.h: Likewise.
12942         * lib/unistd.in.h: Likewise.
12943         * lib/wchar.in.h: Likewise.
12944
12945 2010-01-20  Bruno Haible  <bruno@clisp.org>
12946
12947         Avoid duplicate -lm.
12948         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12949         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12952         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12953         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12954         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12955         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12956         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12957         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12958         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12959         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12960         Reported by Paolo Bonzini.
12961
12962 2010-01-19  Bruno Haible  <bruno@clisp.org>
12963
12964         langinfo, nl_langinfo: Relicense under LGPLv2+.
12965         * modules/langinfo (License): Change to LGPLv2+.
12966         * modules/nl_langinfo (License): Likewise.
12967         Patch by David Lutterkort <lutter@redhat.com>.
12968
12969 2010-01-19  Bruno Haible  <bruno@clisp.org>
12970
12971         Avoid compilation error with cc on OSF/1 5.1.
12972         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12973         statement, not before.
12974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12975
12976 2010-01-18  Bruno Haible  <bruno@clisp.org>
12977
12978         Avoid a link error due to the __printf__ symbol.
12979         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12980         and 2.6.x.
12981         (__format__, __printf__): Remove definitions.
12982         * lib/argp-fmtstream.h: Likewise.
12983         * lib/argp.h: Likewise.
12984         * lib/error.h: Likewise.
12985         * lib/vasnprintf.h: Likewise.
12986         * lib/xprintf.h: Likewise.
12987         * lib/xvasprintf.h: Likewise.
12988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12989
12990 2010-01-18  Bruno Haible  <bruno@clisp.org>
12991
12992         Tests for module 'tanl'.
12993         * modules/tanl-tests: New file.
12994         * tests/test-tanl.c: New file.
12995
12996         Tests for module 'sqrtl'.
12997         * modules/sqrtl-tests: New file.
12998         * tests/test-sqrtl.c: New file.
12999
13000         Tests for module 'sinl'.
13001         * modules/sinl-tests: New file.
13002         * tests/test-sinl.c: New file.
13003
13004         Tests for module 'logl'.
13005         * modules/logl-tests: New file.
13006         * tests/test-logl.c: New file.
13007
13008         Tests for module 'expl'.
13009         * modules/expl-tests: New file.
13010         * tests/test-expl.c: New file.
13011
13012         Tests for module 'cosl'.
13013         * modules/cosl-tests: New file.
13014         * tests/test-cosl.c: New file.
13015
13016         Tests for module 'atanl'.
13017         * modules/atanl-tests: New file.
13018         * tests/test-atanl.c: New file.
13019
13020         Tests for module 'asinl'.
13021         * modules/asinl-tests: New file.
13022         * tests/test-asinl.c: New file.
13023
13024         Tests for module 'acosl'.
13025         * modules/acosl-tests: New file.
13026         * tests/test-acosl.c: New file.
13027
13028         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13029         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13030         tanl): Use the standard gnulib idiom.
13031         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13032         * lib/sinl.c: Likewise.
13033         * lib/tanl.c: Don't include trigl.c.
13034         (kernel_tanl): Make static.
13035         * lib/sincosl.c: Include trigl.h first.
13036         * lib/trigl.c: Likewise.
13037         * m4/acosl.m4: New file.
13038         * m4/asinl.m4: New file.
13039         * m4/atanl.m4: New file.
13040         * m4/cosl.m4: New file.
13041         * m4/expl.m4: New file.
13042         * m4/logl.m4: New file.
13043         * m4/sinl.m4: New file.
13044         * m4/sqrtl.m4: New file.
13045         * m4/tanl.m4: New file.
13046         * m4/mathl.m4: Remove file.
13047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13048         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13049         Don't initialize GNULIB_MATHL.
13050         * modules/acosl: New file.
13051         * modules/asinl: New file.
13052         * modules/atanl: New file.
13053         * modules/cosl: New file.
13054         * modules/expl: New file.
13055         * modules/logl: New file.
13056         * modules/sinl: New file.
13057         * modules/sqrtl: New file.
13058         * modules/tanl: New file.
13059         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13060         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13061         substitute GNULIB_MATHL.
13062         * modules/mathl: Rewritten.
13063         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13064         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13065         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13066         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13067         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13068         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13069         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13070         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13071         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13072
13073 2010-01-18  Bruno Haible  <bruno@clisp.org>
13074
13075         sqrt: Make gl_FUNC_SQRT requirable.
13076         * m4/sqrt.m4: New file.
13077         * modules/sqrt (Files): Add it.
13078         (configure.ac): Invoke gl_FUNC_SQRT.
13079
13080 2010-01-18  Bruno Haible  <bruno@clisp.org>
13081
13082         New modules for common <math.h> functions.
13083         * m4/mathfunc.m4: New file.
13084         * modules/acos: New file.
13085         * modules/asin: New file.
13086         * modules/atan: New file.
13087         * modules/atan2: New file.
13088         * modules/cbrt: New file.
13089         * modules/copysign: New file.
13090         * modules/cos: New file.
13091         * modules/cosh: New file.
13092         * modules/erf: New file.
13093         * modules/erfc: New file.
13094         * modules/exp: New file.
13095         * modules/fabs: New file.
13096         * modules/fmod: New file.
13097         * modules/hypot: New file.
13098         * modules/j0: New file.
13099         * modules/j1: New file.
13100         * modules/jn: New file.
13101         * modules/ldexp: New file.
13102         * modules/lgamma: New file.
13103         * modules/log: New file.
13104         * modules/log10: New file.
13105         * modules/log1p: New file.
13106         * modules/logb: New file.
13107         * modules/modf: New file.
13108         * modules/nextafter: New file.
13109         * modules/pow: New file.
13110         * modules/remainder: New file.
13111         * modules/rint: New file.
13112         * modules/sin: New file.
13113         * modules/sinh: New file.
13114         * modules/sqrt: New file.
13115         * modules/tan: New file.
13116         * modules/tanh: New file.
13117         * modules/y0: New file.
13118         * modules/y1: New file.
13119         * modules/yn: New file.
13120         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13121         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13122         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13123         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13124         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13125         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13126         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13127         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13128         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13129         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13130         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13131         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13132         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13133         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13134         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13135         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13136         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13137         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13138         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13139         * doc/posix-functions/log.texi: Mention the 'log' module.
13140         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13141         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13142         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13143         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13144         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13145         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13146         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13147         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13148         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13149         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13150         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13151         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13152         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13153         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13154         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13155         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13156
13157 2010-01-18  Jim Meyering  <meyering@redhat.com>
13158
13159         ignore-value: relax license to LGPLv2+
13160         * modules/ignore-value (License): Relax to LGPLv2+.
13161
13162         getdate: don't leak when TZ contains two or more '"'s
13163         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13164         double quote in TZ after the first one.
13165
13166         readtokens: do not leak internal token_lengths buffer
13167         * lib/readtokens.c (readtokens): Free the local, lengths,
13168         when the supplied "token_lengths" parameter is NULL.
13169
13170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13171
13172         Fix a couple of missing LIBTHREAD link failures on AIX.
13173         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13174         $(LIBTHREAD).
13175         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13176
13177         Link test-poll against INET_PTON_LIB.
13178         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13179         for inet_pton on Solaris 10.
13180
13181 2010-01-17  Bruno Haible  <bruno@clisp.org>
13182
13183         unistdio/*-sprintf: Fix typo in module description.
13184         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13185         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13186         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13187         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13188         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13189         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13190         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13192
13193 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13194
13195         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13196         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13197         variables in shell case patterns, for AIX and HP-UX ksh.
13198
13199         Split large sed scripts, for HP-UX sed.
13200         * modules/stdio: Split sed scripts around 50 sed commands,
13201         to avoid HP-UX limit of 99 commands, in the near future.
13202         * modules/string: Likewise.
13203         * modules/unistd: Likewise.
13204
13205         gnulib-tool: avoid writing in the current directory.
13206         * gnulib-tool (func_emit_lib_Makefile_am)
13207         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13208         not in the current directory, so concurrent gnulib-tool
13209         instances do not interfere.
13210
13211 2010-01-16  Jim Meyering  <meyering@redhat.com>
13212
13213         doc: update users.txt
13214         * users.txt: Add grep.
13215         (diffutils, gzip): Update URLs.
13216
13217 2010-01-12  Bruno Haible  <bruno@clisp.org>
13218
13219         posix_spawn: Avoid test failure on Cygwin.
13220         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13221         characters.
13222         Reported by Simon Josefsson.
13223
13224 2010-01-12  Bruno Haible  <bruno@clisp.org>
13225
13226         * tests/test-cond.c (main): When skipping the test, show the reason.
13227
13228 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13229
13230         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13231
13232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13233
13234         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13235         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13236
13237 2010-01-12  Eric Blake  <ebb9@byu.net>
13238
13239         build: guarantee AS_VAR_IF
13240         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13241         (gl_AS_VAR_IF): Move...
13242         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13243         Reported by Simon Josefsson.
13244
13245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13246
13247         * lib/stdio.in.h: Fix typo.
13248
13249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13250
13251         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13252         libgpg-error.
13253
13254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13255
13256         * tests/test-xalloc-die.sh: Use $EXEEXT.
13257
13258 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13259             Bruno Haible  <bruno@clisp.org>
13260
13261         getlogin, getlogin_r: Avoid test failure.
13262         * tests/test-getlogin.c: Include <stdio.h>.
13263         (main): Skip the test when the function fails because stdin is not a
13264         tty.
13265         * tests/test-getlogin_r.c: Include <stdio.h>.
13266         (main): Skip the test when the function fails because stdin is not a
13267         tty.
13268
13269 2010-01-11  Eric Blake  <ebb9@byu.net>
13270
13271         tests: avoid more large file warnings
13272         * tests/test-fflush.c: Avoid warning about ftell use.
13273         * tests/test-fseek.c: Avoid warning about fseek use.
13274
13275 2010-01-10  Bruno Haible  <bruno@clisp.org>
13276
13277         nproc: Work better on Linux when /proc and /sys are not mounted.
13278         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13279         as lower bound when, on glibc/Linux systems,
13280         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13281         Suggested by Pádraig Brady <P@draigbrady.com>.
13282         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13283
13284         nproc: Refactor.
13285         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13286         extracted from num_processors.
13287         (num_processors): Call it.
13288
13289 2010-01-11  Jim Meyering  <meyering@redhat.com>
13290
13291         utimecmp: avoid new warning from upcoming gcc-4.5.0
13292         * lib/utimecmp.c (BILLION): Define using #define rather than an
13293         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13294
13295 2010-01-11  Eric Blake  <ebb9@byu.net>
13296
13297         math: add portability warnings for classification macros
13298         * modules/math (Depends-on): Add warn-on-use.
13299         (Makefile.am): Provide new substitutions.
13300         * m4/math_h.m4 (gl_MATH_H): Require inline.
13301         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13302         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13303         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13304         implement warnings.
13305
13306         unistd: warn on use of environ without module
13307         * modules/unistd (Depends-on): Add warn-on-use.
13308         (Makefile.am): Provide new substitutions.
13309         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13310         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13311
13312         stdio: warn on suspicious uses
13313         * modules/stdio (Depends-on): Add warn-on-use.
13314         (Makefile.am): Provide new substitutions.
13315         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13316         fseeko.
13317         * lib/stdio.in.h (gets): Always warn on use.
13318         (fseek, ftell): Adjust when warnings are issued, and honor
13319         _GL_NO_LARGE_FILES as a way to silence the warning.
13320         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13321         any warning about large file offsets.
13322         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13323         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13324         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13325         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13326         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13327         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13328         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13329         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13330
13331         warn-on-use: new module
13332         * modules/warn-on-use: New file.
13333         * build-aux/warn-on-use.h: Likewise.
13334         * m4/warn-on-use.m4: Likewise.
13335         * MODULES.html.sh (Support for building): Mention it.
13336
13337 2010-01-10  Bruno Haible  <bruno@clisp.org>
13338
13339         Tests for module 'unistr/u32-strdup'.
13340         * modules/unistr/u32-strdup-tests: New file.
13341         * tests/unistr/test-u32-strdup.c: New file.
13342
13343         Tests for module 'unistr/u16-strdup'.
13344         * modules/unistr/u16-strdup-tests: New file.
13345         * tests/unistr/test-u16-strdup.c: New file.
13346
13347         Tests for module 'unistr/u8-strdup'.
13348         * modules/unistr/u8-strdup-tests: New file.
13349         * tests/unistr/test-u8-strdup.c: New file.
13350         * tests/unistr/test-strdup.h: New file.
13351
13352         Tests for module 'unistr/u32-strncmp'.
13353         * modules/unistr/u32-strncmp-tests: New file.
13354         * tests/unistr/test-u32-strncmp.c: New file.
13355
13356         Tests for module 'unistr/u16-strncmp'.
13357         * modules/unistr/u16-strncmp-tests: New file.
13358         * tests/unistr/test-u16-strncmp.c: New file.
13359
13360         Tests for module 'unistr/u8-strncmp'.
13361         * modules/unistr/u8-strncmp-tests: New file.
13362         * tests/unistr/test-u8-strncmp.c: New file.
13363         * tests/unistr/test-strncmp.h: New file.
13364
13365         Tests for module 'unistr/u32-strcoll'.
13366         * modules/unistr/u32-strcoll-tests: New file.
13367         * tests/unistr/test-u32-strcoll.c: New file.
13368
13369         Tests for module 'unistr/u16-strcoll'.
13370         * modules/unistr/u16-strcoll-tests: New file.
13371         * tests/unistr/test-u16-strcoll.c: New file.
13372
13373         Tests for module 'unistr/u8-strcoll'.
13374         * modules/unistr/u8-strcoll-tests: New file.
13375         * tests/unistr/test-u8-strcoll.c: New file.
13376
13377         Tests for module 'unistr/u32-strcmp'.
13378         * modules/unistr/u32-strcmp-tests: New file.
13379         * tests/unistr/test-u32-strcmp.c: New file.
13380         * tests/unistr/test-u32-strcmp.h: New file.
13381
13382         Tests for module 'unistr/u16-strcmp'.
13383         * modules/unistr/u16-strcmp-tests: New file.
13384         * tests/unistr/test-u16-strcmp.c: New file.
13385         * tests/unistr/test-u16-strcmp.h: New file.
13386
13387         Tests for module 'unistr/u8-strcmp'.
13388         * modules/unistr/u8-strcmp-tests: New file.
13389         * tests/unistr/test-u8-strcmp.c: New file.
13390         * tests/unistr/test-u8-strcmp.h: New file.
13391         * tests/unistr/test-strcmp.h: New file.
13392
13393         Tests for module 'unistr/u32-strncat'.
13394         * modules/unistr/u32-strncat-tests: New file.
13395         * tests/unistr/test-u32-strncat.c: New file.
13396
13397         Tests for module 'unistr/u16-strncat'.
13398         * modules/unistr/u16-strncat-tests: New file.
13399         * tests/unistr/test-u16-strncat.c: New file.
13400
13401         Tests for module 'unistr/u8-strncat'.
13402         * modules/unistr/u8-strncat-tests: New file.
13403         * tests/unistr/test-u8-strncat.c: New file.
13404         * tests/unistr/test-strncat.h: New file.
13405
13406         Tests for module 'unistr/u32-strcat'.
13407         * modules/unistr/u32-strcat-tests: New file.
13408         * tests/unistr/test-u32-strcat.c: New file.
13409
13410         Tests for module 'unistr/u16-strcat'.
13411         * modules/unistr/u16-strcat-tests: New file.
13412         * tests/unistr/test-u16-strcat.c: New file.
13413
13414         Tests for module 'unistr/u8-strcat'.
13415         * modules/unistr/u8-strcat-tests: New file.
13416         * tests/unistr/test-u8-strcat.c: New file.
13417         * tests/unistr/test-strcat.h: New file.
13418
13419         Tests for module 'unistr/u32-stpncpy'.
13420         * modules/unistr/u32-stpncpy-tests: New file.
13421         * tests/unistr/test-u32-stpncpy.c: New file.
13422
13423         Tests for module 'unistr/u16-stpncpy'.
13424         * modules/unistr/u16-stpncpy-tests: New file.
13425         * tests/unistr/test-u16-stpncpy.c: New file.
13426
13427         Tests for module 'unistr/u8-stpncpy'.
13428         * modules/unistr/u8-stpncpy-tests: New file.
13429         * tests/unistr/test-u8-stpncpy.c: New file.
13430         * tests/unistr/test-stpncpy.h: New file.
13431
13432         Tests for module 'unistr/u32-strncpy'.
13433         * modules/unistr/u32-strncpy-tests: New file.
13434         * tests/unistr/test-u32-strncpy.c: New file.
13435
13436         Tests for module 'unistr/u16-strncpy'.
13437         * modules/unistr/u16-strncpy-tests: New file.
13438         * tests/unistr/test-u16-strncpy.c: New file.
13439
13440         Tests for module 'unistr/u8-strncpy'.
13441         * modules/unistr/u8-strncpy-tests: New file.
13442         * tests/unistr/test-u8-strncpy.c: New file.
13443         * tests/unistr/test-strncpy.h: New file.
13444
13445         Tests for module 'unistr/u32-stpcpy'.
13446         * modules/unistr/u32-stpcpy-tests: New file.
13447         * tests/unistr/test-u32-stpcpy.c: New file.
13448
13449         Tests for module 'unistr/u16-stpcpy'.
13450         * modules/unistr/u16-stpcpy-tests: New file.
13451         * tests/unistr/test-u16-stpcpy.c: New file.
13452
13453         Tests for module 'unistr/u8-stpcpy'.
13454         * modules/unistr/u8-stpcpy-tests: New file.
13455         * tests/unistr/test-u8-stpcpy.c: New file.
13456         * tests/unistr/test-stpcpy.h: New file.
13457
13458         Tests for module 'unistr/u32-strcpy'.
13459         * modules/unistr/u32-strcpy-tests: New file.
13460         * tests/unistr/test-u32-strcpy.c: New file.
13461
13462         Tests for module 'unistr/u16-strcpy'.
13463         * modules/unistr/u16-strcpy-tests: New file.
13464         * tests/unistr/test-u16-strcpy.c: New file.
13465
13466         Tests for module 'unistr/u8-strcpy'.
13467         * modules/unistr/u8-strcpy-tests: New file.
13468         * tests/unistr/test-u8-strcpy.c: New file.
13469         * tests/unistr/test-strcpy.h: New file.
13470
13471         Tests for module 'unistr/u32-strnlen'.
13472         * modules/unistr/u32-strnlen-tests: New file.
13473         * tests/unistr/test-u32-strnlen.c: New file.
13474
13475         Tests for module 'unistr/u16-strnlen'.
13476         * modules/unistr/u16-strnlen-tests: New file.
13477         * tests/unistr/test-u16-strnlen.c: New file.
13478
13479         Tests for module 'unistr/u8-strnlen'.
13480         * modules/unistr/u8-strnlen-tests: New file.
13481         * tests/unistr/test-u8-strnlen.c: New file.
13482         * tests/unistr/test-strnlen.h: New file.
13483
13484         Tests for module 'unistr/u32-strlen'.
13485         * modules/unistr/u32-strlen-tests: New file.
13486         * tests/unistr/test-u32-strlen.c: New file.
13487
13488         Tests for module 'unistr/u16-strlen'.
13489         * modules/unistr/u16-strlen-tests: New file.
13490         * tests/unistr/test-u16-strlen.c: New file.
13491
13492         Tests for module 'unistr/u8-strlen'.
13493         * modules/unistr/u8-strlen-tests: New file.
13494         * tests/unistr/test-u8-strlen.c: New file.
13495
13496         Tests for module 'unistr/u32-prev'.
13497         * modules/unistr/u32-prev-tests: New file.
13498         * tests/unistr/test-u32-prev.c: New file.
13499
13500         Tests for module 'unistr/u16-prev'.
13501         * modules/unistr/u16-prev-tests: New file.
13502         * tests/unistr/test-u16-prev.c: New file.
13503
13504         Tests for module 'unistr/u8-prev'.
13505         * modules/unistr/u8-prev-tests: New file.
13506         * tests/unistr/test-u8-prev.c: New file.
13507
13508         Tests for module 'unistr/u32-next'.
13509         * modules/unistr/u32-next-tests: New file.
13510         * tests/unistr/test-u32-next.c: New file.
13511
13512         Tests for module 'unistr/u16-next'.
13513         * modules/unistr/u16-next-tests: New file.
13514         * tests/unistr/test-u16-next.c: New file.
13515
13516         Tests for module 'unistr/u8-next'.
13517         * modules/unistr/u8-next-tests: New file.
13518         * tests/unistr/test-u8-next.c: New file.
13519
13520         Tests for module 'unistr/u32-strmbtouc'.
13521         * modules/unistr/u32-strmbtouc-tests: New file.
13522         * tests/unistr/test-u32-strmbtouc.c: New file.
13523
13524         Tests for module 'unistr/u16-strmbtouc'.
13525         * modules/unistr/u16-strmbtouc-tests: New file.
13526         * tests/unistr/test-u16-strmbtouc.c: New file.
13527
13528         Tests for module 'unistr/u8-strmbtouc'.
13529         * modules/unistr/u8-strmbtouc-tests: New file.
13530         * tests/unistr/test-u8-strmbtouc.c: New file.
13531
13532         Tests for module 'unistr/u32-strmblen'.
13533         * modules/unistr/u32-strmblen-tests: New file.
13534         * tests/unistr/test-u32-strmblen.c: New file.
13535
13536         Tests for module 'unistr/u16-strmblen'.
13537         * modules/unistr/u16-strmblen-tests: New file.
13538         * tests/unistr/test-u16-strmblen.c: New file.
13539
13540         Tests for module 'unistr/u8-strmblen'.
13541         * modules/unistr/u8-strmblen-tests: New file.
13542         * tests/unistr/test-u8-strmblen.c: New file.
13543
13544         Tests for module 'unistr/u32-cpy-alloc'.
13545         * modules/unistr/u32-cpy-alloc-tests: New file.
13546         * tests/unistr/test-u32-cpy-alloc.c: New file.
13547
13548         Tests for module 'unistr/u16-cpy-alloc'.
13549         * modules/unistr/u16-cpy-alloc-tests: New file.
13550         * tests/unistr/test-u16-cpy-alloc.c: New file.
13551
13552         Tests for module 'unistr/u8-cpy-alloc'.
13553         * modules/unistr/u8-cpy-alloc-tests: New file.
13554         * tests/unistr/test-u8-cpy-alloc.c: New file.
13555         * tests/unistr/test-cpy-alloc.h: New file.
13556
13557         Tests for module 'unistr/u32-mbsnlen'.
13558         * modules/unistr/u32-mbsnlen-tests: New file.
13559         * tests/unistr/test-u32-mbsnlen.c: New file.
13560
13561         Tests for module 'unistr/u16-mbsnlen'.
13562         * modules/unistr/u16-mbsnlen-tests: New file.
13563         * tests/unistr/test-u16-mbsnlen.c: New file.
13564
13565         Tests for module 'unistr/u8-mbsnlen'.
13566         * modules/unistr/u8-mbsnlen-tests: New file.
13567         * tests/unistr/test-u8-mbsnlen.c: New file.
13568
13569         Tests for module 'unistr/u32-chr'.
13570         * modules/unistr/u32-chr-tests: New file.
13571         * tests/unistr/test-u32-chr.c: New file.
13572
13573         Tests for module 'unistr/u16-chr'.
13574         * modules/unistr/u16-chr-tests: New file.
13575         * tests/unistr/test-u16-chr.c: New file.
13576
13577         Tests for module 'unistr/u8-chr'.
13578         * modules/unistr/u8-chr-tests: New file.
13579         * tests/unistr/test-u8-chr.c: New file.
13580         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13581
13582         Tests for module 'unistr/u32-cmp2'.
13583         * modules/unistr/u32-cmp2-tests: New file.
13584         * tests/unistr/test-u32-cmp2.c: New file.
13585
13586         Tests for module 'unistr/u16-cmp2'.
13587         * modules/unistr/u16-cmp2-tests: New file.
13588         * tests/unistr/test-u16-cmp2.c: New file.
13589
13590         Tests for module 'unistr/u8-cmp2'.
13591         * modules/unistr/u8-cmp2-tests: New file.
13592         * tests/unistr/test-u8-cmp2.c: New file.
13593         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13594
13595         Tests for module 'unistr/u32-cmp'.
13596         * modules/unistr/u32-cmp-tests: New file.
13597         * tests/unistr/test-u32-cmp.c: New file.
13598
13599         Tests for module 'unistr/u16-cmp'.
13600         * modules/unistr/u16-cmp-tests: New file.
13601         * tests/unistr/test-u16-cmp.c: New file.
13602
13603         Tests for module 'unistr/u8-cmp'.
13604         * modules/unistr/u8-cmp-tests: New file.
13605         * tests/unistr/test-u8-cmp.c: New file.
13606         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13607
13608         Tests for module 'unistr/u32-set'.
13609         * modules/unistr/u32-set-tests: New file.
13610         * tests/unistr/test-u32-set.c: New file.
13611
13612         Tests for module 'unistr/u16-set'.
13613         * modules/unistr/u16-set-tests: New file.
13614         * tests/unistr/test-u16-set.c: New file.
13615
13616         Tests for module 'unistr/u8-set'.
13617         * modules/unistr/u8-set-tests: New file.
13618         * tests/unistr/test-u8-set.c: New file.
13619         * tests/unistr/test-set.h: New file.
13620
13621         Tests for module 'unistr/u32-move'.
13622         * modules/unistr/u32-move-tests: New file.
13623         * tests/unistr/test-u32-move.c: New file.
13624
13625         Tests for module 'unistr/u16-move'.
13626         * modules/unistr/u16-move-tests: New file.
13627         * tests/unistr/test-u16-move.c: New file.
13628
13629         Tests for module 'unistr/u8-move'.
13630         * modules/unistr/u8-move-tests: New file.
13631         * tests/unistr/test-u8-move.c: New file.
13632         * tests/unistr/test-move.h: New file.
13633
13634         Tests for module 'unistr/u32-cpy'.
13635         * modules/unistr/u32-cpy-tests: New file.
13636         * tests/unistr/test-u32-cpy.c: New file.
13637
13638         Tests for module 'unistr/u16-cpy'.
13639         * modules/unistr/u16-cpy-tests: New file.
13640         * tests/unistr/test-u16-cpy.c: New file.
13641
13642         Tests for module 'unistr/u8-cpy'.
13643         * modules/unistr/u8-cpy-tests: New file.
13644         * tests/unistr/test-u8-cpy.c: New file.
13645         * tests/unistr/test-cpy.h: New file.
13646
13647 2010-01-09  Bruno Haible  <bruno@clisp.org>
13648
13649         Tests for module 'unistr/u32-uctomb'.
13650         * modules/unistr/u32-uctomb-tests: New file.
13651         * tests/unistr/test-u32-uctomb.c: New file.
13652
13653         Tests for module 'unistr/u16-uctomb'.
13654         * modules/unistr/u16-uctomb-tests: New file.
13655         * tests/unistr/test-u16-uctomb.c: New file.
13656
13657         Tests for module 'unistr/u8-uctomb'.
13658         * modules/unistr/u8-uctomb-tests: New file.
13659         * tests/unistr/test-u8-uctomb.c: New file.
13660
13661         Tests for module 'unistr/u32-mbtoucr'.
13662         * modules/unistr/u32-mbtoucr-tests: New file.
13663         * tests/unistr/test-u32-mbtoucr.c: New file.
13664
13665         Tests for module 'unistr/u16-mbtoucr'.
13666         * modules/unistr/u16-mbtoucr-tests: New file.
13667         * tests/unistr/test-u16-mbtoucr.c: New file.
13668
13669         Tests for module 'unistr/u8-mbtoucr'.
13670         * modules/unistr/u8-mbtoucr-tests: New file.
13671         * tests/unistr/test-u8-mbtoucr.c: New file.
13672
13673         Tests for module 'unistr/u32-mbtouc'.
13674         * modules/unistr/u32-mbtouc-tests: New file.
13675         * tests/unistr/test-u32-mbtouc.c: New file.
13676
13677         Tests for module 'unistr/u16-mbtouc'.
13678         * modules/unistr/u16-mbtouc-tests: New file.
13679         * tests/unistr/test-u16-mbtouc.c: New file.
13680
13681         Tests for module 'unistr/u8-mbtouc'.
13682         * modules/unistr/u8-mbtouc-tests: New file.
13683         * tests/unistr/test-u8-mbtouc.c: New file.
13684
13685         Tests for module 'unistr/u32-mbtouc-unsafe'.
13686         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13687         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13688         * tests/unistr/test-u32-mbtouc.h: New file.
13689
13690         Tests for module 'unistr/u16-mbtouc-unsafe'.
13691         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13692         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13693         * tests/unistr/test-u16-mbtouc.h: New file.
13694
13695         Tests for module 'unistr/u8-mbtouc-unsafe'.
13696         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13697         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13698         * tests/unistr/test-u8-mbtouc.h: New file.
13699
13700         Tests for module 'unistr/u32-mblen'.
13701         * modules/unistr/u32-mblen-tests: New file.
13702         * tests/unistr/test-u32-mblen.c: New file.
13703
13704         Tests for module 'unistr/u16-mblen'.
13705         * modules/unistr/u16-mblen-tests: New file.
13706         * tests/unistr/test-u16-mblen.c: New file.
13707
13708         Tests for module 'unistr/u8-mblen'.
13709         * modules/unistr/u8-mblen-tests: New file.
13710         * tests/unistr/test-u8-mblen.c: New file.
13711
13712         Tests for module 'unistr/u32-to-u16'.
13713         * modules/unistr/u32-to-u16-tests: New file.
13714         * tests/unistr/test-u32-to-u16.c: New file.
13715
13716         Tests for module 'unistr/u32-to-u8'.
13717         * modules/unistr/u32-to-u8-tests: New file.
13718         * tests/unistr/test-u32-to-u8.c: New file.
13719
13720         Tests for module 'unistr/u16-to-u32'.
13721         * modules/unistr/u16-to-u32-tests: New file.
13722         * tests/unistr/test-u16-to-u32.c: New file.
13723
13724         Tests for module 'unistr/u16-to-u8'.
13725         * modules/unistr/u16-to-u8-tests: New file.
13726         * tests/unistr/test-u16-to-u8.c: New file.
13727
13728         Tests for module 'unistr/u8-to-u32'.
13729         * modules/unistr/u8-to-u32-tests: New file.
13730         * tests/unistr/test-u8-to-u32.c: New file.
13731
13732         Tests for module 'unistr/u8-to-u16'.
13733         * modules/unistr/u8-to-u16-tests: New file.
13734         * tests/unistr/test-u8-to-u16.c: New file.
13735
13736         Tests for module 'unistr/u32-check'.
13737         * modules/unistr/u32-check-tests: New file.
13738         * tests/unistr/test-u32-check.c: New file.
13739
13740         Tests for module 'unistr/u16-check'.
13741         * modules/unistr/u16-check-tests: New file.
13742         * tests/unistr/test-u16-check.c: New file.
13743
13744         Tests for module 'unistr/u8-check'.
13745         * modules/unistr/u8-check-tests: New file.
13746         * tests/unistr/test-u8-check.c: New file.
13747
13748         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13749         (category_equals): New function.
13750         (main): Add more tests.
13751         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13752
13753         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13754
13755 2010-01-10  Bruno Haible  <bruno@clisp.org>
13756
13757         unistr/u*-strcoll: Try harder to distinguish different strings.
13758         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13759         compare s1 and s2 to see if they are different.
13760
13761 2010-01-10  Bruno Haible  <bruno@clisp.org>
13762
13763         unistr/u*-stpncpy: Fix the return value.
13764         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13765         description of the return value consistent with stpncpy in glibc.
13766         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13767         written non-NUL unit.
13768
13769 2010-01-10  Bruno Haible  <bruno@clisp.org>
13770
13771         unistr/u*-next: Add missing dependencies.
13772         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13773         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13774         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13775
13776 2010-01-10  Bruno Haible  <bruno@clisp.org>
13777
13778         unistr/u8-mbsnlen: Fix return value for incomplete character.
13779         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13780         u8_mblen.
13781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13782         Remove unistr/u8-mblen.
13783         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13784         u16_mblen.
13785         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13786         Remove unistr/u16-mblen.
13787
13788 2010-01-10  Bruno Haible  <bruno@clisp.org>
13789
13790         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13791         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13792         Reported by Brian Gough <bjg@gnu.org> and
13793         Chris Clayton <chris2553@googlemail.com> via
13794         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13795
13796 2010-01-09  Bruno Haible  <bruno@clisp.org>
13797
13798         unistr/u16-to-u32: Reject invalid input.
13799         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13800         u16_mbtouc.
13801         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13802         Remove unistr/u16-mbtouc.
13803
13804         unistr/u16-to-u8: Reject invalid input.
13805         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13806         u16_mbtouc.
13807         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13808         Remove unistr/u16-mbtouc.
13809
13810         unistr/u8-to-u32: Reject invalid input.
13811         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13812         u8_mbtouc.
13813         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13814         Remove unistr/u8-mbtouc.
13815
13816         unistr/u8-to-u16: Reject invalid input.
13817         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13818         u8_mbtouc.
13819         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13820         Remove unistr/u8-mbtouc.
13821
13822 2010-01-09  Bruno Haible  <bruno@clisp.org>
13823
13824         Tests for module 'getlogin'.
13825         * modules/getlogin-tests: New file.
13826         * tests/test-getlogin.c: New file.
13827
13828         New module 'getlogin'.
13829         * lib/unistd.in.h (getlogin): New declaration.
13830         * lib/getlogin.c: New file.
13831         * m4/getlogin.m4: New file.
13832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13833         HAVE_GETLOGIN.
13834         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13835         HAVE_GETLOGIN.
13836         * modules/getlogin: New file.
13837         * doc/posix-functions/getlogin.texi: Mention the new module.
13838         Reported by John W. Eaton <jwe@gnu.org>.
13839
13840 2010-01-09  Bruno Haible  <bruno@clisp.org>
13841
13842         getlogin_r: Support for native Windows.
13843         * lib/getlogin_r.c: Include <windows.h>
13844         (getlogin_r): Implement for native Windows.
13845         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13846         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13847         via John W. Eaton <jwe@gnu.org>.
13848
13849 2010-01-09  Bruno Haible  <bruno@clisp.org>
13850
13851         getlogin_r: Small fixes.
13852         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13853         succeeds.
13854         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13855         before testing whether getlogin_r is declared. No need to set
13856         HAVE_DECL_GETLOGIN_R to 1.
13857         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13858
13859 2010-01-09  Bruno Haible  <bruno@clisp.org>
13860
13861         * lib/unistd.in.h (getlogin_r): Add comment.
13862
13863 2010-01-09  Bruno Haible  <bruno@clisp.org>
13864
13865         Tests for module 'getlogin_r'.
13866         * modules/getlogin_r-tests: New file.
13867         * tests/test-getlogin_r.c: New file.
13868
13869 2010-01-09  Jim Meyering  <meyering@redhat.com>
13870
13871         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13872         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13873         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13874
13875 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13876
13877         * lib/dup2.c (rpl_dup2): Improve comment.
13878
13879 2010-01-08  Eric Blake  <ebb9@byu.net>
13880
13881         maint.mk: allow packages to add makefile @@ exceptions
13882         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13883         (sc_makefile_check): Rename...
13884         (sc_makefile_at_at_check): ...to this, and use hook.
13885
13886         dup2: work around mingw bug
13887         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13888         Reported by Simon Josefsson.
13889
13890 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13891
13892         glob: Fix C++ compilation.
13893         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13894         C++.
13895
13896 2010-01-07  Bruno Haible  <bruno@clisp.org>
13897
13898         Fix indentation of wctype.in.h, broken since 2007-01-06.
13899         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13900
13901 2010-01-07  Bruno Haible  <bruno@clisp.org>
13902
13903         mbslen: Avoid collision with system function.
13904         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13905         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13906         * m4/mbslen.m4: New file.
13907         * modules/mbslen (Files): Add it.
13908         (configure.ac): Invoke gl_MBSLEN.
13909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13910         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13912         via Ian Beckwith <ianb@erislabs.net>.
13913
13914 2010-01-07  Bruno Haible  <bruno@clisp.org>
13915
13916         dirent: Document the last fix.
13917         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13918
13919 2010-01-07  Bruno Haible  <bruno@clisp.org>
13920
13921         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13922         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13923         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13924         va_list are defined.
13925         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13926         Reported by Eric Blake.
13927
13928 2010-01-07  Bruno Haible  <bruno@clisp.org>
13929
13930         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13931         * modules/xlist (Depends-on): Add 'list',
13932         * modules/xoset (Depends-on): Add 'oset'.
13933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13934
13935 2010-01-07  Bruno Haible  <bruno@clisp.org>
13936
13937         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13938         * doc/posix-functions/strncasecmp.texi: Likewise.
13939
13940 2010-01-07  Bruno Haible  <bruno@clisp.org>
13941
13942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13943
13944 2010-01-07  John W. Eaton  <jwe@octave.org>
13945
13946         wctype: allow C++ use
13947         * lib/wctype.in.h: Add extern "C" block for C++.
13948
13949 2010-01-06  Eric Blake  <ebb9@byu.net>
13950
13951         maint.mk: detect incorrect GFDL usage
13952         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13953
13954 2010-01-06  Jim Meyering  <meyering@redhat.com>
13955         and Eric Blake  <ebb9@byu.net>
13956
13957         maint.mk: ignore multi-line copyright in NEWS
13958         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13959
13960 2010-01-06  Eric Blake  <ebb9@byu.net>
13961
13962         select: add missing dependency
13963         * modules/select-tests (Depends-on): Move sockets dependency...
13964         * modules/select (Depends-on): ...here.
13965         Reported by Ian Beckwith.
13966
13967         doc: regenerate INSTALL
13968         * doc/INSTALL: Reflect recent autoconf update.
13969         * doc/INSTALL.ISO: Likewise.
13970         * doc/INSTALL.UTF-8: Likewise.
13971
13972         pread: fix compilation on glibc
13973         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13974         Reported by Ralf Wildenhues.
13975
13976         dirent: fix test failure
13977         * lib/dirent.in.h (includes): Guarantee ino_t.
13978         Reported by Ralf Wildenhues.
13979
13980 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13981
13982         linkat, renameat: avoid bad free
13983         * lib/at-func2.c (at_func2): Fix typo.
13984         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13985
13986 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13987
13988         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13989         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13990         to avoid failure of symlink test later.
13991
13992 2010-01-06  Eric Blake  <ebb9@byu.net>
13993
13994         stdio, unistd: guarantee ssize_t
13995         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13996         2008 are exposed when needed.
13997         * lib/stdio.in.h (includes): Likewise.
13998         Reported by Ralf Wildenhues.
13999
14000 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14001
14002         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14003         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14004         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14005
14006 2010-01-06  Jim Meyering  <meyering@redhat.com>
14007
14008         readtokens: this module *does* require xalloc.h
14009         It uses only functions that were omitted by the old syntax-check rule.
14010         * lib/readtokens.c: Include "xalloc.h" once again.
14011         * modules/readtokens (Depends-on): Add xalloc.
14012         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14013
14014 2010-01-05  Eric Blake  <ebb9@byu.net>
14015
14016         maint: support 'make announcement' from a VPATH build
14017         * top/maint.mk (announcement): Look for correct NEWS file.
14018
14019 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14020
14021         utimens (fdutimens): ignore a negative FD, per contract
14022         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14023         when we have a valid file descriptor.  Otherwise, using a brand
14024         new glibc (with just-patched futimens that now fails with EBADF)
14025         would cause this function to fail with ENOSYS.
14026         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14027         See also http://bugzilla.redhat.com/552320.
14028
14029 2010-01-05  Eric Blake  <ebb9@byu.net>
14030
14031         strcase: document what it provides
14032         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14033         gnulib module.
14034         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14035         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14036
14037 2010-01-05  Jim Meyering  <meyering@redhat.com>
14038
14039         maint: remove useless inclusions of "xalloc.h"
14040         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14041         * lib/readtokens.c: Likewise.
14042         * lib/same.c: Likewise.
14043         * modules/getloadavg (Depends-on): Remove xalloc.
14044         * modules/readtokens: Likewise.
14045         * modules/same: Likewise.
14046
14047         maint.mk: include 4 more function names in alloca.h-checking regexp
14048         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14049         regexp.  Before, we would give a false-positive (saying alloca.h
14050         is included unnecessarily) when the only uses involved omitted symbols.
14051
14052         xalloc.h: use consistent formatting
14053         * lib/xalloc.h: Move declarations to start in the first column.
14054
14055 2010-01-05  Eric Blake  <ebb9@byu.net>
14056
14057         mkdir: avoid xalloc
14058         * lib/mkdir.c (includes): Drop unused header.
14059         Reported by John W. Eaton.
14060
14061 2010-01-04  Jim Meyering  <meyering@redhat.com>
14062
14063         nl_langinfo: avoid configure-time syntax error
14064         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14065         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14066         the empty string.  Don't let that provoke a shell syntax error.
14067
14068         regcomp, regexec, fnmatch: avoid array bounds read error
14069         * lib/regcomp.c (build_equiv_class): From glibc:
14070         Use only the low 24 bits of a findidx return value as an index
14071         into the weights array.  Patch by Ulrich Drepper:
14072         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14073         * lib/regexec.c (check_node_accept_bytes): Likewise.
14074         * lib/fnmatch_loop.c (FCT): Likewise.
14075
14076         regcomp: skip collseq lookup when there are no rules
14077         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14078         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14079
14080         regcomp: recognize ill-formed { } expressions
14081         * lib/regcomp.c (parse_dup_op): From glibc:
14082         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14083
14084         regcomp: fix typo in comment
14085         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14086         s/satisfy/satisfies/.
14087
14088         regcomp: sync from glibc: remove dead store
14089         * lib/regcomp.c (duplicate_node_closure): Remove useless
14090         search_duplicated_node call and dead store.
14091
14092         regcomp: sync from glibc; always use nl_langinfo
14093         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14094         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14095         * modules/regex (Depends-on): Add nl_langinfo.
14096
14097 2010-01-04  Eric Blake  <ebb9@byu.net>
14098
14099         fdopendir: fix configure test
14100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14101
14102 2010-01-01  Bruno Haible  <bruno@clisp.org>
14103
14104         wchar: Remove unused configure check.
14105         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14106
14107 2010-01-01  Eric Blake  <ebb9@byu.net>
14108
14109         headers: make check of system header explicit
14110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14111         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14112         ourselves.
14113         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14117         internals.
14118         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14119         missing.
14120         Suggested by Bruno Haible.
14121
14122 2010-01-01  Jim Meyering  <meyering@redhat.com>
14123
14124         ChangeLog: tweak to eliminate unnecessary copyright line
14125         * ChangeLog: Remove a copyright line that was mistakenly updated
14126         by today's update-copyright run.  Reported by Eric Blake.
14127
14128         test-update-copyright: don't let envvar setting cause test failure
14129         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14130
14131 2010-01-01  Bruno Haible  <bruno@clisp.org>
14132
14133         localename: Avoid gcc warning.
14134         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14135         function if it is not used.
14136
14137 2010-01-01  Jim Meyering  <meyering@redhat.com>
14138
14139         update nearly all FSF copyright year lists to include 2010
14140         Use the same procedure as for 2009, outlined in
14141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14142
14143         version-etc: set COPYRIGHT_YEAR to 2010
14144         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14145
14146 2009-12-31  Eric Blake  <ebb9@byu.net>
14147
14148         doc: correct availability of cygwin 1.5.x getopt
14149         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14150         variables.
14151         * doc/posix-functions/opterr.texi (opterr): Likewise.
14152         * doc/posix-functions/optind.texi (optind): Likewise.
14153         * doc/posix-functions/optopt.texi (optopt): Likewise.
14154         * doc/posix-functions/tzname.texi (tzname): Likewise.
14155
14156         openat: update maintainer
14157         * modules/openat (Maintainer): Add myself.
14158
14159         utimens: avoid shadowing warning
14160         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14161         buffers into one, to avoid shadowing, as well as avoiding a
14162         redundant stat.
14163         Reported by Jim Meyering.
14164
14165         test-dup2: avoid compiler warning
14166         * tests/test-dup2.c (is_inheritable): Only define if used.
14167
14168 2010-01-01  Bruno Haible  <bruno@clisp.org>
14169
14170         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14171         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14172         defined, use wctomb instead of wcrtomb.
14173
14174 2010-01-01  Bruno Haible  <bruno@clisp.org>
14175
14176         iconv: Reject native Solaris iconv.
14177         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14178         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14179
14180 2009-12-31  Bruno Haible  <bruno@clisp.org>
14181
14182         * tests/test-signal.c (main): Remove test of 'SIG'.
14183
14184 2009-12-31  Bruno Haible  <bruno@clisp.org>
14185
14186         spawn: Fix incomplete fix.
14187         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14188         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14189         warnings for GNULIB_POSIXCHECK again.
14190         Reported by Eric Blake.
14191
14192 2009-12-31  Bruno Haible  <bruno@clisp.org>
14193
14194         Avoid namespace pollution on glibc systems.
14195         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14196         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14197         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14198         glibc systems.
14199
14200 2009-12-31  Bruno Haible  <bruno@clisp.org>
14201
14202         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14203         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14205         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14206         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14207         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14208         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14209
14210 2009-12-31  Bruno Haible  <bruno@clisp.org>
14211
14212         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14213         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14214         afterwards.
14215
14216 2009-12-31  Bruno Haible  <bruno@clisp.org>
14217
14218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14219         SYS_UTSNAME_H.
14220
14221 2009-12-31  Bruno Haible  <bruno@clisp.org>
14222
14223         spawn: Fix misapplied patch.
14224         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14225         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14226         warnings for GNULIB_POSIXCHECK.
14227
14228 2009-12-31  Bruno Haible  <bruno@clisp.org>
14229
14230         times: Update after sys_times changed.
14231         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14232         * modules/times (Files): Add it.
14233         (configure.ac): Invoke gl_FUNC_TIMES.
14234
14235 2009-12-31  Bruno Haible  <bruno@clisp.org>
14236
14237         Use AC_C_INLINE where necessary.
14238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14241         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14242         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14243         * m4/mbiter.m4 (gl_MBITER): Likewise.
14244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14245         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14246         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14247         * modules/u64 (configure.ac): Likewise.
14248
14249 2009-12-31  Bruno Haible  <bruno@clisp.org>
14250
14251         Use AC_C_INLINE instead of module 'inline' where possible.
14252         * modules/inline (Description): Clarify purpose.
14253         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14254         * modules/count-one-bits (Depends-on): Remove inline.
14255         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14256         * modules/openat (Depends-on): Remove inline.
14257         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14258         instead of depending on module 'inline'.
14259         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14260         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14261         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14262         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14263         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14264         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14265         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14266         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14267         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14268         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14269         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14270         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14271         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14272         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14273         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14274         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14275         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14276         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14277         Likewise.
14278         * modules/unictype/property-ascii-hex-digit (Depends-on,
14279         configure.ac): Likewise.
14280         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14281         configure.ac): Likewise.
14282         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14283         configure.ac): Likewise.
14284         * modules/unictype/property-bidi-block-separator (Depends-on,
14285         configure.ac): Likewise.
14286         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14287         configure.ac): Likewise.
14288         * modules/unictype/property-bidi-common-separator (Depends-on,
14289         configure.ac): Likewise.
14290         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14291         Likewise.
14292         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14293         configure.ac): Likewise.
14294         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14295         configure.ac): Likewise.
14296         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14297         configure.ac): Likewise.
14298         * modules/unictype/property-bidi-european-digit (Depends-on,
14299         configure.ac): Likewise.
14300         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14301         configure.ac): Likewise.
14302         * modules/unictype/property-bidi-left-to-right (Depends-on,
14303         configure.ac): Likewise.
14304         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14305         configure.ac): Likewise.
14306         * modules/unictype/property-bidi-other-neutral (Depends-on,
14307         configure.ac): Likewise.
14308         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14309         Likewise.
14310         * modules/unictype/property-bidi-segment-separator (Depends-on,
14311         configure.ac): Likewise.
14312         * modules/unictype/property-bidi-whitespace (Depends-on,
14313         configure.ac): Likewise.
14314         * modules/unictype/property-combining (Depends-on, configure.ac):
14315         Likewise.
14316         * modules/unictype/property-composite (Depends-on, configure.ac):
14317         Likewise.
14318         * modules/unictype/property-currency-symbol (Depends-on,
14319         configure.ac): Likewise.
14320         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14321         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14322         Likewise.
14323         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14324         configure.ac): Likewise.
14325         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14326         Likewise.
14327         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14328         Likewise.
14329         * modules/unictype/property-extender (Depends-on, configure.ac):
14330         Likewise.
14331         * modules/unictype/property-format-control (Depends-on, configure.ac):
14332         Likewise.
14333         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14334         Likewise.
14335         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14336         Likewise.
14337         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14338         Likewise.
14339         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14340         Likewise.
14341         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14342         Likewise.
14343         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14344         Likewise.
14345         * modules/unictype/property-id-start (Depends-on, configure.ac):
14346         Likewise.
14347         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14348         Likewise.
14349         * modules/unictype/property-ids-binary-operator (Depends-on,
14350         configure.ac): Likewise.
14351         * modules/unictype/property-ids-trinary-operator (Depends-on,
14352         configure.ac): Likewise.
14353         * modules/unictype/property-ignorable-control (Depends-on,
14354         configure.ac): Likewise.
14355         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14356         Likewise.
14357         * modules/unictype/property-join-control (Depends-on, configure.ac):
14358         Likewise.
14359         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14360         Likewise.
14361         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14362         Likewise.
14363         * modules/unictype/property-logical-order-exception (Depends-on,
14364         configure.ac): Likewise.
14365         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14366         Likewise.
14367         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14368         * modules/unictype/property-non-break (Depends-on, configure.ac):
14369         Likewise.
14370         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14371         Likewise.
14372         * modules/unictype/property-numeric (Depends-on, configure.ac):
14373         Likewise.
14374         * modules/unictype/property-other-alphabetic (Depends-on,
14375         configure.ac): Likewise.
14376         * modules/unictype/property-other-default-ignorable-code-point
14377         (Depends-on, configure.ac): Likewise.
14378         * modules/unictype/property-other-grapheme-extend (Depends-on,
14379         configure.ac): Likewise.
14380         * modules/unictype/property-other-id-continue (Depends-on,
14381         configure.ac): Likewise.
14382         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14383         Likewise.
14384         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14385         Likewise.
14386         * modules/unictype/property-other-math (Depends-on, configure.ac):
14387         Likewise.
14388         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14389         Likewise.
14390         * modules/unictype/property-paired-punctuation (Depends-on,
14391         configure.ac): Likewise.
14392         * modules/unictype/property-paragraph-separator (Depends-on,
14393         configure.ac): Likewise.
14394         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14395         Likewise.
14396         * modules/unictype/property-pattern-white-space (Depends-on,
14397         configure.ac): Likewise.
14398         * modules/unictype/property-private-use (Depends-on, configure.ac):
14399         Likewise.
14400         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14401         Likewise.
14402         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14403         Likewise.
14404         * modules/unictype/property-radical (Depends-on, configure.ac):
14405         Likewise.
14406         * modules/unictype/property-sentence-terminal (Depends-on,
14407         configure.ac): Likewise.
14408         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14409         Likewise.
14410         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14411         * modules/unictype/property-terminal-punctuation (Depends-on,
14412         configure.ac): Likewise.
14413         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14414         Likewise.
14415         * modules/unictype/property-unassigned-code-value (Depends-on,
14416         configure.ac): Likewise.
14417         * modules/unictype/property-unified-ideograph (Depends-on,
14418         configure.ac): Likewise.
14419         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14420         Likewise.
14421         * modules/unictype/property-variation-selector (Depends-on,
14422         configure.ac): Likewise.
14423         * modules/unictype/property-white-space (Depends-on, configure.ac):
14424         Likewise.
14425         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14426         Likewise.
14427         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14428         Likewise.
14429         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14430         Likewise.
14431         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14432         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14433         Likewise.
14434
14435 2009-12-31  Bruno Haible  <bruno@clisp.org>
14436
14437         Remove unnecessary AC_C_INLINE invocation.
14438         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14439         since 2009-08-21.
14440
14441 2009-12-31  Jim Meyering  <meyering@redhat.com>
14442
14443         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14444         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14445         With this change, we can all remove the gpg_key_ID = ... definition
14446         from our respective cfg.mk files.
14447
14448         maint.mk: create announcement template in ~/, not in /tmp
14449         * top/maint.mk (emit_upload_commands): Adjust.
14450         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14451         Remove temporary file, .ci-msg.
14452
14453 2009-12-31  Eric Blake  <ebb9@byu.net>
14454
14455         link-warning: always build headers with link warnings
14456         * modules/arpa_inet (Makefile.am): Always build replacement
14457         header.
14458         * modules/ctype (Makefile.am): Likewise.
14459         * modules/dirent (Makefile.am): Likewise.
14460         * modules/inttypes (Makefile.am): Likewise.
14461         * modules/langinfo (Makefile.am): Likewise.
14462         * modules/locale (Makefile.am): Likewise.
14463         * modules/spawn (Makefile.am): Likewise.
14464         * modules/sys_file (Makefile.am): Likewise.
14465         * modules/sys_ioctl (Makefile.am): Likewise.
14466         * modules/sys_select (Makefile.am): Likewise.
14467         * modules/sys_socket (Makefile.am): Likewise.
14468         * modules/sys_times (Makefile.am): Likewise.
14469         * modules/sys_utsname (Makefile.am): Likewise.
14470         * modules/sys_wait (Makefile.am): Likewise.
14471         * modules/wchar (Makefile.am): Likewise.
14472         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14473         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14474         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14475         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14476         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14477         Likewise.
14478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14481         Likewise.
14482         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14483         Likewise.
14484         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14486         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14488         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14490         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14491         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14492         (gl_WCHAR_H_DEFAULTS): Likewise.
14493
14494 2009-12-31  Eric Blake  <ebb9@byu.net>
14495
14496         signal, spawn: use link warnings
14497         * lib/signal.in.h (sigset_t): Make unconditional.
14498         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14499         (sigpending, sigprocmask, sigaction): Add link warnings.
14500         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14501         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14502         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14503         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14504         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14505         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14506         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14507         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14508         (posix_spawn_file_actions_destroy)
14509         (posix_spawn_file_actions_addopen)
14510         (posix_spawn_file_actions_addclose)
14511         (posix_spawn_file_actions_adddup2): Likewise.
14512         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14513         * tests/test-signal.c (main): Enhance test.
14514
14515         spawn: improve wrapper support
14516         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14517         (gl_SPAWN_H_DEFAULTS): New defaults.
14518         * modules/spawn (Makefile.am): Substitute them.
14519         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14520         Only declare if missing or broken.
14521
14522         sys_times, sys_utsname: use include_next
14523         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14524         header.
14525         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14526         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14527         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14528         * modules/sys_times (Depends-on): Add include_next.
14529         (Makefile.am): Substitute additional values.
14530         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14531         * lib/sys_times.in.h (includes): Include native header, if
14532         available.
14533         * lib/sys_utsname.in.h (includes): Likewise.
14534         * tests/test-sys_times.c (main): Enhance test.
14535
14536         fdutimensat: revert prior patch
14537         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14538         utimens.h.
14539         Reported by Bruno Haible.
14540
14541 2009-12-30  Eric Blake  <ebb9@byu.net>
14542
14543         sys_wait: drop link-warning dependency
14544         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14545         link-warning efforts.
14546         * lib/sys_wait.in.h: Likewise.
14547
14548         fdutimensat: remove bogus dependency
14549         * modules/fdutimensat (Depends-on): Drop inline.
14550
14551         unistd: fix typo
14552         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14553
14554 2009-12-30  Bruno Haible  <bruno@clisp.org>
14555
14556         Fix compilation error with Solaris cc.
14557         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14558         * lib/unicase/u16-is-invariant.c: Likewise.
14559         * lib/unicase/u32-is-invariant.c: Likewise.
14560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14561
14562 2009-12-30  Bruno Haible  <bruno@clisp.org>
14563
14564         Fix test crash.
14565         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14566         locales.
14567         Reported by Simon Josefsson <simon@josefsson.org>.
14568
14569 2009-12-30  Bruno Haible  <bruno@clisp.org>
14570
14571         Fix compilation error on most platforms.
14572         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14573         Reported by Simon Josefsson <simon@josefsson.org>
14574         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14575
14576 2009-12-30  Eric Blake  <ebb9@byu.net>
14577
14578         futimens, utimensat: work around ntfs-3g bug
14579         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14580         a ctime bug is present, and expand workaround to cover ntfs-3g.
14581         * lib/utimens.c (fdutimens, lutimens): Likewise.
14582         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14583         (validate_timespec): Adjust return value.
14584         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14585         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14586         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14587
14588 2009-12-29  Eric Blake  <ebb9@byu.net>
14589
14590         link-warning: make usage consistent
14591         * modules/ctype (Depends-on): Add link-warning.
14592         (Makefile.am): Update rules accordingly.
14593         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14594         * modules/locale (Depends-on, Makefile.am): Likewise.
14595         * modules/sys_file (Makefile.am): Likewise.
14596         * modules/getopt-posix (Makefile.am): Delete unused link warning
14597         efforts.
14598         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14599         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14600         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14601         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14602
14603         stdio: remove unused variables
14604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14606         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14607
14608         tests: test more substitute headers
14609         * modules/ctype-tests: New file.
14610         * modules/dirent-tests: Likewise.
14611         * modules/spawn-tests: Likewise.
14612         * modules/sys_file-tests: Likewise.
14613         * modules/sys_ioctl-tests: Likewise.
14614         * modules/sys_wait-tests: Likewise.
14615         * tests/test-ctype.c: Likewise.
14616         * tests/test-dirent.c: Likewise.
14617         * tests/test-spawn.c: Likewise.
14618         * tests/test-sys_file.c: Likewise.
14619         * tests/test-sys_ioctl.c: Likewise.
14620         * tests/test-sys_wait.c: Likewise.
14621         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14622         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14623         whether or not flock is in use.
14624
14625         tests: remove License section from module
14626         * modules/arpa_inet-tests: Remove unneeded section.
14627         * modules/byteswap-tests: Likewise.
14628         * modules/ceilf-tests: Likewise.
14629         * modules/ceill-tests: Likewise.
14630         * modules/crypto/des-tests: Likewise.
14631         * modules/crypto/gc-arcfour-tests: Likewise.
14632         * modules/crypto/gc-arctwo-tests: Likewise.
14633         * modules/crypto/gc-des-tests: Likewise.
14634         * modules/crypto/gc-hmac-md5-tests: Likewise.
14635         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14636         * modules/crypto/gc-md2-tests: Likewise.
14637         * modules/crypto/gc-md4-tests: Likewise.
14638         * modules/crypto/gc-md5-tests: Likewise.
14639         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14640         * modules/crypto/gc-rijndael-tests: Likewise.
14641         * modules/crypto/gc-sha1-tests: Likewise.
14642         * modules/crypto/gc-tests: Likewise.
14643         * modules/crypto/md2-tests: Likewise.
14644         * modules/crypto/md4-tests: Likewise.
14645         * modules/fcntl-h-tests: Likewise.
14646         * modules/floorf-tests: Likewise.
14647         * modules/floorl-tests: Likewise.
14648         * modules/frexp-nolibm-tests: Likewise.
14649         * modules/frexp-tests: Likewise.
14650         * modules/frexpl-nolibm-tests: Likewise.
14651         * modules/frexpl-tests: Likewise.
14652         * modules/getaddrinfo-tests: Likewise.
14653         * modules/inttypes-tests: Likewise.
14654         * modules/isfinite-tests: Likewise.
14655         * modules/isinf-tests: Likewise.
14656         * modules/ldexpl-tests: Likewise.
14657         * modules/locale-tests: Likewise.
14658         * modules/math-tests: Likewise.
14659         * modules/netdb-tests: Likewise.
14660         * modules/netinet_in-tests: Likewise.
14661         * modules/printf-frexp-tests: Likewise.
14662         * modules/printf-frexpl-tests: Likewise.
14663         * modules/priv-set-tests: Likewise.
14664         * modules/random_r-tests: Likewise.
14665         * modules/round-tests: Likewise.
14666         * modules/roundf-tests: Likewise.
14667         * modules/roundl-tests: Likewise.
14668         * modules/search-tests: Likewise.
14669         * modules/select-tests: Likewise.
14670         * modules/signal-tests: Likewise.
14671         * modules/stdbool-tests: Likewise.
14672         * modules/stddef-tests: Likewise.
14673         * modules/stdint-tests: Likewise.
14674         * modules/stdio-tests: Likewise.
14675         * modules/stdlib-tests: Likewise.
14676         * modules/string-tests: Likewise.
14677         * modules/strings-tests: Likewise.
14678         * modules/sys_select-tests: Likewise.
14679         * modules/sys_socket-tests: Likewise.
14680         * modules/sys_stat-tests: Likewise.
14681         * modules/sys_time-tests: Likewise.
14682         * modules/sys_utsname-tests: Likewise.
14683         * modules/sysexits-tests: Likewise.
14684         * modules/time-tests: Likewise.
14685         * modules/trunc-tests: Likewise.
14686         * modules/truncf-tests: Likewise.
14687         * modules/truncl-tests: Likewise.
14688         * modules/tsearch-tests: Likewise.
14689         * modules/unistd-tests: Likewise.
14690         * modules/wchar-tests: Likewise.
14691         * modules/wctype-tests: Likewise.
14692
14693         tests: fix license on several tests
14694         * tests/test-des.c: Update to GPLv3+.
14695         * tests/test-flock.c: Likewise.
14696         * tests/test-fsync.c: Likewise.
14697         * tests/test-futimens.h: Likewise.
14698         * tests/test-gc-arcfour.c: Likewise.
14699         * tests/test-gc-arctwo.c: Likewise.
14700         * tests/test-gc-des.c: Likewise.
14701         * tests/test-gc-hmac-md5.c: Likewise.
14702         * tests/test-gc-hmac-sha1.c: Likewise.
14703         * tests/test-gc-md2.c: Likewise.
14704         * tests/test-gc-md4.c: Likewise.
14705         * tests/test-gc-md5.c: Likewise.
14706         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14707         * tests/test-gc-rijndael.c: Likewise.
14708         * tests/test-gc-sha1.c: Likewise.
14709         * tests/test-gc.c: Likewise.
14710         * tests/test-getcwd.c: Likewise.
14711         * tests/test-link.c: Likewise.
14712         * tests/test-link.h: Likewise.
14713         * tests/test-lutimens.h: Likewise.
14714         * tests/test-md2.c: Likewise.
14715         * tests/test-md4.c: Likewise.
14716         * tests/test-mkdir.h: Likewise.
14717         * tests/test-rename.c: Likewise.
14718         * tests/test-rename.h: Likewise.
14719         * tests/test-safe-alloc.c: Likewise.
14720         * tests/test-utimens-common.h: Likewise.
14721         * tests/test-utimens.h: Likewise.
14722
14723         maint: sync license texts
14724         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14725         * doc/gpl-3.0.texi: Revert copyright year update.
14726         * doc/lgpl-3.0.texi: Likewise.
14727
14728 2009-12-29  Jim Meyering  <meyering@redhat.com>
14729
14730         update nearly all FSF copyright year lists to include 2009
14731         The files named by the following are exempted:
14732             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14733               test -f "$dst" && { echo "$dst"; continue; }
14734               test -d "$dst" || continue
14735               echo "$dst"/$(basename "$src")
14736             done > exempt
14737             git ls-files tests/unictype >> exempt
14738         In the remaining files, convert to all-interval notation if
14739         - there is already at least one year interval like 2000-2003
14740         - the file is maintained by me
14741         - the file is in lib/uni*/, where that style already prevails
14742         Otherwise, use update-copyright's default.
14743
14744 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14745         and Eric Blake  <ebb9@byu.net>
14746
14747         tests: don't require debug system() to pass
14748         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14749         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14750         * tests/test-unlink.h (test_unlink_func): Likewise.
14751         * tests/test-fstatat.c (main): ...into callers.
14752         * tests/test-lstat.c (main): Likewise.
14753         * tests/test-rmdir.c (main): Likewise.
14754         * tests/test-unlink.c (main): Likewise.
14755         * tests/test-unlinkat.c (main): Likewise.
14756         * tests/test-areadlink-with-size.c (main): Don't require a
14757         debug-only system call to pass, aiding cross-testing to mingw.
14758         * tests/test-areadlink.c (main): Likewise.
14759         * tests/test-areadlinkat-with-size.c (main): Likewise.
14760         * tests/test-areadlinkat.c (main): Likewise.
14761         * tests/test-canonicalize-lgpl.c (main): Likewise.
14762         * tests/test-canonicalize.c (main): Likewise.
14763         * tests/test-chown.c (main): Likewise.
14764         * tests/test-fchownat.c (main): Likewise.
14765         * tests/test-lchown.c (main): Likewise.
14766         * tests/test-fdutimensat.c (main): Likewise.
14767         * tests/test-futimens.c (main): Likewise.
14768         * tests/test-link.c (main): Likewise.
14769         * tests/test-linkat.c (main): Likewise.
14770         * tests/test-mkdir.c (main): Likewise.
14771         * tests/test-mkdirat.c (main): Likewise.
14772         * tests/test-mkfifo.c (main): Likewise.
14773         * tests/test-mkfifoat.c (main): Likewise.
14774         * tests/test-mknod.c (main): Likewise.
14775         * tests/test-readlink.c (main): Likewise.
14776         * tests/test-remove.c (main): Likewise.
14777         * tests/test-rename.c (main): Likewise.
14778         * tests/test-renameat.c (main): Likewise.
14779         * tests/test-symlink.c (main): Likewise.
14780         * tests/test-symlinkat.c (main): Likewise.
14781         * tests/test-utimens.c (main): Likewise.
14782         * tests/test-utimensat.c (main): Likewise.
14783
14784 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14785
14786         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14787         on $(UNUSED_PARAMETER_H) to avoid build failure.
14788
14789 2009-12-28  Jim Meyering  <meyering@redhat.com>
14790
14791         update-copyright: you may specify a max. line length other than 72
14792         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14793
14794         maint: use consistent FSF copyright line syntax
14795         * lib/posixtm.c: Add missing comma in FSF copyright line.
14796         * lib/posixtm.h: Likewise.
14797         * lib/getugroups.c: Add missing ", Inc.".
14798
14799         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14800         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14801         FSF copyright line.  Remove trailing blanks.
14802
14803 2009-12-28  Eric Blake  <ebb9@byu.net>
14804
14805         test-dup2: reduce dependencies
14806         * modules/cloexec (Configure.ac): Set witness.
14807         * modules/dup2-tests (Depends-on): Drop cloexec.
14808         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14809         not present.
14810         Suggested by Bruno Haible.
14811
14812 2009-12-26  Bruno Haible  <bruno@clisp.org>
14813
14814         Remove an unneeded dependency.
14815         * modules/fseterr (Depends-on): Remove dup2.
14816
14817 2009-12-26  Eric Blake  <ebb9@byu.net>
14818
14819         tests: use macros.h in more places
14820         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14821         (ASSERT_STREAM): Provide default of stderr.
14822         * tests/test-dirent-safer.c: Include macros.h, using alternate
14823         stream for assertions.
14824         * tests/test-dup-safer.c: Likewise.
14825         * tests/test-freopen-safer.c: Likewise.
14826         * tests/test-getopt.c: Likewise.
14827         * tests/test-openat-safer.c: Likewise.
14828         * tests/test-pipe.c: Likewise.
14829         * tests/test-popen-safer.c: Likewise.
14830         * modules/dirent-safer-tests (Files): Include macros.h.
14831         * modules/unistd-safer-tests (Files): Likewise.
14832         * modules/freopen-safer-tests (Files): Likewise.
14833         * modules/getopt-posix-tests (Files): Likewise.
14834         * modules/openat-safer-tests (Files): Likewise.
14835         * modules/pipe-tests (Files): Likewise.
14836
14837 2009-12-26  Bruno Haible  <bruno@clisp.org>
14838
14839         javacomp: Portability fix.
14840         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14841         that it also works on Solaris.
14842
14843 2009-12-26  Bruno Haible  <bruno@clisp.org>
14844
14845         localename: Fix storage allocation of gl_locale_name_thread's result.
14846         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14847         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14848         all platforms that have 'uselocale'.
14849         (gl_locale_name_thread_unsafe): New function, extracted from
14850         gl_locale_name_thread.
14851         (gl_locale_name_thread): Call struniq on all platforms that have
14852         'uselocale'.
14853         * tests/test-localename.c (test_locale_name_thread): Check that the
14854         resulting strings are permanently allocated.
14855         * modules/localename-tests (Depends-on): Add strdup.
14856
14857 2009-12-26  Bruno Haible  <bruno@clisp.org>
14858
14859         * tests/test-localename.c (categories): Fill in the strings.
14860
14861 2009-12-26  Jim Meyering  <meyering@redhat.com>
14862
14863         isdir: complete the removal of m4/isdir.m4
14864         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14865
14866         isdir: clean up, since at least grep still uses it
14867         * lib/isdir.c: Include "isdir.h".
14868         (S_ISDIR): Remove now-unneeded definition.
14869         * modules/isdir (Files): Add lib/isdir.h.
14870         * lib/isdir.h: New file, with declaration.
14871         * m4/isdir.m4: Remove file -- unneeded.
14872
14873 2009-12-25  Bruno Haible  <bruno@clisp.org>
14874
14875         selinux-h: Make generated .h files standalone.
14876         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14877         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14878         * lib/se-selinux.in.h: Likewise.
14879         * modules/selinux-h (Depends-on): Add unused-parameter.
14880         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14881         selinux/selinux.h and selinux/context.h.
14882         Suggested by Eric Blake.
14883
14884 2009-12-25  Bruno Haible  <bruno@clisp.org>
14885
14886         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14887         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14888         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14889         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14890         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14891
14892 2009-12-24  Bruno Haible  <bruno@clisp.org>
14893
14894         openat: Fix warning.
14895         * lib/openat-proc.c: Include <unistd.h>.
14896
14897 2009-12-24  Bruno Haible  <bruno@clisp.org>
14898
14899         New module 'unused-parameter'.
14900         * build-aux/unused-parameter.h: New file, extracted from earlier
14901         gnulib-common.m4.
14902         * modules/unused-parameter: New file.
14903         * lib/unistr.h: Include unused-parameter.h.
14904         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14905         _GL_UNUSED.
14906         * modules/unistr/base (Depends-on): Add unused-parameter.
14907
14908 2009-12-24  Bruno Haible  <bruno@clisp.org>
14909
14910         Add missing dependencies to 'extensions' module.
14911         * m4/extensions.m4: Add comment.
14912         * modules/accept4 (Depends-on): Add extensions.
14913         * modules/dup3 (Depends-on): Likewise.
14914         * modules/fcntl (Depends-on): Likewise.
14915         * modules/futimens (Depends-on): Likewise.
14916         * modules/mknod (Depends-on): Likewise.
14917         * modules/pipe2 (Depends-on): Likewise.
14918         * modules/stat-time (Depends-on): Likewise.
14919         * modules/strcasestr-simple (Depends-on): Likewise.
14920         * modules/strsignal (Depends-on): Likewise.
14921         * modules/utimensat (Depends-on): Likewise.
14922         * modules/localcharset (Depends-on): Likewise. Needed because of
14923         gl_FCNTL_O_FLAGS.
14924         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14925         AC_TYPE_MBSTATE_T.
14926         * modules/wcsnrtombs (Depends-on): Likewise.
14927         * modules/wcsrtombs (Depends-on): Likewise.
14928
14929 2009-12-24  Bruno Haible  <bruno@clisp.org>
14930
14931         binary-io: Avoid gcc warning due to SET_BINARY.
14932         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14933         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14934
14935 2009-12-24  Bruno Haible  <bruno@clisp.org>
14936
14937         Avoid future namespace pollution on glibc systems.
14938         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14939         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14940         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14941         glibc systems.
14942
14943 2009-12-24  Bruno Haible  <bruno@clisp.org>
14944
14945         Refactor common macros used in tests.
14946         * tests/macros.h: New file.
14947         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14948         and/or <stdlib.h>, if appropriate.
14949         (ASSERT, SIZEOF): Remove macros.
14950         * tests/test-areadlink-with-size.c: Likewise.
14951         * tests/test-areadlinkat.c: Likewise.
14952         * tests/test-areadlinkat-with-size.c: Likewise.
14953         * tests/test-argmatch.c: Likewise.
14954         * tests/test-argv-iter.c: Likewise.
14955         * tests/test-array-mergesort.c: Likewise.
14956         * tests/test-array_list.c: Likewise.
14957         * tests/test-array_oset.c: Likewise.
14958         * tests/test-avltree_list.c: Likewise.
14959         * tests/test-avltree_oset.c: Likewise.
14960         * tests/test-avltreehash_list.c: Likewise.
14961         * tests/test-base64.c: Likewise.
14962         * tests/test-binary-io.c: Likewise.
14963         * tests/test-bitrotate.c: Likewise.
14964         * tests/test-btowc.c: Likewise.
14965         * tests/test-byteswap.c: Likewise.
14966         * tests/test-c-ctype.c: Likewise.
14967         * tests/test-c-stack.c: Likewise.
14968         * tests/test-c-strcasecmp.c: Likewise.
14969         * tests/test-c-strcasestr.c: Likewise.
14970         * tests/test-c-strncasecmp.c: Likewise.
14971         * tests/test-c-strstr.c: Likewise.
14972         * tests/test-canonicalize-lgpl.c: Likewise.
14973         * tests/test-canonicalize.c: Likewise.
14974         * tests/test-carray_list.c: Likewise.
14975         * tests/test-ceilf1.c: Likewise.
14976         * tests/test-ceilf2.c: Likewise.
14977         * tests/test-ceill.c: Likewise.
14978         * tests/test-chown.c: Likewise.
14979         * tests/test-cloexec.c: Likewise.
14980         * tests/test-copy-acl.c: Likewise.
14981         * tests/test-copy-file.c: Likewise.
14982         * tests/test-count-one-bits.c: Likewise.
14983         * tests/test-dprintf-posix.c: Likewise.
14984         * tests/test-dup2.c: Likewise.
14985         * tests/test-dup3.c: Likewise.
14986         * tests/test-duplocale.c: Likewise.
14987         * tests/test-fbufmode.c: Likewise.
14988         * tests/test-fchdir.c: Likewise.
14989         * tests/test-fchownat.c: Likewise.
14990         * tests/test-fcntl-safer.c: Likewise.
14991         * tests/test-fcntl.c: Likewise.
14992         * tests/test-fdopendir.c: Likewise.
14993         * tests/test-fdutimensat.c: Likewise.
14994         * tests/test-fflush2.c: Likewise.
14995         * tests/test-file-has-acl.c: Likewise.
14996         * tests/test-filevercmp.c: Likewise.
14997         * tests/test-flock.c: Likewise.
14998         * tests/test-floorf1.c: Likewise.
14999         * tests/test-floorf2.c: Likewise.
15000         * tests/test-floorl.c: Likewise.
15001         * tests/test-fnmatch.c: Likewise.
15002         * tests/test-fopen.h: Likewise.
15003         * tests/test-fpending.c: Likewise.
15004         * tests/test-fprintf-posix.c: Likewise.
15005         * tests/test-fpurge.c: Likewise.
15006         * tests/test-freadable.c: Likewise.
15007         * tests/test-freadahead.c: Likewise.
15008         * tests/test-freading.c: Likewise.
15009         * tests/test-freadptr.c: Likewise.
15010         * tests/test-freadptr2.c: Likewise.
15011         * tests/test-freadseek.c: Likewise.
15012         * tests/test-freopen.c: Likewise.
15013         * tests/test-frexp.c: Likewise.
15014         * tests/test-frexpl.c: Likewise.
15015         * tests/test-fseek.c: Likewise.
15016         * tests/test-fseeko.c: Likewise.
15017         * tests/test-fstatat.c: Likewise.
15018         * tests/test-fstrcmp.c: Likewise.
15019         * tests/test-fsync.c: Likewise.
15020         * tests/test-ftell.c: Likewise.
15021         * tests/test-ftello.c: Likewise.
15022         * tests/test-func.c: Likewise.
15023         * tests/test-futimens.c: Likewise.
15024         * tests/test-fwritable.c: Likewise.
15025         * tests/test-fwriting.c: Likewise.
15026         * tests/test-getcwd.c: Likewise.
15027         * tests/test-getdate.c: Likewise.
15028         * tests/test-getdelim.c: Likewise.
15029         * tests/test-getdtablesize.c: Likewise.
15030         * tests/test-getgroups.c: Likewise.
15031         * tests/test-getline.c: Likewise.
15032         * tests/test-getndelim2.c: Likewise.
15033         * tests/test-glob.c: Likewise.
15034         * tests/test-hash.c: Likewise.
15035         * tests/test-i-ring.c: Likewise.
15036         * tests/test-iconv-utf.c: Likewise.
15037         * tests/test-iconv.c: Likewise.
15038         * tests/test-idpriv-drop.c: Likewise.
15039         * tests/test-idpriv-droptemp.c: Likewise.
15040         * tests/test-inet_ntop.c: Likewise.
15041         * tests/test-inet_pton.c: Likewise.
15042         * tests/test-isblank.c: Likewise.
15043         * tests/test-isfinite.c: Likewise.
15044         * tests/test-isinf.c: Likewise.
15045         * tests/test-isnan.c: Likewise.
15046         * tests/test-isnand.h: Likewise.
15047         * tests/test-isnanf.h: Likewise.
15048         * tests/test-isnanl.h: Likewise.
15049         * tests/test-lchown.c: Likewise.
15050         * tests/test-ldexpl.c: Likewise.
15051         * tests/test-link.c: Likewise.
15052         * tests/test-linkat.c: Likewise.
15053         * tests/test-linked_list.c: Likewise.
15054         * tests/test-linkedhash_list.c: Likewise.
15055         * tests/test-localename.c: Likewise.
15056         * tests/test-lseek.c: Likewise.
15057         * tests/test-lstat.c: Likewise.
15058         * tests/test-mbmemcasecmp.c: Likewise.
15059         * tests/test-mbmemcasecoll.c: Likewise.
15060         * tests/test-mbrtowc.c: Likewise.
15061         * tests/test-mbscasecmp.c: Likewise.
15062         * tests/test-mbscasestr1.c: Likewise.
15063         * tests/test-mbscasestr2.c: Likewise.
15064         * tests/test-mbscasestr3.c: Likewise.
15065         * tests/test-mbscasestr4.c: Likewise.
15066         * tests/test-mbschr.c: Likewise.
15067         * tests/test-mbscspn.c: Likewise.
15068         * tests/test-mbsinit.c: Likewise.
15069         * tests/test-mbsncasecmp.c: Likewise.
15070         * tests/test-mbsnrtowcs.c: Likewise.
15071         * tests/test-mbspbrk.c: Likewise.
15072         * tests/test-mbspcasecmp.c: Likewise.
15073         * tests/test-mbsrchr.c: Likewise.
15074         * tests/test-mbsrtowcs.c: Likewise.
15075         * tests/test-mbsspn.c: Likewise.
15076         * tests/test-mbsstr1.c: Likewise.
15077         * tests/test-mbsstr2.c: Likewise.
15078         * tests/test-mbsstr3.c: Likewise.
15079         * tests/test-memchr.c: Likewise.
15080         * tests/test-memchr2.c: Likewise.
15081         * tests/test-memcmp.c: Likewise.
15082         * tests/test-memmem.c: Likewise.
15083         * tests/test-memrchr.c: Likewise.
15084         * tests/test-mkdir.c: Likewise.
15085         * tests/test-mkdirat.c: Likewise.
15086         * tests/test-mkfifo.c: Likewise.
15087         * tests/test-mkfifoat.c: Likewise.
15088         * tests/test-mknod.c: Likewise.
15089         * tests/test-nanosleep.c: Likewise.
15090         * tests/test-nl_langinfo.c: Likewise.
15091         * tests/test-obstack-printf.c: Likewise.
15092         * tests/test-open.c: Likewise.
15093         * tests/test-openat.c: Likewise.
15094         * tests/test-pipe-filter-gi1.c: Likewise.
15095         * tests/test-pipe-filter-gi2-main.c: Likewise.
15096         * tests/test-pipe-filter-ii1.c: Likewise.
15097         * tests/test-pipe-filter-ii2-main.c: Likewise.
15098         * tests/test-pipe2.c: Likewise.
15099         * tests/test-popen.h: Likewise.
15100         * tests/test-posixtm.c: Likewise.
15101         * tests/test-pread.c: Likewise.
15102         * tests/test-printf-frexp.c: Likewise.
15103         * tests/test-printf-frexpl.c: Likewise.
15104         * tests/test-printf-posix.c: Likewise.
15105         * tests/test-priv-set.c: Likewise.
15106         * tests/test-quotearg.c: Likewise.
15107         * tests/test-random_r.c: Likewise.
15108         * tests/test-rawmemchr.c: Likewise.
15109         * tests/test-rbtree_list.c: Likewise.
15110         * tests/test-rbtree_oset.c: Likewise.
15111         * tests/test-rbtreehash_list.c: Likewise.
15112         * tests/test-readlink.c: Likewise.
15113         * tests/test-remove.c: Likewise.
15114         * tests/test-rename.c: Likewise.
15115         * tests/test-renameat.c: Likewise.
15116         * tests/test-rmdir.c: Likewise.
15117         * tests/test-round1.c: Likewise.
15118         * tests/test-roundf1.c: Likewise.
15119         * tests/test-roundl.c: Likewise.
15120         * tests/test-safe-alloc.c: Likewise.
15121         * tests/test-sameacls.c: Likewise.
15122         * tests/test-set-mode-acl.c: Likewise.
15123         * tests/test-setenv.c: Likewise.
15124         * tests/test-sigaction.c: Likewise.
15125         * tests/test-signbit.c: Likewise.
15126         * tests/test-sleep.c: Likewise.
15127         * tests/test-snprintf-posix.c: Likewise.
15128         * tests/test-snprintf.c: Likewise.
15129         * tests/test-sprintf-posix.c: Likewise.
15130         * tests/test-stat-time.c: Likewise.
15131         * tests/test-stat.c: Likewise.
15132         * tests/test-strcasestr.c: Likewise.
15133         * tests/test-strchrnul.c: Likewise.
15134         * tests/test-strerror.c: Likewise.
15135         * tests/test-striconv.c: Likewise.
15136         * tests/test-striconveh.c: Likewise.
15137         * tests/test-striconveha.c: Likewise.
15138         * tests/test-strsignal.c: Likewise.
15139         * tests/test-strstr.c: Likewise.
15140         * tests/test-strtod.c: Likewise.
15141         * tests/test-strverscmp.c: Likewise.
15142         * tests/test-symlink.c: Likewise.
15143         * tests/test-symlinkat.c: Likewise.
15144         * tests/test-trunc1.c: Likewise.
15145         * tests/test-trunc2.c: Likewise.
15146         * tests/test-truncf1.c: Likewise.
15147         * tests/test-truncf2.c: Likewise.
15148         * tests/test-truncl.c: Likewise.
15149         * tests/test-uname.c: Likewise.
15150         * tests/test-unlink.c: Likewise.
15151         * tests/test-unlinkat.c: Likewise.
15152         * tests/test-unsetenv.c: Likewise.
15153         * tests/test-usleep.c: Likewise.
15154         * tests/test-utimens.c: Likewise.
15155         * tests/test-utimensat.c: Likewise.
15156         * tests/test-vasnprintf-posix.c: Likewise.
15157         * tests/test-vasnprintf-posix2.c: Likewise.
15158         * tests/test-vasnprintf.c: Likewise.
15159         * tests/test-vasprintf-posix.c: Likewise.
15160         * tests/test-vasprintf.c: Likewise.
15161         * tests/test-vdprintf-posix.c: Likewise.
15162         * tests/test-vfprintf-posix.c: Likewise.
15163         * tests/test-vprintf-posix.c: Likewise.
15164         * tests/test-vsnprintf-posix.c: Likewise.
15165         * tests/test-vsnprintf.c: Likewise.
15166         * tests/test-vsprintf-posix.c: Likewise.
15167         * tests/test-wcrtomb.c: Likewise.
15168         * tests/test-wcsnrtombs.c: Likewise.
15169         * tests/test-wcsrtombs.c: Likewise.
15170         * tests/test-wctype.c: Likewise.
15171         * tests/test-wcwidth.c: Likewise.
15172         * tests/test-xfprintf-posix.c: Likewise.
15173         * tests/test-xmemdup0.c: Likewise.
15174         * tests/test-xprintf-posix.c: Likewise.
15175         * tests/test-xvasprintf.c: Likewise.
15176         * tests/unicase/test-locale-language.c: Likewise.
15177         * tests/unicase/test-mapping-part1.h: Likewise.
15178         * tests/unicase/test-predicate-part1.h: Likewise.
15179         * tests/unicase/test-u8-casecmp.c: Likewise.
15180         * tests/unicase/test-u8-casecoll.c: Likewise.
15181         * tests/unicase/test-u8-casefold.c: Likewise.
15182         * tests/unicase/test-u8-is-cased.c: Likewise.
15183         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15184         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15185         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15186         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15187         * tests/unicase/test-u8-tolower.c: Likewise.
15188         * tests/unicase/test-u8-totitle.c: Likewise.
15189         * tests/unicase/test-u8-toupper.c: Likewise.
15190         * tests/unicase/test-u16-casecmp.c: Likewise.
15191         * tests/unicase/test-u16-casecoll.c: Likewise.
15192         * tests/unicase/test-u16-casefold.c: Likewise.
15193         * tests/unicase/test-u16-is-cased.c: Likewise.
15194         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15195         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15196         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15197         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15198         * tests/unicase/test-u16-tolower.c: Likewise.
15199         * tests/unicase/test-u16-totitle.c: Likewise.
15200         * tests/unicase/test-u16-toupper.c: Likewise.
15201         * tests/unicase/test-u32-casecmp.c: Likewise.
15202         * tests/unicase/test-u32-casecoll.c: Likewise.
15203         * tests/unicase/test-u32-casefold.c: Likewise.
15204         * tests/unicase/test-u32-is-cased.c: Likewise.
15205         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15206         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15207         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15208         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15209         * tests/unicase/test-u32-tolower.c: Likewise.
15210         * tests/unicase/test-u32-totitle.c: Likewise.
15211         * tests/unicase/test-u32-toupper.c: Likewise.
15212         * tests/unicase/test-ulc-casecmp.c: Likewise.
15213         * tests/unicase/test-ulc-casecoll.c: Likewise.
15214         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15215         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15216         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15217         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15218         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15219         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15220         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15221         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15222         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15223         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15224         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15225         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15226         * tests/unictype/test-bidi_byname.c: Likewise.
15227         * tests/unictype/test-bidi_name.c: Likewise.
15228         * tests/unictype/test-bidi_of.c: Likewise.
15229         * tests/unictype/test-bidi_test.c: Likewise.
15230         * tests/unictype/test-block_list.c: Likewise.
15231         * tests/unictype/test-block_of.c: Likewise.
15232         * tests/unictype/test-block_test.c: Likewise.
15233         * tests/unictype/test-categ_and.c: Likewise.
15234         * tests/unictype/test-categ_and_not.c: Likewise.
15235         * tests/unictype/test-categ_byname.c: Likewise.
15236         * tests/unictype/test-categ_name.c: Likewise.
15237         * tests/unictype/test-categ_none.c: Likewise.
15238         * tests/unictype/test-categ_of.c: Likewise.
15239         * tests/unictype/test-categ_or.c: Likewise.
15240         * tests/unictype/test-categ_test_withtable.c: Likewise.
15241         * tests/unictype/test-combining.c: Likewise.
15242         * tests/unictype/test-decdigit.c: Likewise.
15243         * tests/unictype/test-digit.c: Likewise.
15244         * tests/unictype/test-mirror.c: Likewise.
15245         * tests/unictype/test-numeric.c: Likewise.
15246         * tests/unictype/test-pr_byname.c: Likewise.
15247         * tests/unictype/test-pr_test.c: Likewise.
15248         * tests/unictype/test-predicate-part1.h: Likewise.
15249         * tests/unictype/test-scripts.c: Likewise.
15250         * tests/unictype/test-sy_c_ident.c: Likewise.
15251         * tests/unictype/test-sy_java_ident.c: Likewise.
15252         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15253         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15254         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15255         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15256         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15257         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15258         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15259         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15260         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15261         * tests/uninorm/test-compat-decomposition.c: Likewise.
15262         * tests/uninorm/test-composition.c: Likewise.
15263         * tests/uninorm/test-decomposing-form.c: Likewise.
15264         * tests/uninorm/test-decomposition.c: Likewise.
15265         * tests/uninorm/test-u8-nfc.c: Likewise.
15266         * tests/uninorm/test-u8-nfd.c: Likewise.
15267         * tests/uninorm/test-u8-nfkc.c: Likewise.
15268         * tests/uninorm/test-u8-nfkd.c: Likewise.
15269         * tests/uninorm/test-u8-normcmp.c: Likewise.
15270         * tests/uninorm/test-u8-normcoll.c: Likewise.
15271         * tests/uninorm/test-u16-nfc.c: Likewise.
15272         * tests/uninorm/test-u16-nfd.c: Likewise.
15273         * tests/uninorm/test-u16-nfkc.c: Likewise.
15274         * tests/uninorm/test-u16-nfkd.c: Likewise.
15275         * tests/uninorm/test-u16-normcmp.c: Likewise.
15276         * tests/uninorm/test-u16-normcoll.c: Likewise.
15277         * tests/uninorm/test-u32-nfc.c: Likewise.
15278         * tests/uninorm/test-u32-nfd.c: Likewise.
15279         * tests/uninorm/test-u32-nfkc.c: Likewise.
15280         * tests/uninorm/test-u32-nfkd.c: Likewise.
15281         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15282         * tests/uninorm/test-u32-normcmp.c: Likewise.
15283         * tests/uninorm/test-u32-normcoll.c: Likewise.
15284         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15285         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15286         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15287         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15288         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15289         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15290         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15291         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15292         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15300         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15301         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15302         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15303         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15304         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15305         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15306         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15307         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15308         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15309         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15310         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15311         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15312         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15313         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15314         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15315         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15316         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15317         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15318         * tests/uniwidth/test-u8-width.c: Likewise.
15319         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15320         * tests/uniwidth/test-u16-width.c: Likewise.
15321         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15322         * tests/uniwidth/test-u32-width.c: Likewise.
15323         * tests/uniwidth/test-uc_width.c: Likewise.
15324         * tests/uniwidth/test-uc_width2.c: Likewise.
15325         * modules/acl-tests (Files): Add tests/macros.h.
15326         * modules/areadlink-tests (Files): Likewise.
15327         * modules/areadlink-with-size-tests (Files): Likewise.
15328         * modules/areadlinkat-tests (Files): Likewise.
15329         * modules/areadlinkat-with-size-tests (Files): Likewise.
15330         * modules/argmatch-tests (Files): Likewise.
15331         * modules/argv-iter-tests (Files): Likewise.
15332         * modules/array-list-tests (Files): Likewise.
15333         * modules/array-mergesort-tests (Files): Likewise.
15334         * modules/array-oset-tests (Files): Likewise.
15335         * modules/avltree-list-tests (Files): Likewise.
15336         * modules/avltree-oset-tests (Files): Likewise.
15337         * modules/avltreehash-list-tests (Files): Likewise.
15338         * modules/base64-tests (Files): Likewise.
15339         * modules/binary-io-tests (Files): Likewise.
15340         * modules/bitrotate-tests (Files): Likewise.
15341         * modules/btowc-tests (Files): Likewise.
15342         * modules/byteswap-tests (Files): Likewise.
15343         * modules/c-ctype-tests (Files): Likewise.
15344         * modules/c-stack-tests (Files): Likewise.
15345         * modules/c-strcase-tests (Files): Likewise.
15346         * modules/c-strcasestr-tests (Files): Likewise.
15347         * modules/c-strstr-tests (Files): Likewise.
15348         * modules/canonicalize-lgpl-tests (Files): Likewise.
15349         * modules/canonicalize-tests (Files): Likewise.
15350         * modules/carray-list-tests (Files): Likewise.
15351         * modules/ceilf-tests (Files): Likewise.
15352         * modules/ceill-tests (Files): Likewise.
15353         * modules/chown-tests (Files): Likewise.
15354         * modules/cloexec-tests (Files): Likewise.
15355         * modules/copy-file-tests (Files): Likewise.
15356         * modules/count-one-bits-tests (Files): Likewise.
15357         * modules/dprintf-posix-tests (Files): Likewise.
15358         * modules/dup2-tests (Files): Likewise.
15359         * modules/dup3-tests (Files): Likewise.
15360         * modules/duplocale-tests (Files): Likewise.
15361         * modules/fbufmode-tests (Files): Likewise.
15362         * modules/fchdir-tests (Files): Likewise.
15363         * modules/fcntl-safer-tests (Files): Likewise.
15364         * modules/fcntl-tests (Files): Likewise.
15365         * modules/fdopendir-tests (Files): Likewise.
15366         * modules/fdutimensat-tests (Files): Likewise.
15367         * modules/fflush-tests (Files): Likewise.
15368         * modules/filevercmp-tests (Files): Likewise.
15369         * modules/flock-tests (Files): Likewise.
15370         * modules/floorf-tests (Files): Likewise.
15371         * modules/floorl-tests (Files): Likewise.
15372         * modules/fnmatch-tests (Files): Likewise.
15373         * modules/fopen-safer-tests (Files): Likewise.
15374         * modules/fopen-tests (Files): Likewise.
15375         * modules/fpending-tests (Files): Likewise.
15376         * modules/fprintf-posix-tests (Files): Likewise.
15377         * modules/fpurge-tests (Files): Likewise.
15378         * modules/freadable-tests (Files): Likewise.
15379         * modules/freadahead-tests (Files): Likewise.
15380         * modules/freading-tests (Files): Likewise.
15381         * modules/freadptr-tests (Files): Likewise.
15382         * modules/freadseek-tests (Files): Likewise.
15383         * modules/freopen-tests (Files): Likewise.
15384         * modules/frexp-nolibm-tests (Files): Likewise.
15385         * modules/frexp-tests (Files): Likewise.
15386         * modules/frexpl-nolibm-tests (Files): Likewise.
15387         * modules/frexpl-tests (Files): Likewise.
15388         * modules/fseek-tests (Files): Likewise.
15389         * modules/fseeko-tests (Files): Likewise.
15390         * modules/fstrcmp-tests (Files): Likewise.
15391         * modules/fsync-tests (Files): Likewise.
15392         * modules/ftell-tests (Files): Likewise.
15393         * modules/ftello-tests (Files): Likewise.
15394         * modules/func-tests (Files): Likewise.
15395         * modules/futimens-tests (Files): Likewise.
15396         * modules/fwritable-tests (Files): Likewise.
15397         * modules/fwriting-tests (Files): Likewise.
15398         * modules/getcwd-tests (Files): Likewise.
15399         * modules/getdate-tests (Files): Likewise.
15400         * modules/getdelim-tests (Files): Likewise.
15401         * modules/getdtablesize-tests (Files): Likewise.
15402         * modules/getgroups-tests (Files): Likewise.
15403         * modules/getline-tests (Files): Likewise.
15404         * modules/getndelim2-tests (Files): Likewise.
15405         * modules/glob-tests (Files): Likewise.
15406         * modules/hash-tests (Files): Likewise.
15407         * modules/i-ring-tests (Files): Likewise.
15408         * modules/iconv-tests (Files): Likewise.
15409         * modules/iconv_open-utf-tests (Files): Likewise.
15410         * modules/idpriv-drop-tests (Files): Likewise.
15411         * modules/idpriv-droptemp-tests (Files): Likewise.
15412         * modules/inet_ntop-tests (Files): Likewise.
15413         * modules/inet_pton-tests (Files): Likewise.
15414         * modules/isblank-tests (Files): Likewise.
15415         * modules/isfinite-tests (Files): Likewise.
15416         * modules/isinf-tests (Files): Likewise.
15417         * modules/isnan-tests (Files): Likewise.
15418         * modules/isnand-nolibm-tests (Files): Likewise.
15419         * modules/isnand-tests (Files): Likewise.
15420         * modules/isnanf-nolibm-tests (Files): Likewise.
15421         * modules/isnanf-tests (Files): Likewise.
15422         * modules/isnanl-nolibm-tests (Files): Likewise.
15423         * modules/isnanl-tests (Files): Likewise.
15424         * modules/lchown-tests (Files): Likewise.
15425         * modules/ldexpl-tests (Files): Likewise.
15426         * modules/link-tests (Files): Likewise.
15427         * modules/linkat-tests (Files): Likewise.
15428         * modules/linked-list-tests (Files): Likewise.
15429         * modules/linkedhash-list-tests (Files): Likewise.
15430         * modules/localename-tests (Files): Likewise.
15431         * modules/lseek-tests (Files): Likewise.
15432         * modules/lstat-tests (Files): Likewise.
15433         * modules/mbmemcasecmp-tests (Files): Likewise.
15434         * modules/mbmemcasecoll-tests (Files): Likewise.
15435         * modules/mbrtowc-tests (Files): Likewise.
15436         * modules/mbscasecmp-tests (Files): Likewise.
15437         * modules/mbscasestr-tests (Files): Likewise.
15438         * modules/mbschr-tests (Files): Likewise.
15439         * modules/mbscspn-tests (Files): Likewise.
15440         * modules/mbsinit-tests (Files): Likewise.
15441         * modules/mbsncasecmp-tests (Files): Likewise.
15442         * modules/mbsnrtowcs-tests (Files): Likewise.
15443         * modules/mbspbrk-tests (Files): Likewise.
15444         * modules/mbspcasecmp-tests (Files): Likewise.
15445         * modules/mbsrchr-tests (Files): Likewise.
15446         * modules/mbsrtowcs-tests (Files): Likewise.
15447         * modules/mbsspn-tests (Files): Likewise.
15448         * modules/mbsstr-tests (Files): Likewise.
15449         * modules/memchr-tests (Files): Likewise.
15450         * modules/memchr2-tests (Files): Likewise.
15451         * modules/memcmp-tests (Files): Likewise.
15452         * modules/memmem-tests (Files): Likewise.
15453         * modules/memrchr-tests (Files): Likewise.
15454         * modules/mkdir-tests (Files): Likewise.
15455         * modules/mkfifo-tests (Files): Likewise.
15456         * modules/mkfifoat-tests (Files): Likewise.
15457         * modules/mknod-tests (Files): Likewise.
15458         * modules/nanosleep-tests (Files): Likewise.
15459         * modules/nl_langinfo-tests (Files): Likewise.
15460         * modules/obstack-printf-tests (Files): Likewise.
15461         * modules/open-tests (Files): Likewise.
15462         * modules/openat-tests (Files): Likewise.
15463         * modules/pipe-filter-gi-tests (Files): Likewise.
15464         * modules/pipe-filter-ii-tests (Files): Likewise.
15465         * modules/pipe2-tests (Files): Likewise.
15466         * modules/popen-safer-tests (Files): Likewise.
15467         * modules/popen-tests (Files): Likewise.
15468         * modules/posixtm-tests (Files): Likewise.
15469         * modules/pread-tests (Files): Likewise.
15470         * modules/printf-frexp-tests (Files): Likewise.
15471         * modules/printf-frexpl-tests (Files): Likewise.
15472         * modules/printf-posix-tests (Files): Likewise.
15473         * modules/priv-set-tests (Files): Likewise.
15474         * modules/quotearg-tests (Files): Likewise.
15475         * modules/random_r-tests (Files): Likewise.
15476         * modules/rawmemchr-tests (Files): Likewise.
15477         * modules/rbtree-list-tests (Files): Likewise.
15478         * modules/rbtree-oset-tests (Files): Likewise.
15479         * modules/rbtreehash-list-tests (Files): Likewise.
15480         * modules/readlink-tests (Files): Likewise.
15481         * modules/remove-tests (Files): Likewise.
15482         * modules/rename-tests (Files): Likewise.
15483         * modules/renameat-tests (Files): Likewise.
15484         * modules/rmdir-tests (Files): Likewise.
15485         * modules/round-tests (Files): Likewise.
15486         * modules/roundf-tests (Files): Likewise.
15487         * modules/roundl-tests (Files): Likewise.
15488         * modules/safe-alloc-tests (Files): Likewise.
15489         * modules/setenv-tests (Files): Likewise.
15490         * modules/sigaction-tests (Files): Likewise.
15491         * modules/signbit-tests (Files): Likewise.
15492         * modules/sleep-tests (Files): Likewise.
15493         * modules/snprintf-posix-tests (Files): Likewise.
15494         * modules/snprintf-tests (Files): Likewise.
15495         * modules/sprintf-posix-tests (Files): Likewise.
15496         * modules/stat-tests (Files): Likewise.
15497         * modules/stat-time-tests (Files): Likewise.
15498         * modules/strcasestr-tests (Files): Likewise.
15499         * modules/strchrnul-tests (Files): Likewise.
15500         * modules/strerror-tests (Files): Likewise.
15501         * modules/striconv-tests (Files): Likewise.
15502         * modules/striconveh-tests (Files): Likewise.
15503         * modules/striconveha-tests (Files): Likewise.
15504         * modules/strsignal-tests (Files): Likewise.
15505         * modules/strstr-tests (Files): Likewise.
15506         * modules/strtod-tests (Files): Likewise.
15507         * modules/strverscmp-tests (Files): Likewise.
15508         * modules/symlink-tests (Files): Likewise.
15509         * modules/symlinkat-tests (Files): Likewise.
15510         * modules/trunc-tests (Files): Likewise.
15511         * modules/truncf-tests (Files): Likewise.
15512         * modules/truncl-tests (Files): Likewise.
15513         * modules/uname-tests (Files): Likewise.
15514         * modules/unicase/cased-tests (Files): Likewise.
15515         * modules/unicase/ignorable-tests (Files): Likewise.
15516         * modules/unicase/locale-language-tests (Files): Likewise.
15517         * modules/unicase/tolower-tests (Files): Likewise.
15518         * modules/unicase/totitle-tests (Files): Likewise.
15519         * modules/unicase/toupper-tests (Files): Likewise.
15520         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15521         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15522         * modules/unicase/u8-casefold-tests (Files): Likewise.
15523         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15524         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15525         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15526         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15527         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15528         * modules/unicase/u8-tolower-tests (Files): Likewise.
15529         * modules/unicase/u8-totitle-tests (Files): Likewise.
15530         * modules/unicase/u8-toupper-tests (Files): Likewise.
15531         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15532         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15533         * modules/unicase/u16-casefold-tests (Files): Likewise.
15534         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15535         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15536         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15537         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15538         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15539         * modules/unicase/u16-tolower-tests (Files): Likewise.
15540         * modules/unicase/u16-totitle-tests (Files): Likewise.
15541         * modules/unicase/u16-toupper-tests (Files): Likewise.
15542         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15543         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15544         * modules/unicase/u32-casefold-tests (Files): Likewise.
15545         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15546         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15547         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15548         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15549         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15550         * modules/unicase/u32-tolower-tests (Files): Likewise.
15551         * modules/unicase/u32-totitle-tests (Files): Likewise.
15552         * modules/unicase/u32-toupper-tests (Files): Likewise.
15553         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15554         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15555         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15556         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15557         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15558         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15559         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15560         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15561         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15562         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15563         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15564         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15565         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15566         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15567         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15568         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15569         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15570         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15571         * modules/unictype/block-list-tests (Files): Likewise.
15572         * modules/unictype/block-of-tests (Files): Likewise.
15573         * modules/unictype/block-test-tests (Files): Likewise.
15574         * modules/unictype/category-C-tests (Files): Likewise.
15575         * modules/unictype/category-Cc-tests (Files): Likewise.
15576         * modules/unictype/category-Cf-tests (Files): Likewise.
15577         * modules/unictype/category-Cn-tests (Files): Likewise.
15578         * modules/unictype/category-Co-tests (Files): Likewise.
15579         * modules/unictype/category-Cs-tests (Files): Likewise.
15580         * modules/unictype/category-L-tests (Files): Likewise.
15581         * modules/unictype/category-Ll-tests (Files): Likewise.
15582         * modules/unictype/category-Lm-tests (Files): Likewise.
15583         * modules/unictype/category-Lo-tests (Files): Likewise.
15584         * modules/unictype/category-Lt-tests (Files): Likewise.
15585         * modules/unictype/category-Lu-tests (Files): Likewise.
15586         * modules/unictype/category-M-tests (Files): Likewise.
15587         * modules/unictype/category-Mc-tests (Files): Likewise.
15588         * modules/unictype/category-Me-tests (Files): Likewise.
15589         * modules/unictype/category-Mn-tests (Files): Likewise.
15590         * modules/unictype/category-N-tests (Files): Likewise.
15591         * modules/unictype/category-Nd-tests (Files): Likewise.
15592         * modules/unictype/category-Nl-tests (Files): Likewise.
15593         * modules/unictype/category-No-tests (Files): Likewise.
15594         * modules/unictype/category-P-tests (Files): Likewise.
15595         * modules/unictype/category-Pc-tests (Files): Likewise.
15596         * modules/unictype/category-Pd-tests (Files): Likewise.
15597         * modules/unictype/category-Pe-tests (Files): Likewise.
15598         * modules/unictype/category-Pf-tests (Files): Likewise.
15599         * modules/unictype/category-Pi-tests (Files): Likewise.
15600         * modules/unictype/category-Po-tests (Files): Likewise.
15601         * modules/unictype/category-Ps-tests (Files): Likewise.
15602         * modules/unictype/category-S-tests (Files): Likewise.
15603         * modules/unictype/category-Sc-tests (Files): Likewise.
15604         * modules/unictype/category-Sk-tests (Files): Likewise.
15605         * modules/unictype/category-Sm-tests (Files): Likewise.
15606         * modules/unictype/category-So-tests (Files): Likewise.
15607         * modules/unictype/category-Z-tests (Files): Likewise.
15608         * modules/unictype/category-Zl-tests (Files): Likewise.
15609         * modules/unictype/category-Zp-tests (Files): Likewise.
15610         * modules/unictype/category-Zs-tests (Files): Likewise.
15611         * modules/unictype/category-and-not-tests (Files): Likewise.
15612         * modules/unictype/category-and-tests (Files): Likewise.
15613         * modules/unictype/category-byname-tests (Files): Likewise.
15614         * modules/unictype/category-name-tests (Files): Likewise.
15615         * modules/unictype/category-none-tests (Files): Likewise.
15616         * modules/unictype/category-of-tests (Files): Likewise.
15617         * modules/unictype/category-or-tests (Files): Likewise.
15618         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15619         * modules/unictype/combining-class-tests (Files): Likewise.
15620         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15621         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15622         * modules/unictype/ctype-blank-tests (Files): Likewise.
15623         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15624         * modules/unictype/ctype-digit-tests (Files): Likewise.
15625         * modules/unictype/ctype-graph-tests (Files): Likewise.
15626         * modules/unictype/ctype-lower-tests (Files): Likewise.
15627         * modules/unictype/ctype-print-tests (Files): Likewise.
15628         * modules/unictype/ctype-punct-tests (Files): Likewise.
15629         * modules/unictype/ctype-space-tests (Files): Likewise.
15630         * modules/unictype/ctype-upper-tests (Files): Likewise.
15631         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15632         * modules/unictype/decimal-digit-tests (Files): Likewise.
15633         * modules/unictype/digit-tests (Files): Likewise.
15634         * modules/unictype/mirror-tests (Files): Likewise.
15635         * modules/unictype/numeric-tests (Files): Likewise.
15636         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15637         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15638         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15639         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15640         Likewise.
15641         * modules/unictype/property-bidi-block-separator-tests (Files):
15642         Likewise.
15643         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15644         Likewise.
15645         * modules/unictype/property-bidi-common-separator-tests (Files):
15646         Likewise.
15647         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15648         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15649         Likewise.
15650         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15651         Likewise.
15652         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15653         Likewise.
15654         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15655         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15656         Likewise.
15657         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15658         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15659         Likewise.
15660         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15661         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15662         * modules/unictype/property-bidi-segment-separator-tests (Files):
15663         Likewise.
15664         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15665         * modules/unictype/property-byname-tests (Files): Likewise.
15666         * modules/unictype/property-combining-tests (Files): Likewise.
15667         * modules/unictype/property-composite-tests (Files): Likewise.
15668         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15669         * modules/unictype/property-dash-tests (Files): Likewise.
15670         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15671         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15672         Likewise.
15673         * modules/unictype/property-deprecated-tests (Files): Likewise.
15674         * modules/unictype/property-diacritic-tests (Files): Likewise.
15675         * modules/unictype/property-extender-tests (Files): Likewise.
15676         * modules/unictype/property-format-control-tests (Files): Likewise.
15677         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15678         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15679         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15680         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15681         * modules/unictype/property-hyphen-tests (Files): Likewise.
15682         * modules/unictype/property-id-continue-tests (Files): Likewise.
15683         * modules/unictype/property-id-start-tests (Files): Likewise.
15684         * modules/unictype/property-ideographic-tests (Files): Likewise.
15685         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15686         * modules/unictype/property-ids-trinary-operator-tests (Files):
15687         Likewise.
15688         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15689         * modules/unictype/property-iso-control-tests (Files): Likewise.
15690         * modules/unictype/property-join-control-tests (Files): Likewise.
15691         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15692         * modules/unictype/property-line-separator-tests (Files): Likewise.
15693         * modules/unictype/property-logical-order-exception-tests (Files):
15694         Likewise.
15695         * modules/unictype/property-lowercase-tests (Files): Likewise.
15696         * modules/unictype/property-math-tests (Files): Likewise.
15697         * modules/unictype/property-non-break-tests (Files): Likewise.
15698         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15699         * modules/unictype/property-numeric-tests (Files): Likewise.
15700         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15701         * modules/unictype/property-other-default-ignorable-code-point-tests
15702         (Files): Likewise.
15703         * modules/unictype/property-other-grapheme-extend-tests (Files):
15704         Likewise.
15705         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15706         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15707         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15708         * modules/unictype/property-other-math-tests (Files): Likewise.
15709         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15710         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15711         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15712         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15713         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15714         * modules/unictype/property-private-use-tests (Files): Likewise.
15715         * modules/unictype/property-punctuation-tests (Files): Likewise.
15716         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15717         * modules/unictype/property-radical-tests (Files): Likewise.
15718         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15719         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15720         * modules/unictype/property-space-tests (Files): Likewise.
15721         * modules/unictype/property-terminal-punctuation-tests (Files):
15722         Likewise.
15723         * modules/unictype/property-test-tests (Files): Likewise.
15724         * modules/unictype/property-titlecase-tests (Files): Likewise.
15725         * modules/unictype/property-unassigned-code-value-tests (Files):
15726         Likewise.
15727         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15728         * modules/unictype/property-uppercase-tests (Files): Likewise.
15729         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15730         * modules/unictype/property-white-space-tests (Files): Likewise.
15731         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15732         * modules/unictype/property-xid-start-tests (Files): Likewise.
15733         * modules/unictype/property-zero-width-tests (Files): Likewise.
15734         * modules/unictype/scripts-tests (Files): Likewise.
15735         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15736         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15737         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15738         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15739         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15740         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15741         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15742         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15743         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15744         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15745         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15746         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15747         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15748         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15749         * modules/uninorm/composition-tests (Files): Likewise.
15750         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15751         * modules/uninorm/decomposition-tests (Files): Likewise.
15752         * modules/uninorm/filter-tests (Files): Likewise.
15753         * modules/uninorm/nfc-tests (Files): Likewise.
15754         * modules/uninorm/nfd-tests (Files): Likewise.
15755         * modules/uninorm/nfkc-tests (Files): Likewise.
15756         * modules/uninorm/nfkd-tests (Files): Likewise.
15757         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15758         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15759         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15760         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15761         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15762         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15763         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15764         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15765         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15766         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15767         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15768         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15769         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15770         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15771         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15772         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15773         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15774         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15775         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15776         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15777         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15778         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15779         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15780         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15781         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15782         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15783         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15784         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15785         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15786         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15787         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15788         * modules/uniwidth/u8-width-tests (Files): Likewise.
15789         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15790         * modules/uniwidth/u16-width-tests (Files): Likewise.
15791         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15792         * modules/uniwidth/u32-width-tests (Files): Likewise.
15793         * modules/uniwidth/width-tests (Files): Likewise.
15794         * modules/unlink-tests (Files): Likewise.
15795         * modules/unsetenv-tests (Files): Likewise.
15796         * modules/usleep-tests (Files): Likewise.
15797         * modules/utimens-tests (Files): Likewise.
15798         * modules/utimensat-tests (Files): Likewise.
15799         * modules/vasnprintf-posix-tests (Files): Likewise.
15800         * modules/vasnprintf-tests (Files): Likewise.
15801         * modules/vasprintf-posix-tests (Files): Likewise.
15802         * modules/vasprintf-tests (Files): Likewise.
15803         * modules/vdprintf-posix-tests (Files): Likewise.
15804         * modules/vfprintf-posix-tests (Files): Likewise.
15805         * modules/vprintf-posix-tests (Files): Likewise.
15806         * modules/vsnprintf-posix-tests (Files): Likewise.
15807         * modules/vsnprintf-tests (Files): Likewise.
15808         * modules/vsprintf-posix-tests (Files): Likewise.
15809         * modules/wcrtomb-tests (Files): Likewise.
15810         * modules/wcsnrtombs-tests (Files): Likewise.
15811         * modules/wcsrtombs-tests (Files): Likewise.
15812         * modules/wctype-tests (Files): Likewise.
15813         * modules/wcwidth-tests (Files): Likewise.
15814         * modules/xmemdup0-tests (Files): Likewise.
15815         * modules/xprintf-posix-tests (Files): Likewise.
15816         * modules/xvasprintf-tests (Files): Likewise.
15817
15818 2009-12-24  Eric Blake  <ebb9@byu.net>
15819
15820         test-nanosleep: fix typo
15821         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15822         patch.
15823         Reported by Bruno Haible.
15824
15825 2009-12-24  Bruno Haible  <bruno@clisp.org>
15826
15827         Reduce namespace pollution on glibc systems.
15828         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15829         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15830         systems.
15831         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15832         <getopt.h> on glibc systems.
15833         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15834         systems.
15835         * lib/fcntl.c: Include <unistd.h> here instead.
15836
15837 2009-12-24  Bruno Haible  <bruno@clisp.org>
15838
15839         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15840
15841 2009-12-24  Eric Blake  <ebb9@byu.net>
15842
15843         tests: add signature checks
15844         * tests/signature.h (SIGNATURE_CHECK): New file.
15845         * modules/atexit-tests (Files): Use it.
15846         * modules/btowc-tests (Files): Likewise.
15847         * modules/canonicalize-lgpl-tests (Files): Likewise.
15848         * modules/ceilf-tests (Files): Likewise.
15849         * modules/ceill-tests (Files): Likewise.
15850         * modules/chown-tests (Files): Likewise.
15851         * modules/dprintf-posix-tests (Files): Likewise.
15852         * modules/dup2-tests (Files): Likewise.
15853         * modules/dup3-tests (Files): Likewise.
15854         * modules/duplocale-tests (Files): Likewise.
15855         * modules/fchdir-tests (Files): Likewise.
15856         * modules/fcntl-tests (Files): Likewise.
15857         * modules/fdopendir-tests (Files): Likewise.
15858         * modules/fflush-tests (Files): Likewise.
15859         * modules/flock-tests (Files): Likewise.
15860         * modules/floorf-tests (Files): Likewise.
15861         * modules/floorl-tests (Files): Likewise.
15862         * modules/fnmatch-tests (Files): Likewise.
15863         * modules/fopen-tests (Files): Likewise.
15864         * modules/fprintf-posix-tests (Files): Likewise.
15865         * modules/freopen-tests (Files): Likewise.
15866         * modules/frexp-nolibm-tests (Files): Likewise.
15867         * modules/frexp-tests (Files): Likewise.
15868         * modules/frexpl-nolibm-tests (Files): Likewise.
15869         * modules/frexpl-tests (Files): Likewise.
15870         * modules/fseek-tests (Files): Likewise.
15871         * modules/fseeko-tests (Files): Likewise.
15872         * modules/fsync-tests (Files): Likewise.
15873         * modules/ftell-tests (Files): Likewise.
15874         * modules/ftello-tests (Files): Likewise.
15875         * modules/futimens-tests (Files): Likewise.
15876         * modules/getaddrinfo-tests (Files): Likewise.
15877         * modules/getcwd-tests (Files): Likewise.
15878         * modules/getdelim-tests (Files): Likewise.
15879         * modules/getdtablesize-tests (Files): Likewise.
15880         * modules/getgroups-tests (Files): Likewise.
15881         * modules/gethostname-tests (Files): Likewise.
15882         * modules/getline-tests (Files): Likewise.
15883         * modules/getopt-posix-tests (Files): Likewise.
15884         * modules/gettimeofday-tests (Files): Likewise.
15885         * modules/glob-tests (Files): Likewise.
15886         * modules/iconv-tests (Files): Likewise.
15887         * modules/inet_ntop-tests (Files): Likewise.
15888         * modules/inet_pton-tests (Files): Likewise.
15889         * modules/isblank-tests (Files): Likewise.
15890         * modules/lchown-tests (Files): Likewise.
15891         * modules/ldexpl-tests (Files): Likewise.
15892         * modules/link-tests (Files): Likewise.
15893         * modules/linkat-tests (Files): Likewise.
15894         * modules/lseek-tests (Files): Likewise.
15895         * modules/lstat-tests (Files): Likewise.
15896         * modules/mbrtowc-tests (Files): Likewise.
15897         * modules/mbsinit-tests (Files): Likewise.
15898         * modules/mbsnrtowcs-tests (Files): Likewise.
15899         * modules/mbsrtowcs-tests (Files): Likewise.
15900         * modules/memchr-tests (Files): Likewise.
15901         * modules/memcmp-tests (Files): Likewise.
15902         * modules/memmem-tests (Files): Likewise.
15903         * modules/memrchr-tests (Files): Likewise.
15904         * modules/mkdir-tests (Files): Likewise.
15905         * modules/mkfifo-tests (Files): Likewise.
15906         * modules/mkfifoat-tests (Files): Likewise.
15907         * modules/mknod-tests (Files): Likewise.
15908         * modules/nanosleep-tests (Files): Likewise.
15909         * modules/nl_langinfo-tests (Files): Likewise.
15910         * modules/obstack-printf-tests (Files): Likewise.
15911         * modules/open-tests (Files): Likewise.
15912         * modules/openat-tests (Files): Likewise.
15913         * modules/perror-tests (Files): Likewise.
15914         * modules/pipe2-tests (Files): Likewise.
15915         * modules/poll-tests (Files): Likewise.
15916         * modules/popen-tests (Files): Likewise.
15917         * modules/posix_spawn-tests (Files): Likewise.
15918         * modules/posix_spawnp-tests (Files): Likewise.
15919         * modules/pread-tests (Files): Likewise.
15920         * modules/printf-posix-tests (Files): Likewise.
15921         * modules/pty-tests (Files): Likewise.
15922         * modules/random_r-tests (Files): Likewise.
15923         * modules/rawmemchr-tests (Files): Likewise.
15924         * modules/readlink-tests (Files): Likewise.
15925         * modules/remove-tests (Files): Likewise.
15926         * modules/rename-tests (Files): Likewise.
15927         * modules/renameat-tests (Files): Likewise.
15928         * modules/rmdir-tests (Files): Likewise.
15929         * modules/round-tests (Files): Likewise.
15930         * modules/roundf-tests (Files): Likewise.
15931         * modules/roundl-tests (Files): Likewise.
15932         * modules/select-tests (Files): Likewise.
15933         * modules/setenv-tests (Files): Likewise.
15934         * modules/sigaction-tests (Files): Likewise.
15935         * modules/sleep-tests (Files): Likewise.
15936         * modules/snprintf-posix-tests (Files): Likewise.
15937         * modules/snprintf-tests (Files): Likewise.
15938         * modules/sprintf-posix-tests (Files): Likewise.
15939         * modules/stat-tests (Files): Likewise.
15940         * modules/strcasestr-tests (Files): Likewise.
15941         * modules/strchrnul-tests (Files): Likewise.
15942         * modules/strerror-tests (Files): Likewise.
15943         * modules/strsignal-tests (Files): Likewise.
15944         * modules/strstr-tests (Files): Likewise.
15945         * modules/strtod-tests (Files): Likewise.
15946         * modules/strverscmp-tests (Files): Likewise.
15947         * modules/symlink-tests (Files): Likewise.
15948         * modules/symlinkat-tests (Files): Likewise.
15949         * modules/times-tests (Files): Likewise.
15950         * modules/trunc-tests (Files): Likewise.
15951         * modules/truncf-tests (Files): Likewise.
15952         * modules/truncl-tests (Files): Likewise.
15953         * modules/tsearch-tests (Files): Likewise.
15954         * modules/uname-tests (Files): Likewise.
15955         * modules/unlink-tests (Files): Likewise.
15956         * modules/unsetenv-tests (Files): Likewise.
15957         * modules/usleep-tests (Files): Likewise.
15958         * modules/utimensat-tests (Files): Likewise.
15959         * modules/vasprintf-tests (Files): Likewise.
15960         * modules/vdprintf-posix-tests (Files): Likewise.
15961         * modules/vfprintf-posix-tests (Files): Likewise.
15962         * modules/vprintf-posix-tests (Files): Likewise.
15963         * modules/vsnprintf-posix-tests (Files): Likewise.
15964         * modules/vsnprintf-tests (Files): Likewise.
15965         * modules/vsprintf-posix-tests (Files): Likewise.
15966         * modules/wcrtomb-tests (Files): Likewise.
15967         * modules/wcsnrtombs-tests (Files): Likewise.
15968         * modules/wcsrtombs-tests (Files): Likewise.
15969         * modules/wcwidth-tests (Files): Likewise.
15970         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15971         * tests/test-isinf.c (isinf): Likewise.
15972         * tests/test-isnan.c (isnan): Likewise.
15973         * tests/test-signbit.c (signbit): Likewise.
15974         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15975         declaration, either as macro or with correct signature.
15976         (select): Ensure function under test is declared with correct
15977         signature in correct header.
15978         * tests/test-atexit.c (atexit): Likewise.
15979         * tests/test-btowc.c (btowc): Likewise.
15980         * tests/test-canonicalize-lgpl.c (realpath)
15981         (canonicalize_file_name): Likewise.
15982         * tests/test-ceilf1.c (ceilf): Likewise.
15983         * tests/test-ceill.c (ceill): Likewise.
15984         * tests/test-chown.c (chown): Likewise.
15985         * tests/test-dprintf-posix.c (dprintf): Likewise.
15986         * tests/test-dup2.c (dup2): Likewise.
15987         * tests/test-dup3.c (dup3): Likewise.
15988         * tests/test-duplocale.c (duplocale): Likewise.
15989         * tests/test-fchdir.c (fchdir): Likewise.
15990         * tests/test-fchownat.c (fchownat): Likewise.
15991         * tests/test-fcntl.c (fcntl): Likewise.
15992         * tests/test-fdopendir.c (fdopendir): Likewise.
15993         * tests/test-fflush.c (fflush): Likewise.
15994         * tests/test-flock.c (flock): Likewise.
15995         * tests/test-floorf1.c (floorf): Likewise.
15996         * tests/test-floorl.c (floorl): Likewise.
15997         * tests/test-fnmatch.c (fnmatch): Likewise.
15998         * tests/test-fopen.c (fopen): Likewise.
15999         * tests/test-fprintf-posix.c (fprintf): Likewise.
16000         * tests/test-freopen.c (freopen): Likewise.
16001         * tests/test-frexp.c (frexp): Likewise.
16002         * tests/test-frexpl.c (frexpl): Likewise.
16003         * tests/test-fseek.c (fseek): Likewise.
16004         * tests/test-fseeko.c (fseeko): Likewise.
16005         * tests/test-fstatat.c (fstatat): Likewise.
16006         * tests/test-fsync.c (fsync): Likewise.
16007         * tests/test-ftell.c (ftell): Likewise.
16008         * tests/test-ftello.c (ftello): Likewise.
16009         * tests/test-futimens.c (futimens): Likewise.
16010         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16011         (gai_strerror): Likewise.
16012         * tests/test-getcwd.c (getcwd): Likewise.
16013         * tests/test-getdelim.c (getdelim): Likewise.
16014         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16015         * tests/test-getgroups.c (getgroups): Likewise.
16016         * tests/test-gethostname.c (gethostname): Likewise.
16017         * tests/test-getline.c (getline): Likewise.
16018         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16019         Likewise.
16020         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16021         * tests/test-glob.c (glob, globfree): Likewise.
16022         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16023         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16024         * tests/test-inet_pton.c (inet_pton): Likewise.
16025         * tests/test-isblank.c (isblank): Likewise.
16026         * tests/test-lchown.c (lchown): Likewise.
16027         * tests/test-ldexpl.c (ldexpl): Likewise.
16028         * tests/test-link.c (link): Likewise.
16029         * tests/test-linkat.c (linkat): Likewise.
16030         * tests/test-lseek.c (lseek): Likewise.
16031         * tests/test-lstat.c (lstat): Likewise.
16032         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16033         * tests/test-mbsinit.c (mbsinit): Likewise.
16034         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16035         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16036         * tests/test-memchr.c (memchr): Likewise.
16037         * tests/test-memcmp.c (memcmp): Likewise.
16038         * tests/test-memmem.c (memmem): Likewise.
16039         * tests/test-memrchr.c (memrchr): Likewise.
16040         * tests/test-mkdir.c (mkdir): Likewise.
16041         * tests/test-mkdirat.c (mkdirat): Likewise.
16042         * tests/test-mkfifo.c (mkfifo): Likewise.
16043         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16044         * tests/test-mknod.c (mknod): Likewise.
16045         * tests/test-nanosleep.c (nanosleep): Likewise.
16046         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16047         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16048         Likewise.
16049         * tests/test-open.c (open): Likewise.
16050         * tests/test-openat.c (openat): Likewise.
16051         * tests/test-perror.c (perror): Likewise.
16052         * tests/test-pipe2.c (pipe2): Likewise.
16053         * tests/test-poll.c (poll): Likewise.
16054         * tests/test-popen.c (popen, pclose): Likewise.
16055         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16056         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16057         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16058         (posix_spawn_file_actions_destroy)
16059         (posix_spawn_file_actions_addclose)
16060         (posix_spawn_file_actions_addopen)
16061         (posix_spawn_file_actions_adddup2): Likewise.
16062         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16063         * tests/test-pread.c (pread): Likewise.
16064         * tests/test-printf-posix.c (printf): Likewise.
16065         * tests/test-pty.c (openpty, forkpty): Likewise.
16066         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16067         (random_r): Likewise.
16068         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16069         * tests/test-readlink.c (readlink): Likewise.
16070         * tests/test-remove.c (remove): Likewise.
16071         * tests/test-rename.c (rename): Likewise.
16072         * tests/test-renameat.c (renameat): Likewise.
16073         * tests/test-rmdir.c (rmdir): Likewise.
16074         * tests/test-round1.c (round): Likewise.
16075         * tests/test-roundf1.c (roundf): Likewise.
16076         * tests/test-roundl.c (roundl): Likewise.
16077         * tests/test-setenv.c (setenv): Likewise.
16078         * tests/test-sigaction.c (sigaction): Likewise.
16079         * tests/test-sleep.c (sleep): Likewise.
16080         * tests/test-snprintf.c (snprintf): Likewise.
16081         * tests/test-sprintf-posix.c (sprintf): Likewise.
16082         * tests/test-stat.c (stat): Likewise.
16083         * tests/test-stpncpy.c (stpncpy): Likewise.
16084         * tests/test-strcasestr.c (strcasestr): Likewise.
16085         * tests/test-strchrnul.c (strchrnul): Likewise.
16086         * tests/test-strerror.c (strerror): Likewise.
16087         * tests/test-strsignal.c (strsignal): Likewise.
16088         * tests/test-strstr.c (strstr): Likewise.
16089         * tests/test-strtod.c (strtod): Likewise.
16090         * tests/test-strverscmp.c (strverscmp): Likewise.
16091         * tests/test-symlink.c (symlink): Likewise.
16092         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16093         * tests/test-times.c (times): Likewise.
16094         * tests/test-trunc1.c (trunc): Likewise.
16095         * tests/test-truncf1.c (truncf): Likewise.
16096         * tests/test-truncl.c (truncl): Likewise.
16097         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16098         Likewise.
16099         * tests/test-uname.c (uname): Likewise.
16100         * tests/test-unlink.c (unlink): Likewise.
16101         * tests/test-unlinkat.c (unlinkat): Likewise.
16102         * tests/test-unsetenv.c (unsetenv): Likewise.
16103         * tests/test-usleep.c (usleep): Likewise.
16104         * tests/test-utimensat.c (utimensat): Likewise.
16105         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16106         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16107         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16108         * tests/test-vprintf-posix.c (vprintf): Likewise.
16109         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16110         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16111         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16112         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16113         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16114         * tests/test-wcwidth.c (wcwidth): Likewise.
16115
16116         build: pull in conditional headers during GNULIB_POSIXCHECK
16117         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16118         definitions from any conditionally-included headers.
16119         * lib/stdlib.in.h (includes): Likewise.
16120         * lib/unistd.in.h (includes): Likewise.
16121
16122 2009-12-24  Bruno Haible  <bruno@clisp.org>
16123
16124         * tests/test-argv-iter.c: Include header file being tested immediately
16125         after config.h.
16126         * tests/test-base64.c: Likewise.
16127         * tests/test-flock.c: Likewise.
16128         * tests/test-fsync.c: Likewise.
16129         * tests/test-getdate.c: Likewise.
16130         * tests/test-getndelim2.c: Likewise.
16131         * tests/test-isfinite.c: Likewise.
16132         * tests/test-isinf.c: Likewise.
16133         * tests/test-strerror.c: Likewise.
16134         * tests/test-strsignal.c: Likewise.
16135
16136 2009-12-23  Eric Blake  <ebb9@byu.net>
16137
16138         unistd: work around cygwin bug
16139         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16140         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16141         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16142
16143 2009-12-23  Bruno Haible  <bruno@clisp.org>
16144
16145         localename: More tests.
16146         * tests/test-localename.c (SIZEOF): New macro.
16147         (categories): New variable.
16148         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16149         test_locale_name_default): Add test w.r.t. thread locale.
16150         (test_locale_name_thread): New function.
16151         (main): Invoke it.
16152
16153         localename: Make aware of thread locale.
16154         * lib/localename.h (gl_locale_name_thread): New declaration.
16155         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16156         behaviour with respect to thread locale.
16157         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16158         <langinfo.h>, glthread/lock.h.
16159         (SIZE_BITS): New macro.
16160         (string_hash): New function.
16161         (struct hash_node): New type.
16162         (HASH_TABLE_SIZE): New macro.
16163         (struniq_hash_table, struniq_lock): New variables.
16164         (struniq): New function.
16165         (gl_locale_name_thread): New function.
16166         (gl_locale_name): Invoke it.
16167         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16168         * modules/localename (Depends-on): Add lock.
16169         Reported by Mike Gran <spk121@yahoo.com>.
16170
16171 2009-12-23  Eric Blake  <ebb9@byu.net>
16172
16173         va-args: new module
16174         * modules/va-args: New file.
16175         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16176         * MODULES.html.sh (Core language properties): Mention it.
16177
16178         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16179         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16180         named alias for __attribute__((__unused__)).
16181         * lib/chown.c: Update client.
16182         * lib/fchmodat.c: Likewise.
16183         * lib/fts.c: Likewise.
16184         * lib/getdate.y: Likewise.
16185         * lib/getgroups.c: Likewise.
16186         * lib/getopt.c: Likewise.
16187         * lib/getugroups.c: Likewise.
16188         * lib/mkdir.c: Likewise.
16189         * lib/mkfifo.c: Likewise.
16190         * lib/mkfifoat.c: Likewise.
16191         * lib/mknod.c: Likewise.
16192         * lib/mknodat.c: Likewise.
16193         * lib/readlink.c: Likewise.
16194         * lib/se-context.in.h: Likewise.
16195         * lib/se-selinux.in.h: Likewise.
16196         * lib/sockets.c: Likewise.
16197         * lib/symlink.c: Likewise.
16198         * lib/symlinkat.c: Likewise.
16199         * lib/unicodeio.c: Likewise.
16200         * lib/unistr.h: Likewise.
16201         * tests/test-areadlink.c: Likewise.
16202         * tests/test-areadlinkat.c: Likewise.
16203         * tests/test-filenamecat.c: Likewise.
16204         * tests/test-fseeko.c: Likewise.
16205         * tests/test-ftello.c: Likewise.
16206         * tests/test-getdate.c: Likewise.
16207         * tests/test-getgroups.c: Likewise.
16208         * tests/test-gethostname.c: Likewise.
16209         * tests/test-quotearg.c: Likewise.
16210         * tests/test-version-etc.c: Likewise.
16211         * tests/test-xalloc-die.c: Likewise.
16212         * tests/test-xfprintf-posix.c: Likewise.
16213         * tests/test-xprintf-posix.c: Likewise.
16214         * tests/test-xvasprintf.c: Likewise.
16215
16216         tests: avoid compiler warnings
16217         * tests/test-fcntl.c (main): Delete unused parameters.
16218         * tests/test-freopen-safer.c (main): Likewise.
16219         * tests/test-xalloc-die.c (main): Mark unused parameters.
16220         * tests/test-fseeko.c (main): Likewise.
16221         * tests/test-ftello.c (main): Likewise.
16222         * tests/test-nanosleep.c (main): Avoid declaration warning.
16223         * tests/test-sleep.c (main): Likewise.
16224         * tests/test-unsetenv.c (main): Silence warning about string
16225         literal.
16226         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16227
16228 2009-12-23  Bruno Haible  <bruno@clisp.org>
16229
16230         * tests/test-localename.c (test_locale_name): New function, extracted
16231         from main. Also test mixed situations.
16232         (test_locale_name_posix, test_locale_name_environ,
16233         test_locale_name_default): New functions.
16234         (main): Invoke them all.
16235         * modules/localename-tests (configure.ac): Test for newlocale.
16236
16237 2009-12-23  Bruno Haible  <bruno@clisp.org>
16238
16239         unistd: Ensure getcwd gets declared before being overridden.
16240         * lib/unistd.in.h: Conditionally include <io.h>.
16241
16242 2009-12-22  Bruno Haible  <bruno@clisp.org>
16243
16244         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16245         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16246         (gl_WCHAR_H): Invoke it.
16247         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16248         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16249         Reported by Karl Berry <karl@freefriends.org>.
16250
16251 2009-12-22  Eric Blake  <ebb9@byu.net>
16252
16253         math, unistd: avoid redundant includes
16254         * lib/math.in.h (isnan): No need to re-include <math.h>.
16255         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16256
16257         getsubopt: work around cygwin bug
16258         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16259         avoid conflicting with system getsubopt.
16260         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16261         bug.
16262
16263         getopt: synchronize from glibc
16264         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16265         parameter order.  Adjust all callers.
16266         (_getopt_internal_r, main): Adjust quoting in error messages.
16267         Drop considerations for outdated POSIX 1003.2 error message.
16268         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16269         callers.
16270         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16271
16272         test-getopt: test stderr behavior
16273         * modules/getopt-posix-tests (Depends-on): Add dup2.
16274         * tests/test-getopt.c (ASSERT): Avoid stderr.
16275         (main): Move stderr to a temporary file.
16276         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16277         Instead, add parameter to inform caller if output occurred.
16278         (test_getopt): Adjust all existing tests to expect silence, and
16279         add new tests of leading ":".
16280         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16281         glibc shortcomings with leading "-:" or "+:" in optstring.
16282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16283         Likewise.
16284         * doc/posix-functions/getopt.texi (getopt): Likewise.
16285
16286         test-getopt: enhance test
16287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16288         supports optind=0.
16289         * tests/test-getopt.c (OPTIND_MIN): Move...
16290         * tests/test-getopt.h (OPTIND_MIN): ...here.
16291         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16292         Require that optind=0 works, since modern BSD supports it in
16293         addition to optreset, and since coreutils expects it.
16294         (test_getopt_long_only): New test.
16295         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16296         glibc shortcomings with 'W;', and enforcement of optind=0.
16297         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16298         Likewise.
16299
16300 2009-12-21  Bruno Haible  <bruno@clisp.org>
16301
16302         localename: Improvements for MacOS X and Cygwin.
16303         * lib/localename.h (gl_locale_name_environ): New declaration.
16304         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16305         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16306         (gl_locale_name_posix): Invoke it.
16307         (gl_locale_name_default): Add comments. Use Windows native API also on
16308         Cygwin.
16309
16310 2009-12-21  Bruno Haible  <bruno@clisp.org>
16311
16312         Update list of Win32 locale ids.
16313         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16314         (LANG_SAMI): Renamed from LANG_SAAMI.
16315         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16316         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16317         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16318         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16319         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16320         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16321         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16322         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16323         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16324         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16325         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16326         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16327         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16328         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16329         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16330         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16331         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16332         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16333         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16334         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16335         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16336         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16337         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16338         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16339         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16340         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16341         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16342         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16343         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16344         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16345         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16346         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16347         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16348         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16349         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16350         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16351         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16352         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16353         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16354         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16355         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16356         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16357         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16358         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16359         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16360         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16361         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16362         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16363         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16364         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16365         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16366         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16367         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16368         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16369         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16370         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16371         Add more languages and countries for Sami, Sorbian. Add more countries
16372         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16373         for Pashto. Change country for Syriac, Tswana.
16374
16375 2009-12-21  Eric Blake  <ebb9@byu.net>
16376
16377         test-utimens: avoid spurious failure
16378         * tests/test-chown.h (nap): Factor...
16379         * tests/nap.h: ...into new file.
16380         * tests/test-lchown.h (nap): Avoid duplication.
16381         * tests/test-utimens-common.h (nap): Use shared implementation,
16382         necessary on file systems with 1-second resolution.
16383         * modules/chown-tests (Files): Include new file.
16384         * modules/fdutimensat-tests (Files): Likewise.
16385         * modules/futimens-tests (Files): Likewise.
16386         * modules/lchown-tests (Files): Likewise.
16387         * modules/openat-tests (Files): Likewise.
16388         * modules/utimens-tests (Files): Likewise.
16389         * modules/utimensat-tests (Files): Likewise.
16390
16391 2009-12-19  Eric Blake  <ebb9@byu.net>
16392
16393         futimens, utimensat: work around Linux bug
16394         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16395         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16396         * lib/utimensat.c (rpl_utimensat): Work around it.
16397         * lib/futimens.c (rpl_futimens): Adjust comment.
16398
16399         utimens: work around Linux ctime bug
16400         * lib/utimens.c (detect_ctime_bug): New helper function.
16401         (update_timespec): Differentiate between workaround needed for
16402         this bug vs. what is needed for systems that lack utimensat.
16403         (fdutimens, lutimens): Work around bug.
16404
16405         utimens: check for ctime update
16406         * tests/test-utimens-common.h (check_ctime): Define.
16407         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16408         * tests/test-futimens.h (test_futimens): Likewise.
16409         * tests/test-lutimens.h (test_lutimens): Likewise.
16410         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16411         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16412
16413 2009-12-19  Bruno Haible  <bruno@clisp.org>
16414
16415         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16416         * tests/test-dprintf-posix2.sh: New file.
16417         * tests/test-dprintf-posix2.c: New file.
16418         * modules/dprintf-posix-tests (Files): Add them.
16419         (configure.ac): Check for getrlimit and setrlimit.
16420         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16421
16422 2009-12-19  Bruno Haible  <bruno@clisp.org>
16423
16424         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16425         * tests/test-fprintf-posix3.sh: New file.
16426         * tests/test-fprintf-posix3.c: New file.
16427         * modules/fprintf-posix-tests (Files): Add them.
16428         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16429
16430 2009-12-19  Eric Blake  <ebb9@byu.net>
16431
16432         dirfd: fix prototype
16433         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16434         * lib/dirfd.c (dirfd): Likewise.
16435
16436         canonicalize: reduce memory usage
16437         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16438         allocation to size.
16439         Reported by Solar Designer <solar@openwall.com>.
16440
16441 2009-12-19  Bruno Haible  <bruno@clisp.org>
16442
16443         New module attribute 'Applicability'.
16444         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16445         * gnulib-tool: New option --extract-applicability.
16446         (func_usage): Document it.
16447         (sed_extract_prog): Recognize it.
16448         (func_get_applicability): New function.
16449         (func_import): Generalize handling of 'link-warning' module.
16450         * modules/link-warning (Applicability): New section.
16451         * modules/arg-nonnull (Applicability): New section.
16452         Repoted by Simon Josefsson <simon@josefsson.org>.
16453
16454 2009-12-19  Bruno Haible  <bruno@clisp.org>
16455
16456         fflush: tweak
16457         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16458         * lib/fseeko.c (rpl_fseeko): Likewise.
16459
16460 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16461
16462         * lib/gl_list.h: Fix typo in comment.
16463
16464 2009-12-16  Eric Blake  <ebb9@byu.net>
16465
16466         fcntl: use to simplify other modules
16467         * modules/cloexec (Depends-on): Add fcntl.
16468         * modules/fchdir (Depends-on): Likewise.
16469         * modules/fd-safer-flag (Depends-on): Likewise.
16470         * modules/unistd-safer (Depends-on): Likewise.
16471         * modules/dup3 (configure.ac): Set module indicator.
16472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16473         missing.
16474         * lib/fchdir.c (_gl_register_dup): Fix comment.
16475         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16476         * lib/dup-safer.c (dup_safer): Likewise.
16477         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16478         * lib/dup3.c (dup3): Likewise.
16479         * tests/test-fchdir.c (main): Enhance test.
16480         Fixes a dup_cloexec bug reported by Ondřej Vašík.
16481
16482         fcntl: port portions of fcntl to mingw
16483         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16484         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16485         replacement for mingw.
16486         * modules/fcntl (Description): Update.
16487         (Depends-on): Add dup2.
16488         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16489         * modules/fcntl-h (Makefile.am): Substitute it.
16490         * lib/fcntl.in.h (fcntl): Update declaration.
16491         (F_DUPFD, F_GETFD): New macros, when needed.
16492         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16493         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16494         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16495         we now guarantee.
16496
16497         fcntl: work around cygwin bug in F_DUPFD
16498         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16499         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16500         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16501         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16502         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16503
16504         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16505         * modules/fcntl (Files): List new files.
16506         (configure.ac): Run a test.
16507         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16508         * lib/fcntl.c (rpl_fcntl): Likewise.
16509         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16510         (gl_FCNTL_H): Always replace fcntl.h.
16511         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16512         * lib/fcntl.in.h (fcntl): Declare replacement.
16513         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16514         needed, plus a witness.
16515         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16516         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16517         * tests/test-fcntl.c: New file.
16518         * modules/fcntl-tests: Likewise.
16519
16520         binary-io: avoid potential compilation warning
16521         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16522         directives.
16523
16524         fflush: avoid compilation error on NetBSD
16525         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16526         between off_t and fpos_t, since the latter is sometimes a struct.
16527         * lib/fseeko.c (rpl_fseeko): Likewise.
16528         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16529
16530 2009-12-15  Eric Blake  <ebb9@byu.net>
16531
16532         fcntl-h, stdio, sys_ioctl: fix declarations
16533         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16534         function must not take arguments.
16535         * lib/sys_ioctl.in.h (ioctl): Likewise.
16536         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16537         (open): Add a link warning.
16538
16539 2009-12-15  Jim Meyering  <meyering@redhat.com>
16540
16541         areadlink, areadlink-with-size: relax license to LGPLv2+
16542         * modules/areadlink (License): Relax to LGPLv2+.
16543         * modules/areadlink-with-size (License): Likewise.
16544
16545 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16546             Bruno Haible  <bruno@clisp.org>
16547
16548         *printf: Fix memory leak.
16549         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16550         * lib/vfprintf.c (vfprintf): Likewise.
16551         * lib/dprintf.c (dprintf): Likewise.
16552         * lib/vdprintf.c (vdprintf): Likewise.
16553
16554 2009-12-14  Eric Blake  <ebb9@byu.net>
16555
16556         accept4: adjust module dependencies
16557         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16558
16559         utimens: one more try at avoiding compiler warning
16560         * lib/utimens.c (lutimens): Lower scope of result.
16561
16562 2009-12-13  Bruno Haible  <bruno@clisp.org>
16563
16564         Move the malloc checking from module 'list' to new module 'xlist'.
16565         * modules/xlist: New file.
16566         * lib/gl_xlist.h: New file.
16567         * lib/gl_xlist.c: New file.
16568         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16569         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16570         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16571         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16572         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16573         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16574         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16575         gl_sortedlist_nx_add): New declarations.
16576         (struct gl_list_implementation): Rename and change methods accordingly.
16577         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16578         (gl_list_nx_create): Renamed from gl_list_create.
16579         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16580         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16581         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16582         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16583         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16584         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16585         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16586         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16587         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16588         gl_list_create_empty.
16589         (gl_list_nx_create): Renamed from gl_list_create.
16590         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16591         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16592         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16593         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16594         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16595         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16596         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16597         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16598         * lib/gl_array_list.c: Don't include xalloc.h.
16599         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16600         NULL upon out-of-memory.
16601         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16602         out-of-memory.
16603         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16604         Change return type to 'int'.
16605         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16606         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16607         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16608         upon out-of-memory.
16609         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16610         upon out-of-memory.
16611         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16612         upon out-of-memory.
16613         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16614         upon out-of-memory.
16615         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16616         out-of-memory.
16617         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16618         Update.
16619         (gl_array_list_implementation): Update.
16620         * lib/gl_carray_list.c: Don't include xalloc.h.
16621         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16622         Return NULL upon out-of-memory.
16623         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16624         out-of-memory.
16625         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16626         Change return type to 'int'.
16627         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16628         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16629         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16630         upon out-of-memory.
16631         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16632         upon out-of-memory.
16633         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16634         out-of-memory.
16635         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16636         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16637         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16638         Update.
16639         (gl_carray_list_implementation): Update.
16640         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16641         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16642         gl_linked_create_empty. Return NULL upon out-of-memory.
16643         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16644         out-of-memory.
16645         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16646         Change return type to 'int'. Return -1 upon out-of-memory.
16647         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16648         out-of-memory.
16649         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16650         upon out-of-memory.
16651         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16652         upon out-of-memory.
16653         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16654         NULL upon out-of-memory.
16655         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16656         upon out-of-memory.
16657         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16658         out-of-memory.
16659         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16660         Update.
16661         * lib/gl_linked_list.c: Don't include xalloc.h.
16662         (gl_linked_list_implementation): Update.
16663         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16664         (add_to_bucket): Change return type to 'int'.
16665         (gl_linkedhash_list_implementation): Update.
16666         * lib/gl_anytree_list1.h (free_subtree): New function.
16667         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16668         gl_tree_create_empty. Return NULL upon out-of-memory.
16669         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16670         Change return type to 'int'. Return -1 upon out-of-memory.
16671         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16672         out-of-memory.
16673         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16674         (gl_tree_remove_node): New function, moved here from
16675         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16676         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16677         Update.
16678         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16679         malloc, not xmalloc. Return NULL upon out-of-memory.
16680         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16681         out-of-memory.
16682         (gl_tree_remove_node_from_tree): New function, extracted from
16683         gl_tree_remove_node.
16684         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16685         upon out-of-memory.
16686         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16687         out-of-memory.
16688         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16689         upon out-of-memory.
16690         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16691         upon out-of-memory.
16692         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16693         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16694         not xmalloc. Return NULL upon out-of-memory.
16695         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16696         out-of-memory.
16697         (gl_tree_remove_node_from_tree): New function, extracted from
16698         gl_tree_remove_node.
16699         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16700         upon out-of-memory.
16701         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16702         out-of-memory.
16703         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16704         upon out-of-memory.
16705         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16706         upon out-of-memory.
16707         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16708         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16709         gl_anytree_list1.h before gl_anyavltree_list2.h.
16710         (gl_avltree_list_implementation): Update.
16711         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16712         gl_anytree_list1.h before gl_anyavltree_list2.h.
16713         (gl_rbtree_list_implementation): Update.
16714         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16715         Change return type to 'int'. Return -1 upon out-of-memory. Use
16716         __builtin_expect.
16717         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16718         (gl_avltreehash_list_implementation): Update.
16719         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16720         (gl_rbtreehash_list_implementation): Update.
16721         * modules/array-list (Depends-on): Remove xalloc.
16722         * modules/carray-list (Depends-on): Likewise.
16723         * modules/linked-list (Depends-on): Likewise.
16724         * modules/linkedhash-list (Depends-on): Likewise.
16725         * modules/avltree-list (Depends-on): Likewise.
16726         * modules/rbtree-list (Depends-on): Likewise.
16727         * modules/avltreehash-list (Depends-on): Likewise.
16728         * modules/rbtreehash-list (Depends-on): Likewise.
16729
16730         * modules/xsublist: New file.
16731         * lib/gl_xsublist.h: New file.
16732         * lib/gl_xsublist.c: New file.
16733         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16734         (gl_sublist_nx_create): New declaration.
16735         * lib/gl_sublist.c: Don't include xalloc.h.
16736         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16737         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16738         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16739         Change return type to 'int'. Return -1 upon out-of-memory.
16740         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16741         upon out-of-memory.
16742         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16743         NULL upon out-of-memory.
16744         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16745         upon out-of-memory.
16746         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16747         NULL upon out-of-memory.
16748         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16749         NULL upon out-of-memory.
16750         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16751         upon out-of-memory.
16752         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16753         (gl_sublist_list_implementation): Update.
16754         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16755         upon out-of-memory.
16756         * modules/sublist (Depends-on): Remove xalloc.
16757
16758         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16759         * tests/test-carray_list.c: Likewise.
16760         * tests/test-linked_list.c: Likewise.
16761         * tests/test-linkedhash_list.c: Likewise.
16762         * tests/test-avltree_list.c: Likewise.
16763         * tests/test-rbtree_list.c: Likewise.
16764         * tests/test-avltreehash_list.c: Likewise.
16765         * tests/test-rbtreehash_list.c: Likewise.
16766         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16767         * modules/carray-list-tests (Makefile.am): Likewise.
16768         * modules/linked-list-tests (Makefile.am): Likewise.
16769         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16770         * modules/avltree-list-tests (Makefile.am): Likewise.
16771         * modules/rbtree-list-tests (Makefile.am): Likewise.
16772         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16773         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16774
16775         * NEWS: Mention the changes.
16776
16777         * lib/clean-temp.c: Include gl_xlist.h.
16778         * modules/clean-temp (Depends-on): Add xlist.
16779
16780         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16781         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16782
16783         * tests/test-array_oset.c: Include gl_xlist.h.
16784         * modules/array-oset-tests (Depends-on): Add xlist.
16785
16786         Reported by José E. Marchesi <jemarch@gnu.org>.
16787
16788 2009-12-13  Bruno Haible  <bruno@clisp.org>
16789
16790         Move the malloc checking from module 'oset' to new module 'xoset'.
16791         * modules/xoset: New file.
16792         * lib/gl_xoset.h: New file.
16793         * lib/gl_xoset.c: New file.
16794         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16795         declarations.
16796         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16797         (struct gl_oset_implementation): Rename and change methods accordingly.
16798         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16799         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16800         'int'. Mark as __warn_unused_result__.
16801         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16802         gl_oset_create_empty.
16803         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16804         'int'.
16805         * lib/gl_array_oset.c: Don't include xalloc.h.
16806         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16807         malloc, not xmalloc.
16808         (grow): Change return type to 'int'. Don't call xalloc_die.
16809         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16810         to 'int'.
16811         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16812         'int'.
16813         (gl_array_oset_implementation): Update.
16814         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16815         gl_tree_create_empty.
16816         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16817         'int'.
16818         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16819         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16820         xmalloc.
16821         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16822         not xmalloc.
16823         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16824         xmalloc.
16825         (gl_avltree_oset_implementation): Update.
16826         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16827         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16828         xmalloc.
16829         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16830         not xmalloc.
16831         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16832         xmalloc.
16833         (gl_rbtree_oset_implementation): Update.
16834         * modules/array-oset (Depends-on): Remove xalloc.
16835         * modules/avltree-oset (Depends-on): Likewise.
16836         * modules/rbtree-oset (Depends-on): Likewise.
16837         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16838         * tests/test-avltree_oset.c: Likewise.
16839         * tests/test-rbtree_oset.c: Likewise.
16840         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16841         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16842         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16843         * NEWS: Mention the change.
16844
16845 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16846
16847         maint.mk: allow a project to override release-prep commands
16848         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16849         commands into a new rule.
16850         (release-prep): New rule.
16851         (release-prep-hook): New overridable variable.
16852
16853 2009-12-13  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16856
16857 2009-12-13  Jim Meyering  <meyering@redhat.com>
16858
16859         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16860         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16861
16862 2009-12-12  Bruno Haible  <bruno@clisp.org>
16863
16864         duplocale: Tweak.
16865         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16866
16867 2009-12-12  Karl Berry  <karl@gnu.org>
16868
16869         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16870
16871 2009-12-12  Bruno Haible  <bruno@clisp.org>
16872
16873         * m4/po.m4: Undo incorrect untabification.
16874
16875 2009-12-12  Bruno Haible  <bruno@clisp.org>
16876
16877         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16878         * modules/c-strtod (Depends-on): Add locale.
16879         * modules/c-strtold (Depends-on): Likewise.
16880
16881 2009-12-12  Bruno Haible  <bruno@clisp.org>
16882
16883         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16884
16885 2009-12-11  Eric Blake  <ebb9@byu.net>
16886
16887         setenv: relax requirement in light of POSIX ruling
16888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16889         not NULL.
16890         * tests/test-setenv.c (main): Relax test.
16891         * tests/test-unsetenv.c (main): Likewise.
16892         * doc/posix-functions/setenv.texi (setenv): Document this.
16893         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16894
16895 2009-12-11  Bruno Haible  <bruno@clisp.org>
16896
16897         New module 'fd-safer-flag'.
16898         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16899         * lib/dup-safer.c (dup_safer_flag): Remove function.
16900         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16901         * lib/fd-safer.c (fd_safer_flag): Remove function.
16902         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16903         * modules/cloexec (configure.ac): Drop indicator macro.
16904         * modules/fd-safer-flag: New file.
16905         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16906         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16907         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16908
16909 2009-12-11  Bruno Haible  <bruno@clisp.org>
16910
16911         Tests for module 'nl_langinfo'.
16912         * modules/nl_langinfo-tests: New file.
16913         * tests/test-nl_langinfo.sh: New file.
16914         * tests/test-nl_langinfo.c: New file.
16915
16916         New module 'nl_langinfo'.
16917         * lib/nl_langinfo.c: New file.
16918         * m4/nl_langinfo.m4: New file.
16919         * modules/nl_langinfo: New file.
16920         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16921
16922 2009-12-11  Bruno Haible  <bruno@clisp.org>
16923
16924         Tests for module 'langinfo'.
16925         * modules/langinfo-tests: New file.
16926         * tests/test-langinfo.c: New file.
16927
16928         New module 'langinfo'.
16929         * lib/langinfo.in.h: New file.
16930         * m4/langinfo_h.m4: New file.
16931         * modules/langinfo: New file.
16932         * doc/posix-headers/langinfo.texi: Mention the new module.
16933
16934 2009-12-11  Bruno Haible  <bruno@clisp.org>
16935
16936         * lib/config.charset: Untabify.
16937
16938 2009-12-11  Bruno Haible  <bruno@clisp.org>
16939
16940         * modules/unistd-safer (configure.ac): Drop indicator macro.
16941
16942 2009-12-11  Bruno Haible  <bruno@clisp.org>
16943
16944         Move pipe2-safer code to its own file.
16945         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16946         * lib/pipe-safer.c (pipe2_safer): Remove function.
16947         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16948         (Makefile.am): Add it to lib_SOURCES.
16949
16950 2009-12-10  Bruno Haible  <bruno@clisp.org>
16951
16952         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16953
16954 2009-12-10  Bruno Haible  <bruno@clisp.org>
16955
16956         Declare which arguments expect non-NULL values, for GCC and clang.
16957         * build-aux/arg-nonnull.h: New file.
16958         * modules/arg-nonnull: New file.
16959         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16960         (inet_ntop, inet_pton): Use it.
16961         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16962         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16963         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16964         (open, openat): Use it.
16965         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16966         (fnmatch): Use it.
16967         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16968         (getopt, getopt_long, getopt_long_only): Use it.
16969         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16970         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16971         Use it.
16972         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16973         (iconv_open): Use it.
16974         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16975         (strtoimax, strtoumax): Use it.
16976         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16977         (duplocale): Use it.
16978         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16979         (frexp, frexpl): Use it.
16980         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16981         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16982         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16983         (tsearch, tfind, tdelete, twalk): Use it.
16984         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16985         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16986         sigpending): Use it.
16987         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16988         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16989         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16990         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16991         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16992         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16993         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16994         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16995         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16996         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16997         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16998         Use it.
16999         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17000         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17001         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17002         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17003         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17004         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17005         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17006         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17007         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17008         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17009         strtoull, unsetenv): Use it.
17010         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17011         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17012         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17013         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17014         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17015         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17016         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17017         (strcasecmp, strncasecmp): Use it.
17018         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17019         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17020         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17021         rpl_setsockopt): Use it.
17022         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17023         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17024         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17025         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17026         (gettimeofday): Use it.
17027         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17028         (times): Use it.
17029         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17030         (uname): Use it.
17031         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17032         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17033         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17034         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17035         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17036         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17037         unlinkat, write): Use it.
17038         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17039         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17040         * lib/argv-iter.h: Include arg-nonnull.h.
17041         (_ATTRIBUTE_NONNULL_): Remove macro.
17042         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17043         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17044         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17045         optimization.
17046         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17047         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17048         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17049         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17050         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17051         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17052         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17053         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17054         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17055         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17056         * modules/dirent (Depends-on): Add arg-nonnull.
17057         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17058         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17059         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17060         * modules/fnmatch (Depends-on): Add arg-nonnull.
17061         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17062         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17063         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17064         * modules/glob (Depends-on): Add arg-nonnull.
17065         (Makefile.am): Insert arg-nonnull.h into glob.h.
17066         * modules/iconv_open (Depends-on): Add arg-nonnull.
17067         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17068         * modules/inttypes (Depends-on): Add arg-nonnull.
17069         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17070         * modules/locale (Depends-on): Add arg-nonnull.
17071         (Makefile.am): Insert arg-nonnull.h into locale.h.
17072         * modules/math (Depends-on): Add arg-nonnull.
17073         (Makefile.am): Insert arg-nonnull.h into math.h.
17074         * modules/netdb (Depends-on): Add arg-nonnull.
17075         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17076         * modules/search (Depends-on): Add arg-nonnull.
17077         (Makefile.am): Insert arg-nonnull.h into search.h.
17078         * modules/signal (Depends-on): Add arg-nonnull.
17079         (Makefile.am): Insert arg-nonnull.h into signal.h.
17080         * modules/spawn (Depends-on): Add arg-nonnull.
17081         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17082         * modules/stdio (Depends-on): Add arg-nonnull.
17083         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17084         * modules/stdlib (Depends-on): Add arg-nonnull.
17085         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17086         * modules/string (Depends-on): Add arg-nonnull.
17087         (Makefile.am): Insert arg-nonnull.h into string.h.
17088         * modules/strings (Depends-on): Add arg-nonnull.
17089         (Makefile.am): Insert arg-nonnull.h into strings.h.
17090         * modules/sys_socket (Depends-on): Add arg-nonnull.
17091         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17092         * modules/sys_stat (Depends-on): Add arg-nonnull.
17093         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17094         * modules/sys_time (Depends-on): Add arg-nonnull.
17095         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17096         * modules/sys_times (Depends-on): Add arg-nonnull.
17097         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17098         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17099         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17100         * modules/time (Depends-on): Add arg-nonnull.
17101         (Makefile.am): Insert arg-nonnull.h into time.h.
17102         * modules/unistd (Depends-on): Add arg-nonnull.
17103         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17104         * modules/wchar (Depends-on): Add arg-nonnull.
17105         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17106         * modules/argv-iter (Depends-on): Add arg-nonnull.
17107         * tests/test-canonicalize.c (null_ptr): New function.
17108         (main): Use it.
17109         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17110         (main): Use it.
17111         * tests/test-memmem.c (null_ptr): New function.
17112         (main): Use it.
17113         Reported by Jim Meyering.
17114
17115 2009-12-10  Bruno Haible  <bruno@clisp.org>
17116
17117         Use spaces for indentation, not tabs.
17118         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17119         * m4/*.m4: Untabify.
17120         * build-aux/*.h: Untabify.
17121         * tests/**/*.[hc]: Untabify.
17122         * README: New section "Indent with spaces, not TABs", based on
17123         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17124         * NEWS: Mention the change.
17125
17126 2009-12-10  Bruno Haible  <bruno@clisp.org>
17127
17128         pty test: Fix link error.
17129         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17130         test_pty_LDADD.
17131
17132 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17133
17134         * modules/pty: New file.
17135         * modules/pty-tests: New file.
17136         * m4/pty.m4: New file.
17137         * tests/test-pty.c: New file.
17138         * doc/glibc-headers/pty.texi: Modified.
17139         * doc/glibc-functions/forkpty.texi: Modified.
17140         * doc/glibc-functions/openpty.texi: Modified.
17141
17142 2009-12-10  Bruno Haible  <bruno@clisp.org>
17143
17144         Avoid syntax error in C++ mode.
17145         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17146
17147 2009-12-10  Bruno Haible  <bruno@clisp.org>
17148
17149         Use sed with option -e.
17150         * gnulib-tool (func_version, func_emit_copyright_notice,
17151         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17152         option -e to sed.
17153         * modules/link-warning (Makefile.am): Likewise.
17154
17155 2009-12-10  Jim Meyering  <meyering@redhat.com>
17156
17157         mgetgroups: do not write bytes beyond end of malloc'd buffer
17158         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17159         username, we call getgroups with a one-element-shorter buffer,
17160         but still told it the length was original, max_n_groups.
17161
17162 2009-12-09  Eric Blake  <ebb9@byu.net>
17163
17164         cloexec: relax license
17165         * modules/cloexec (Maintainer): Add myself.
17166         (License): Use LGPL, not GPL.
17167
17168         link-warning: optimize generation
17169         * modules/link-warning (Makefile.am): Reduce process usage.
17170
17171 2009-12-09  Bruno Haible  <bruno@clisp.org>
17172
17173         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17174         workaround was added on 2009-11-17.
17175
17176 2009-12-09  Jim Meyering  <meyering@redhat.com>
17177             Bruno Haible  <bruno@clisp.org>
17178
17179         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17180         * modules/link-warning (Makefile.am): Make the comment-removing sed
17181         command more robust in the face of bootstrap-prepended comment lines.
17182
17183 2009-12-09  Bruno Haible  <bruno@clisp.org>
17184
17185         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17186         most one group.
17187
17188 2009-12-09  Simon Josefsson <simon@josefsson.org>
17189             Bruno Haible  <bruno@clisp.org>
17190
17191         * build-aux/link-warning.h: Add copyright notice.
17192         * modules/link-warning (Makefile.am): Generate link-warning.h from
17193         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17194         * NEWS: Mention change in link-warning module.
17195         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17196         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17197         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17198         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17199         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17200         * modules/math (Makefile.am): Add dependency to math.h.
17201         * modules/search (Makefile.am): Add dependency to search.h.
17202         * modules/signal (Makefile.am): Add dependency to signal.h.
17203         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17204         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17205         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17206         * modules/string (Makefile.am): Add dependency to string.h.
17207         * modules/strings (Makefile.am): Add dependency to strings.h.
17208         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17209         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17210         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17211         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17212         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17213         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17214         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17215         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17216         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17217
17218 2009-12-09  Bruno Haible  <bruno@clisp.org>
17219
17220         fchdir: Optimize away rpl_fstat when possible.
17221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17222         REPLACE_OPEN_DIRECTORY.
17223         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17224
17225 2009-12-09  Bruno Haible  <bruno@clisp.org>
17226
17227         * lib/fchdir.c: Update comment.
17228
17229 2009-12-09  Bruno Haible  <bruno@clisp.org>
17230
17231         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17232
17233 2009-12-08  Eric Blake  <ebb9@byu.net>
17234
17235         fchdir: avoid memory leak on re-registration.
17236         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17237
17238 2009-12-08  Jim Meyering  <meyering@redhat.com>
17239
17240         init.sh: avoid Solaris 10 /bin/sh portability problem
17241         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17242         sourced script:
17243           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17244           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17245           bar
17246         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17247         and two tests used that idiom.
17248         * tests/init.sh: Update suggested usage comments.
17249         (path_prepend_): New function, to be used in place
17250         of the --src-path=DIR option.
17251         (setup_): Move PATH-prepending code into path_prepend_.
17252         * tests/test-pread.sh: Adapt to new usage.
17253         * tests/test-xalloc-die.sh: Likewise.
17254
17255 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17256
17257         * doc/gnulib.texi (Glibc pty.h): Add.
17258         * doc/glibc-functions/forkpty.texi: Add.
17259         * doc/glibc-functions/openpty.texi: Add.
17260         Suggested by Bruno Haible.
17261
17262 2009-12-08  Eric Blake  <ebb9@byu.net>
17263
17264         fchdir: fix logic bugs
17265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17266         * tests/test-fchdir.c (main): Enhance test.
17267         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17268         is in use.
17269
17270         dup2: fix logic bugs
17271         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17272         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17273         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17274         exists.
17275         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17276
17277 2009-12-07  Eric Blake  <ebb9@byu.net>
17278
17279         unlink: fix m4 detection
17280         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17281
17282         unistd-safer: add unit test
17283         * modules/unistd-safer-tests: New file.
17284         * tests/test-dup-safer.c: Likewise.
17285         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17286         * tests/test-dup2.c (setmode): Likewise.
17287         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17288
17289         cloexec: preserve text vs. binary across dup_cloexec
17290         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17291         mode.
17292         * modules/dup2-tests (Depends-on): Add binary-io.
17293         * modules/cloexec-tests (Depends-on): Likewise.
17294         * tests/test-dup2.c (setmode, is_mode): New helpers.
17295         (main): Add tests that translation mode is preserved.
17296         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17297         Reported by Bruno Haible.
17298
17299         mgetgroups: reduce duplicate listings
17300         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17301         resulting array.
17302         * tests/test-chown.h (test_chown): Simplify client.
17303         * tests/test-lchown.h (test_lchown): Likewise.
17304
17305 2009-12-06  Bruno Haible  <bruno@clisp.org>
17306
17307         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17308         value.
17309
17310 2009-12-06  Bruno Haible  <bruno@clisp.org>
17311
17312         * lib/progname.c: Include stdio.h, stdlib.h.
17313         (set_program_name): Reject a NULL argument.
17314
17315 2009-12-05  Eric Blake  <ebb9@byu.net>
17316
17317         pipe2-safer: new module
17318         * modules/pipe2-safer: New file.
17319         * lib/unistd-safer.h (pipe2_safer): New prototype.
17320         * lib/unistd--.h (pipe2): New wrapper.
17321         * lib/pipe-safer.c (pipe2_safer): New function.
17322         * modules/pipe (Depends-on): Add pipe2-safer.
17323         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17324
17325         stdlib-safer: preserve cloexec flag for mkostemp[s]
17326         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17327         fd_safer_flag.
17328
17329         unistd-safer: allow preservation of cloexec status via flag
17330         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17331         prototypes.
17332         * lib/dup-safer.c (dup_safer_flag): New function.
17333         * lib/fd-safer.c (fd_safer_flag): Likewise.
17334         * modules/cloexec (configure.ac): Set witness.
17335
17336         test-dup2: enhance test
17337         * modules/dup2-tests (Depends-on): Add cloexec.
17338         * tests/test-dup2.c (main): Enhance test.
17339
17340         cloexec: add dup_cloexec
17341         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17342         header and comments.
17343         * lib/cloexec.c (set_cloexec_flag): Add comments.
17344         (dup_cloexec): New function, with mingw implementation borrowed
17345         from...
17346         * lib/w32spawn.h (dup_noinherit): ...here.
17347         * modules/execute (Depends-on): Add cloexec.
17348         * modules/pipe (Depends-on): Likewise.
17349         * modules/cloexec (Depends-on): Add dup2.
17350         * modules/cloexec-tests (Files): New file.
17351         * tests/test-cloexec.c: Likewise.
17352
17353         test-xalloc-die: fix test for mingw
17354         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17355         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17356         directory and .exe suffix off argv[0] output.
17357
17358         test-fseeko: fix test for mingw
17359         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17360         than undefining fseek, so test will pass on mingw.
17361
17362 2009-12-05  Bruno Haible  <bruno@clisp.org>
17363
17364         * lib/progname.h (set_program_name): Clarify specification.
17365         * lib/progname.c (set_program_name): Likewise.
17366         Reported by Jim Meyering.
17367
17368 2009-12-05  Jim Meyering  <meyering@redhat.com>
17369
17370         maint.mk: backslash-escape parens in default regexp
17371         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17372         backslash-escape the literal parentheses.
17373
17374         maint.mk: news-date-check: use grep -E
17375         * top/maint.mk (today): Define a Make variable, not a...
17376         (news-date-check): ...shell variable.
17377         (news-date-regexp): Use the Make variable.
17378         Use grep's -E option.  Change the failing diagnostic to mention
17379         the variable, $(news-date-regexp).
17380
17381 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17382
17383         maintainer-makefile: allow customization of NEWS entry format
17384         * top/maint.mk (news-date-regexp): New overridable variable.
17385         (news-date-check): Use it.
17386
17387 2009-12-04  Eric Blake  <ebb9@byu.net>
17388
17389         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17390         * lib/mgetgroups.h (xgetgroups): New prototype.
17391         * lib/mgetgroups.c (xgetgroups): New wrapper.
17392         (mgetgroups): Handle ENOSYS.
17393         * modules/mgetgroups (Depends-on): Add realloc.
17394         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17395
17396         mgetgroups: avoid argument promotion issues with -1
17397         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17398         for invalid gid_t.
17399         * tests/test-chown.h (getegid, test_chown): Likewise.
17400         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17401
17402 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17403
17404         exclude: Fix header file problems.
17405         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17406
17407 2009-12-01  Jim Meyering  <meyering@redhat.com>
17408
17409         fts: fts_open: do not let an empty string cause immediate failure
17410         This is required in support of GNU rm, for which the command
17411         "rm A '' B" must process and remove both A and B, in spite of
17412         the empty string argument.
17413         * lib/fts.c (fts_open): Do not let the presence of an empty string
17414         cause fts_open to fail immediately.  Most fts-using tools must be
17415         able to process all arguments, in order, and can be expected to
17416         diagnose such arguments themselves.
17417
17418 2009-11-30  Eric Blake  <ebb9@byu.net>
17419
17420         utimens: fix compilation error
17421         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17422         Declare variable at right scope.
17423
17424 2009-11-29  Jim Meyering  <meyering@redhat.com>
17425
17426         bootstrap: handle perl-5.11's changed --version output
17427         * build-aux/bootstrap (get_version): Handle perl separately,
17428         since perl-5.11's --version output is different.
17429
17430 2009-11-28  Jim Meyering  <meyering@redhat.com>
17431
17432         userspec: depend on the inttostr module, too
17433         * modules/userspec (Depends-on): Add inttostr.
17434
17435         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17436         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17437         number of MAXUID when it evaluates to (uid_t) -1.
17438         Likewise for group ID.  Reported by Matt McCutchen in
17439         <http://savannah.gnu.org/bugs/?28113>
17440
17441         userspec: reformat to use spaces, not TABs
17442         * lib/userspec.c: Expand TABs to spaces.
17443         Add Emacs' "indent-tabs-mode: nil" hint.
17444
17445 2009-11-27  Eric Blake  <ebb9@byu.net>
17446
17447         getopt-gnu: flush out another BSD bug
17448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17449         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17450         flush out BSD bug.
17451         * tests/test-getopt.h (test_getopt): End lists with NULL.
17452         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17453         (test_getopt_long_posix): Enhance test.
17454         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17455         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17456         getopt-gnu.
17457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17458         Likewise.
17459
17460 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17461
17462         * modules/idpriv-droptemp-tests (Notice): Fix text.
17463
17464 2009-11-27  Jim Meyering  <meyering@redhat.com>
17465
17466         test-xalloc-die: avoid spurious failure due to libtool argv difference
17467         In a libtool-enabled project, this test would fail due to a difference
17468         in the emitted program name, e.g.,
17469         -test-xalloc-die: memory exhausted
17470         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17471         Use program to avoid that.
17472         * modules/xalloc-die-tests (Depends-on): Add progname.
17473         * tests/test-xalloc-die.c: Include progname.h".
17474         (program_name): Remove decl.
17475         (main): Call set_program_name.
17476         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17477
17478 2009-11-26  Richard Jones  <rjones@redhat.com>
17479
17480         w32sock: leave win32 error in place.
17481         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17482
17483 2009-11-26  Eric Blake  <ebb9@byu.net>
17484
17485         init.sh: suggest to use skip_ and fail_ functions in comments
17486         * tests/init.sh: Add a sentence.
17487
17488 2009-11-25  Bruno Haible  <bruno@clisp.org>
17489
17490         init.sh: add documentation in comments
17491         * tests/init.sh: Add some developer and user documentation.
17492
17493 2009-11-26  Jim Meyering  <meyering@redhat.com>
17494
17495         init.sh: accommodate even those who specify bogus srcdir manually
17496         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17497         configure-time tests to be sanitized, so that there is no need to
17498         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17499         (with no double quotes) suffices.  However, since tests may be
17500         invoked manually, and since you may explicitly set srcdir to the
17501         name of a directory containing spaces, do quote its uses here.
17502         * tests/test-pread.sh: Likewise.
17503         Suggested by Bruno Haible.
17504
17505         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17506         * tests/test-pread.sh: Write no data into the pipe, because
17507         test-pread actually reads none.  This avoids a diagnostic,
17508         "bash: echo: write error: Broken pipe", that arises in the unusual
17509         event something is ignoring SIGPIPE, and might be interpreted
17510         as some sort of failure.  Reported by Bruno Haible.
17511
17512 2009-11-25  Jim Meyering  <meyering@redhat.com>
17513
17514         test-pread: cover failure with ESPIPE and EINVAL
17515         * tests/test-pread.c (main): Test for failure, too.
17516         * tests/test-pread.sh: Invoke with stdin on a pipe.
17517         Suggested by Eric Blake.
17518
17519         pread: improvement and fix
17520         * modules/pread (Depends-on): Depend on lseek, for portability to
17521         e.g., mingw.  Suggested by Eric Blake.
17522         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17523
17524         unistd.in.h: correct declaration of pread
17525         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17526         Reported by Richard W.M. Jones.
17527
17528         test-pread.sh: distribute the test script
17529         * modules/pread-tests (Files): Include test-pread.sh.
17530
17531         test-pread.sh: clean up
17532         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17533         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17534         That is unnecessary, since it's always ".".
17535         Suggestion from Eric Blake.
17536
17537         test-pread.sh: make executable
17538         * tests/test-pread.sh: Set executable bit.
17539         Reported by Eric Blake.
17540
17541         correct typo in test-pread.sh
17542         * tests/test-pread.sh: Add #! line.
17543
17544         test pread
17545         * tests/test-pread.c: New file.
17546         * tests/test-pread.sh: Likewise.
17547         * modules/pread-tests: Likewise.
17548
17549         pread: new module
17550         * modules/pread: New file.
17551         * lib/unistd.in.h (pread): Define/declare.
17552         * lib/pread.c (pread): New file.
17553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17554         * modules/unistd (Makefile.am): Substitute witnesses.
17555         * doc/posix-functions/pread.texi (pread): Update.
17556         * MODULES.html.sh: Add pread.
17557
17558 2009-11-25  Jim Meyering  <meyering@redhat.com>
17559
17560         tests/init.sh: new file to be used via most *.sh tests
17561         * tests/init.sh: New file.
17562
17563 2009-11-25  Eric Blake  <ebb9@byu.net>
17564
17565         utimens: work around older Linux failure with symlinks
17566         * lib/utimens.c (lutimensat_works_really): New variable.
17567         (fdutimens, lutimens): Use it to manage kernels that support
17568         nanosecond times on files, but not on symlinks.
17569         Reported by Ondřej Vašík.
17570
17571         utimes: fix configure grammar
17572         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17573
17574 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17575
17576         regex: Fix fastmap for multibyte character ranges.
17577         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17578         characters when a multibyte character range is included.
17579
17580 2009-11-22  Andy Wingo  <wingo@pobox.com>
17581
17582         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17583         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17584
17585 2009-11-24  Bruno Haible  <bruno@clisp.org>
17586
17587         doc: Most *_l functions exist in MacOS X 10.5.
17588         * doc/posix-functions/duplocale.texi: Update platforms list.
17589         * doc/posix-functions/freelocale.texi: Likewise.
17590         * doc/posix-functions/newlocale.texi: Likewise.
17591         * doc/posix-functions/uselocale.texi: Likewise.
17592         * doc/posix-functions/isalnum_l.texi: Likewise.
17593         * doc/posix-functions/isalpha_l.texi: Likewise.
17594         * doc/posix-functions/isblank_l.texi: Likewise.
17595         * doc/posix-functions/iscntrl_l.texi: Likewise.
17596         * doc/posix-functions/isdigit_l.texi: Likewise.
17597         * doc/posix-functions/isgraph_l.texi: Likewise.
17598         * doc/posix-functions/islower_l.texi: Likewise.
17599         * doc/posix-functions/isprint_l.texi: Likewise.
17600         * doc/posix-functions/ispunct_l.texi: Likewise.
17601         * doc/posix-functions/isspace_l.texi: Likewise.
17602         * doc/posix-functions/isupper_l.texi: Likewise.
17603         * doc/posix-functions/iswalnum_l.texi: Likewise.
17604         * doc/posix-functions/iswalpha_l.texi: Likewise.
17605         * doc/posix-functions/iswblank_l.texi: Likewise.
17606         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17607         * doc/posix-functions/iswctype_l.texi: Likewise.
17608         * doc/posix-functions/iswdigit_l.texi: Likewise.
17609         * doc/posix-functions/iswgraph_l.texi: Likewise.
17610         * doc/posix-functions/iswlower_l.texi: Likewise.
17611         * doc/posix-functions/iswprint_l.texi: Likewise.
17612         * doc/posix-functions/iswpunct_l.texi: Likewise.
17613         * doc/posix-functions/iswspace_l.texi: Likewise.
17614         * doc/posix-functions/iswupper_l.texi: Likewise.
17615         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17616         * doc/posix-functions/isxdigit_l.texi: Likewise.
17617         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17618         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17619         * doc/posix-functions/strcoll_l.texi: Likewise.
17620         * doc/posix-functions/strfmon_l.texi: Likewise.
17621         * doc/posix-functions/strftime_l.texi: Likewise.
17622         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17623         * doc/posix-functions/strxfrm_l.texi: Likewise.
17624         * doc/posix-functions/tolower_l.texi: Likewise.
17625         * doc/posix-functions/toupper_l.texi: Likewise.
17626         * doc/posix-functions/towctrans_l.texi: Likewise.
17627         * doc/posix-functions/towlower_l.texi: Likewise.
17628         * doc/posix-functions/towupper_l.texi: Likewise.
17629         * doc/posix-functions/wcscoll_l.texi: Likewise.
17630         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17631         * doc/posix-functions/wctrans_l.texi: Likewise.
17632         * doc/posix-functions/wctype_l.texi: Likewise.
17633         * doc/glibc-functions/strptime_l.texi: Likewise.
17634         * doc/glibc-functions/strtod_l.texi: Likewise.
17635         * doc/glibc-functions/strtof_l.texi: Likewise.
17636         * doc/glibc-functions/strtol_l.texi: Likewise.
17637         * doc/glibc-functions/strtold_l.texi: Likewise.
17638         * doc/glibc-functions/strtoll_l.texi: Likewise.
17639         * doc/glibc-functions/strtoul_l.texi: Likewise.
17640         * doc/glibc-functions/strtoull_l.texi: Likewise.
17641         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17642         * doc/glibc-functions/wcstod_l.texi: Likewise.
17643         * doc/glibc-functions/wcstof_l.texi: Likewise.
17644         * doc/glibc-functions/wcstol_l.texi: Likewise.
17645         * doc/glibc-functions/wcstold_l.texi: Likewise.
17646         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17647         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17648         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17649
17650 2009-11-24  Bruno Haible  <bruno@clisp.org>
17651
17652         duplocale: Fix logic bug.
17653         * lib/duplocale.c: Don't include <langinfo.h>.
17654         (_NL_LOCALE_NAME): Remove macro.
17655         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17656         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17657
17658 2009-11-23  Jim Meyering  <meyering@redhat.com>
17659
17660         test-update-copyright: don't hard-code /usr/bin/perl
17661         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17662         perl to print the current year.  Gilles Espinasse reported that
17663         the replaced use of perl was hard-coded as /usr/bin/perl.
17664
17665 2009-11-23  Bruno Haible  <bruno@clisp.org>
17666
17667         duplocale: Add support for glibc 2.3.x.
17668         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17669
17670 2009-11-22  Bruno Haible  <bruno@clisp.org>
17671
17672         vasnprintf: Tiny optimization.
17673         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17674         MacOS X.
17675
17676 2009-11-22  Bruno Haible  <bruno@clisp.org>
17677
17678         Tests for module 'duplocale'.
17679         * modules/duplocale-tests: New file.
17680         * tests/test-duplocale.c: New file.
17681
17682         New module 'duplocale'.
17683         * m4/duplocale.m4: New file.
17684         * lib/locale.in.h (duplocale): New declaration.
17685         * lib/duplocale.c: New file.
17686         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17687         gl_LOCALE_H_DEFAULTS): New macros.
17688         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17689         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17690         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17691         REPLACE_DUPLOCALE.
17692         * modules/duplocale: New file.
17693         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17694
17695 2009-11-22  Bruno Haible  <bruno@clisp.org>
17696
17697         * modules/locale-tests (configure.ac): Test for newlocale function.
17698         * tests/test-locale.c: When the system has extended locale functions,
17699         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17700
17701         locale: Make locale_t available when possible.
17702         * lib/locale.in.h: Include <xlocale.h> when it exists.
17703         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17704         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17705         * modules/locale (Depends-on): Add extensions.
17706         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17707         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17708
17709 2009-11-22  Bruno Haible  <bruno@clisp.org>
17710
17711         Add comments.
17712         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17713         invocation.
17714         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17715         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17717
17718 2009-11-22  Bruno Haible  <bruno@clisp.org>
17719
17720         error: account for the possibility of freopen (stdout).
17721         * lib/error.c: Include <unistd.h>.
17722         (flush_stdout): New function, extracted from error and error_at_line.
17723         Determine stdout's fd dynamically.
17724         (error, error_at_line): Invoke flush_stdout.
17725         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17726         * modules/error (Depends-on): Add unistd.
17727
17728 2009-11-22  Bruno Haible  <bruno@clisp.org>
17729
17730         diffseq: Add comment.
17731         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17732
17733 2009-11-22  Jim Meyering  <meyering@redhat.com>
17734
17735         c-stack: avoid defining an unused static function
17736         * lib/c-stack.c (find_stack_direction): Do not define this function
17737         when it will not be used.
17738
17739         diffseq: avoid spurious gcc warnings
17740         * lib/diffseq.h (IF_LINT2): Define.
17741         (compareseq): Use it to initialize two members of "part".
17742         This avoids two used-uninitialized warnings.
17743
17744 2009-11-21  Jim Meyering  <meyering@redhat.com>
17745
17746         c-stack: avoid "ignoring return value of `write'" warning
17747         * lib/c-stack.c: Include "ignore-value.h".
17748         (die): Explicitly ignore each write return value.
17749         * modules/c-stack (Depends-on): Add ignore-value.
17750
17751 2009-11-21  Bruno Haible  <bruno@clisp.org>
17752
17753         diffseq: reduce scope of variable 'best'.
17754         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17755         variable, earlier used for two different purposes.
17756
17757 2009-11-21  Jim Meyering  <meyering@redhat.com>
17758
17759         diffseq: remove useless assignment to "best"
17760         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17761         assignment.  At that point "best" is already guaranteed to be zero.
17762
17763 2009-11-20  Eric Blake  <ebb9@byu.net>
17764
17765         build: mention ftp redirector in release announcements
17766         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17767         values that used to come from cfg.mk; mention FTP redirect URL.
17768         * build-aux/announce-gen: Mention the mirror list.
17769         Suggested by Karl Berry.
17770
17771         nanosleep: improve port to mingw
17772         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17774         LIB_NANOSLEEP, but only when needed.
17775         * modules/select (Link): Document LIBSOCKET.
17776         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17777         enough.
17778
17779         nanosleep: work around cygwin bug
17780         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17781         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17782         bug.
17783         (getnow): Delete, not needed.
17784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17785         LIB_CLOCK_GETTIME.
17786         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17787         clock-time, gettime.
17788         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17789         bug.
17790         * modules/nanosleep-tests: New test.
17791         * tests/test-nanosleep.c: New file.
17792
17793         sleep: work around cygwin bug
17794         * lib/sleep.c (rpl_sleep): Work around the bug.
17795         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17796         (gl_PREREQ_SLEEP): Delete unused macro.
17797         * modules/sleep (Depends-on): Add verify.
17798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17799         * modules/unistd (Makefile.am): Substitute witness.
17800         * lib/unistd.in.h (sleep): Update prototype.
17801         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17802         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17803         * modules/sleep-tests (Depends-on): Check for alarm.
17804
17805 2009-11-20  Jim Meyering  <meyering@redhat.com>
17806
17807         maint.mk: improve sc_prohibit_magic_number_exit
17808         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17809         so it does not match uses like System.exit(1).
17810         Add comments showing how to correct all offenders.
17811
17812 2009-11-19  Eric Blake  <ebb9@byu.net>
17813
17814         xalloc-die-tests: add missing library
17815         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17816
17817         test-xvasprintf: silence compiler warnings
17818         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17819         empty string from gcc.
17820
17821 2009-11-19  Jim Meyering  <meyering@redhat.com>
17822
17823         xfreopen: new module, from coreutils
17824         * modules/xfreopen: New module.
17825         * lib/xfreopen.c: New file.
17826         * lib/xfreopen.h: New file.
17827         * MODULES.html.sh (File stream based Input/Output"): Add it.
17828
17829 2009-11-19  Eric Blake  <ebb9@byu.net>
17830
17831         manywarnings: depend on warnings
17832         * modules/manywarnings (Depends-on): Add warnings.
17833
17834         build: avoid compiler warnings
17835         * lib/select.c (rpl_select): Delete unused variable.
17836         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17837
17838 2009-11-18  Eric Blake  <ebb9@byu.net>
17839
17840         tests: avoid false negative with --with-packager
17841         * tests/test-version-etc.sh: Discard packager information.
17842         * tests/test-argp-version-etc-1.sh: Likewise.
17843         Reported by Mike Frysinger.
17844
17845         utimens: fix regression on Solaris
17846         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17847         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17848         can only change fd timestamps via futimesat.  Instead, use an
17849         additional witness macro to avoid BSD bug.
17850         Reported by Jim Meyering.
17851
17852 2009-11-17  Eric Blake  <ebb9@byu.net>
17853
17854         usleep: use it to simplify tests
17855         * modules/stat-time-tests (Depends-on): Add usleep.
17856         (configure.ac): Drop usleep check.
17857         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17858         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17859         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17860         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17861         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17862         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17863         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17864         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17865         Likewise.
17866         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17867         * tests/test-lchown.h (nap): Likewise.
17868         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17869         * tests/test-stat-time.c (nap): Likewise.
17870         * tests/test-utimens-common.h (nap): Update comments.
17871
17872         usleep: new module
17873         * modules/usleep: New file.
17874         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17875         * lib/usleep.c (usleep): Likewise.
17876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17877         * modules/unistd (Makefile.am): Substitute witnesses.
17878         * lib/unistd.in.h (usleep): Add declaration.
17879         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17880         * MODULES.html.sh (Date and time): Likewise.
17881         * modules/usleep-tests (Depends-on): New test.
17882         * tests/test-usleep.c: New file.
17883
17884         chown: work around OpenBSD bug
17885         * lib/chown.c (rpl_chown): Work around the bug.
17886         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17887         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17889         * modules/chown (Depends-on): Add stdbool.
17890         * modules/lchown (Depends-on): Likewise.
17891         * doc/posix-functions/chown.texi (chown): Document the bug.
17892         * doc/posix-functions/lchown.texi (lchown): Likewise.
17893         * tests/test-lchown.h (test_chown): Relax test.
17894
17895         mkstemp: avoid conflict with C++ keyword template
17896         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17897         * lib/mkostemp.c (mkostemp): Likewise.
17898         * lib/mkostemps.c (mkostemps): Likewise.
17899         * lib/mkstemp.c (mkstemp): Likewise.
17900         * lib/mkstemps.c (mkstemps): Likewise.
17901
17902         xalloc-die-tests: optimize
17903         * tests/test-xalloc-die.sh: Reduce number of processes.
17904
17905 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17906
17907         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17908         patch from ludo@gnu.org (Ludovic Courtès).
17909
17910 2009-11-17  Jim Meyering  <meyering@redhat.com>
17911
17912         version-etc: use proper license string
17913         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17914         * modules/version-etc-fsf: Likewise.
17915
17916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17917
17918         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17919         printed to stdout.  Deal with EOL differences.
17920
17921 2009-11-17  Eric Blake  <ebb9@byu.net>
17922
17923         unsetenv: work around Solaris bug
17924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17925         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17926         Reported by Jim Meyering.
17927
17928         vasnprintf: avoid compiler warnings
17929         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17930         variables.
17931         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17932
17933 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17934
17935         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17936         settings since xalloc-die is no longer the self test,
17937         xalloc-die.sh is.
17938
17939 2009-11-17  Jim Meyering  <meyering@redhat.com>
17940
17941         test-xalloc-die.sh: make the code agree with the commit log
17942         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17943         at the end, just in case you happen to have a test-xalloc-die
17944         program in some other PATH directory.
17945
17946         test-xalloc-die.sh: fix a portability bug
17947         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17948         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17949         Otherwise, argv[0] (as often seen in diagnostics) would be too
17950         system-dependent, sometimes with, and sometimes without the leading "./".
17951
17952         version-etc-fsf: relax license to LGPLv3+
17953         * modules/version-etc-fsf (License): Relax license.
17954
17955 2009-11-16  Eric Blake  <ebb9@byu.net>
17956
17957         xalloc-die-tests: avoid printing null pointer
17958         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17959         shell script.
17960         * tests/test-xalloc-die.c (program_name): Declare.
17961         * tests/test-xalloc-die.sh (tmpfiles): New file.
17962
17963         setenv, unsetenv: work around various bugs
17964         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17965         (setenv) [HAVE_SETENV]: Work around bugs.
17966         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17968         for bugs.
17969         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17970         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17972         * modules/stdlib (Makefile.am): Update substitutions.
17973         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17974         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17975         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17976         * modules/setenv-tests: New test.
17977         * modules/unsetenv-tests: Likewise.
17978         * tests/test-setenv.c: New file.
17979         * tests/test-unsetenv.c: Likewise.
17980
17981 2009-11-16  Jim Meyering  <meyering@redhat.com>
17982
17983         version-etc: relax license to LGPLv3+
17984         * modules/version-etc (License): Relax license.
17985
17986         better AC_REQUIRE expanded-before-required-warning avoidance
17987         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17988         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17989         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17990         which is no longer needed.
17991
17992 2009-11-16  Eric Blake  <ebb9@byu.net>
17993
17994         test-freading: clean up temporary file
17995         * tests/test-freading.c (main): Remove file on success, and use
17996         ASSERT more liberally.
17997         Reported by Jim Meyering.
17998
17999 2009-11-16  Jim Meyering  <meyering@redhat.com>
18000
18001         avoid new AC_REQUIRE expanded-before-required warnings
18002         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18003         merely using it.
18004         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18005         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18006
18007 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18008
18009         * tests/test-xalloc-die.c: New file.
18010         * modules/xalloc-die-tests: New file.
18011         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18012         XFAIL_TESTS so it can be appended by modules.
18013
18014 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18015
18016         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18017         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18018
18019 2009-11-14  Eric Blake  <ebb9@byu.net>
18020
18021         fnmatch: avoid compiler warning
18022         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18023         to silence compiler warning about mismatch signedness in ?:.
18024         Reported by Robert Millan.
18025
18026         intprops: add double-inclusion guard
18027         * lib/intprops.h: Allow idempotent includes.
18028         Suggested by Bruce Korb.
18029
18030         openat: detect Solaris fchownat bug
18031         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18032         penalizing glibc chownat when only lchownat is broken.
18033         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18034         trailing slash bugs.
18035         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18036         * modules/openat-tests (Files): Include more files.
18037         (Depends-on): Add mgetgroups, sleep, stat-time.
18038         (configure.ac): Add additional checks.
18039         (Makefile.am): Build new test.
18040         * tests/test-fchownat.c: New file.
18041
18042         lchown: detect Solaris and FreeBSD bug
18043         * lib/lchown.c (rpl_lchown): Work around bug.
18044         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18046         * modules/unistd (Makefile.am): Populate it.
18047         * lib/unistd.in.h (lchown): Update declaration.
18048         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18049         * modules/lchown-tests: New file.
18050         * tests/test-lchown.h (test_lchown): Likewise.
18051         * tests/test-lchown.c (main): Likewise.
18052
18053         chown: detect Solaris and FreeBSD bug
18054         * lib/chown.c (rpl_chown): Work around bug.
18055         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18056         (gl_PREREQ_CHOWN): Delete.
18057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18058         * modules/unistd (Makefile.am): Populate it.
18059         * lib/unistd.in.h (chown): Update declaration.
18060         * lib/lchown.c (chown): Update client.
18061         * modules/lchown (Depends-on): Add lstat.
18062         * doc/posix-functions/chown.texi (chown): Document the bug.
18063         * doc/posix-functions/getgroups.texi (getgroups): Document
18064         getgroups pitfall.
18065         * modules/chown-tests: New file.
18066         * tests/test-chown.h (test_chown): Likewise.
18067         * tests/test-chown.c (main): Likewise.
18068
18069 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18070
18071         gnulib-tool: correctly detect absence of m4 directories
18072         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18073
18074 2009-11-14  Jim Meyering  <meyering@redhat.com>
18075
18076         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18077         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18078
18079 2009-11-14  John W. Eaton  <jwe@gnu.org>
18080
18081         strftime.h: wrap funtion declaration in extern "C" block
18082         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18083
18084 2009-11-13  Eric Blake  <ebb9@byu.net>
18085
18086         getgroups: avoid compiler warning
18087         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18088
18089         getgroups: work around FreeBSD bug
18090         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18091         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18092         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18093         * tests/test-getgroups.c (main): Fix buffer overrun.
18094
18095         getgroups: avoid compilation failure
18096         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18097         * modules/getgroups (Depends-on): Add stdint.
18098
18099 2009-11-13  Jim Meyering  <meyering@redhat.com>
18100
18101         test-getgroups: avoid compilation failure
18102         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18103
18104 2009-11-13  Eric Blake  <ebb9@byu.net>
18105
18106         mgetgroups: new module, taken from coreutils
18107         * modules/mgetgroups: New file.
18108         * lib/mgetgroups.h: Likewise.
18109         * lib/mgetgroups.c (mgetgroups): Likewise.
18110         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18111         * MODULES.html.sh (Users and groups): Mention it.
18112
18113         getgroups: don't expose GETGROUPS_T to user
18114         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18115         an element at a time if GETGROUPS_T is wrong size.
18116         * lib/getugroups.h (getugroups): Change signature.
18117         * lib/unistd.in.h (getgroups): Likewise.
18118         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18119         signature needs fixing.
18120         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18121         AC_TYPE_GETGROUPS.
18122         * modules/group-member (Depends-on): Add getgroups.
18123         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18124         (group_member): Rely on getgroups replacement.
18125         * lib/getugroups.c (getugroups): Use gid_t.
18126         * tests/test-getgroups.c (main): Likewise.
18127         * NEWS: Mention the signature change.
18128         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18129         problem with signature.
18130         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18131         GETGROUPS_T is still useful for setgroups.
18132
18133         getgroups, getugroups: provide stubs for mingw
18134         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18135         * lib/getugroups.c (getugroups): Likewise.
18136         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18137         function.  Modernize replacement scheme.
18138         (gl_PREREQ_GETGROUPS): Delete.
18139         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18140         * modules/getgroups (configure.ac): Declare witness.
18141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18142         * modules/unistd (Depends-on): Substitute witness.
18143         * lib/unistd.in.h (getgroups): Declare replacement.
18144
18145         getgroups: avoid calling exit
18146         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18147         drop xalloc.
18148         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18149         dependencies.
18150         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18151         exiting, in the rare case of malloc failure.
18152
18153         getgroups: fix logic error
18154         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18155         has more than 20 groups.
18156         * modules/getgroups-tests: New test.
18157         * tests/test-getgroups.c: New file.
18158
18159 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18160
18161         * tests/test-base64.c: Improve.
18162
18163 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18164
18165         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18166         Blake <ebb9@byu.net>.
18167
18168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18169
18170         * tests/test-xvasprintf.c: Add %s%s related checks.
18171
18172 2009-11-12  Eric Blake  <ebb9@byu.net>
18173
18174         version-etc: match standards.texi style
18175         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18176         and use <> only for URLs.
18177
18178 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18179
18180         fts: do not fail on a submount during traversal
18181         * lib/fts.c (fts_build): Read the stat info again after opening
18182         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18183         Original report at http://bugzilla.redhat.com/501848.
18184
18185 2009-11-12  Jim Meyering  <meyering@redhat.com>
18186
18187         bootstrap: sync from coreutils
18188         * build-aux/bootstrap (bootstrap_epilogue): New function.
18189         Use git_modules_config in one more place.  This make bootstrap's
18190         --gnulib-srcdir option more useful for testing.
18191
18192         bootstrap: generalize autoheader check
18193         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18194         AC_CONFIG_HEADERS.
18195
18196 2009-11-11  Eric Blake  <ebb9@byu.net>
18197
18198         mkfifoat: use new modules for Solaris and BSD bugs
18199         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18200         * lib/mkfifoat.c (mknodat): Split...
18201         * lib/mknodat.c (mknodat): ...into new file.
18202         * modules/mkfifoat (Files): Ship new file.
18203         (Depends-on): Add mkfifo, mknod.
18204         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18205         (Depends-on): Add symlink.
18206         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18207         redundant with test_mkfifo.h.
18208         (do_mkfifoat, do_mknodat): New helpers.
18209
18210         mknod: new module
18211         * modules/mknod: New file.
18212         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18213         * lib/mknod.c (mknod): Likewise.
18214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18215         defaults.
18216         * modules/sys_stat (Makefile.am): Substitute them.
18217         * lib/sys_stat.in.h (mknod): Declare replacement.
18218         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18219         Document it.
18220         * doc/posix-functions/mknod.texi (mknod): Likewise.
18221         * modules/mknod-tests: New test.
18222         * tests/test-mknod.c: Likewise.
18223
18224         mkfifo: new module
18225         * modules/mkfifo: New file.
18226         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18227         * lib/mkfifo.c (mkfifo): Likewise.
18228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18229         defaults.
18230         * modules/sys_stat (Makefile.am): Substitute them.
18231         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18232         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18233         Document it.
18234         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18235         * modules/mkfifo-tests: New test.
18236         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18237         from test-mkfifoat.c.
18238         * tests/test-mkfifo.c: New file.
18239
18240         readlink: detect FreeBSD bug
18241         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18242         slash on symlink.
18243         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18244         * tests/test-readlink.h (test_readlink): Enhance test.
18245
18246         symlink: detect FreeBSD bug
18247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18248         slash on symlink.
18249         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18250         * tests/test-symlink.h (test_symlink): Enhance test.
18251
18252 2009-11-10  Eric Blake  <ebb9@byu.net>
18253
18254         link: detect FreeBSD bug
18255         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18256         symlink.
18257         * doc/posix-functions/link.texi (link): Document the bug.
18258         * tests/test-link.h (test_link): Enhance test.
18259         * tests/test-linkat.c (main): Update caller.
18260
18261         unlink, remove: detect FreeBSD bug
18262         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18263         slash on symlink.
18264         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18265         * doc/posix-functions/remove.texi (remove): Likewise.
18266         * tests/test-unlink.h (test_unlink): Enhance test.
18267         * tests/test-remove.c (main): Likewise.
18268
18269 2009-11-09  Eric Blake  <ebb9@byu.net>
18270
18271         rename: detect FreeBSD bug
18272         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18273         slash on symlink.
18274         * modules/renameat-tests (Depends-on): Add filenamecat.
18275         * tests/test-rename.h (test_rename): Allow one more errno.
18276         * tests/test-renameat.c (main): Likewise.
18277         * doc/posix-functions/rename.texi (rename): Document the bug.
18278
18279         open: detect FreeBSD bug
18280         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18281         symlink.
18282         * doc/posix-functions/open.texi (open): Document the bug.
18283         * doc/posix-functions/utimes.texi (utimes): Likewise.
18284         * tests/test-open.h (test_open): Add parameters, and test symlink
18285         handling.
18286         * tests/test-open.c (main): Adjust caller.
18287         * tests/test-fcntl-safer.c (main): Likewise.
18288         * modules/open-tests (Depends-on): Add stdbool, symlink.
18289         * modules/fcntl-safer-tests (Depends-on): Likewise.
18290         * tests/test-openat.c (main): Add test-open tests.
18291
18292         stat: detect FreeBSD bug
18293         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18294         symlink.
18295         * doc/posix-functions/stat.texi (stat): Document the bug.
18296         * tests/test-stat.h (test_stat_func): Add argument.
18297         * tests/test-stat.c (main): Adjust caller.
18298         * tests/test-fstatat.c (main): Likewise.
18299         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18300         Reported by Jim Meyering.
18301
18302 2009-11-09  James Youngman  <jay@gnu.org>
18303
18304         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18305         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18306
18307 2009-11-08  Jim Meyering  <meyering@redhat.com>
18308
18309         utimens: remove invalid futimesat call
18310         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18311         It used the file descriptor of the target file as the DIR_FD
18312         parameter and NULL as the file name.  That caused failure with
18313         errno == EFAULT on FreeBSD-8.0-rc2
18314
18315 2009-11-07  Eric Blake  <ebb9@byu.net>
18316
18317         fflush, freadseek: use fseeko, not fseek
18318         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18319         (clear_ungetc_buffer): Avoid potential problems on large files.
18320         * lib/freadseek.c (freadseek): Likewise.
18321         * modules/freadseek (Depends-on): Add fseeko.
18322         * modules/fseek (configure.ac): Set a witness.
18323         * tests/test-fflush.c (main): Use fseeko.
18324         * tests/test-fpurge.c (fseek): Disable link warning.
18325         * tests/test-freadable.c (fseek): Likewise.
18326         * tests/test-freading.c (fseek): Likewise.
18327         * tests/test-fseeko.c (fseek): Likewise.
18328         * tests/test-ftell.c (fseek): Likewise.
18329         * tests/test-ftello.c (fseek): Likewise.
18330         * tests/test-fwritable.c (fseek): Likewise.
18331         * tests/test-fwriting.c (fseek): Likewise.
18332
18333 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18334
18335         * modules/memchr (Depends-on): Drop getpagesize dependency.
18336
18337 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18338
18339         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18340         Reported by Ludovic Courtès.
18341         * build-aux/pmccabe2html: Improve example usage.
18342         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18343
18344 2009-11-06  Jim Meyering  <meyering@redhat.com>
18345
18346         do-release-commit-and-tag: New module.
18347         Automate the release-commit and tag process.
18348         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18349         * modules/do-release-commit-and-tag: New file.
18350         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18351
18352 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18353
18354         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18355         because test-select.c uses inet_pton.
18356
18357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18358
18359         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18360         GETADDRINFO_LIB.  Bump serial number.
18361         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18362         Suggested by Eric Blake <ebb9@byu.net>.
18363
18364 2009-11-05  Eric Blake  <ebb9@byu.net>
18365
18366         strtod: detect darwin bug
18367         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18368         Reported by Leo Davis.
18369
18370         freopen-safer: new module
18371         * modules/freopen-safer: New module.
18372         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18373         * lib/freopen-safer.c (freopen_safer): New file.
18374         * lib/stdio-safer.h (freopen_safer): New declaration.
18375         * lib/stdio--.h (freopen): New override.
18376         * MODULES.html.sh (File stream based Input/Output): Mention it.
18377         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18378         freopen-safer module.
18379         * doc/posix-functions/stderr.texi (stderr): Likewise.
18380         * doc/posix-functions/stdin.texi (stdin): Likewise.
18381         * doc/posix-functions/stdout.texi (stdout): Likewise.
18382         * modules/freopen-safer-tests: New test.
18383         * tests/test-reopen-safer.c: New file.
18384
18385 2009-11-05  Jim Meyering  <meyering@redhat.com>
18386
18387         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18388         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18389
18390 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18391
18392         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18393
18394 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18395
18396         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18397
18398 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18399
18400         Fix link error.
18401         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18402         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18403
18404 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18405
18406         * tests/test-func.c: Also test value of __func__.
18407
18408 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18409
18410         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18411         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18412
18413 2009-11-05  Bruno Haible  <bruno@clisp.org>
18414
18415         Fix link error.
18416         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18417         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18418         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18419
18420 2009-11-05  Bruno Haible  <bruno@clisp.org>
18421
18422         Tests for module 'inet_pton'.
18423         * modules/inet_pton-tests: New file.
18424         * tests/test-inet_pton.c: New file.
18425
18426 2009-11-05  Bruno Haible  <bruno@clisp.org>
18427
18428         Tests for module 'inet_ntop'.
18429         * modules/inet_ntop-tests: New file.
18430         * tests/test-inet_ntop.c: New file.
18431
18432 2009-11-04  Eric Blake  <ebb9@byu.net>
18433
18434         stdlib-safer: wrap all mkstemp variants
18435         * modules/mkostemp (configure.ac): Set witness.
18436         * modules/mkostemps (configure.ac): Likewise.
18437         * modules/mkstemps (configure.ac): Likewise.
18438         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18439         (mkstemps_safer): Wrap more functions.
18440         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18441         wrapping.
18442         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18443         (mkstemps_safer): Implement the wrappers.
18444
18445         mkstemps, mkostemps: new modules
18446         * modules/mkostemps: New module.
18447         * modules/mkstemps: Likewise.
18448         * lib/mkostemps.c (mkostemps): New file.
18449         * lib/mkstemps.c (mkstemps): Likewise.
18450         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18451         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18453         * modules/stdlib (Makefile.am): Substitute them.
18454         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18455         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18456         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18457         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18458         * MODULES.html.sh (File system functions): Mention them.
18459
18460         tempname: resync from glibc
18461         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18462         same values for __GT_FILE as glibc.  Abort even when assertions
18463         are disabled.
18464         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18465         match its value otherwise.  Allow idempotent inclusion.
18466         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18467         * lib/mkostemp.c (mkostemp): Likewise.
18468         * lib/mkstemp.c (mkstemp): Likewise.
18469         * lib/tmpfile.c (tmpfile): Likewise.
18470         * NEWS: Document this.
18471
18472         utimens: fix use of futimens on older Linux
18473         * lib/utimens.c (fdutimens): Use updated, rather than original,
18474         timespec to avoid bug in older Linux kernel.
18475         Reported by Simon Josefsson.
18476
18477 2009-11-04  Bruno Haible  <bruno@clisp.org>
18478
18479         Make num_processors more flexible and consistent.
18480         * lib/nproc.h (enum nproc_query): New type.
18481         (num_processors): Add a 'query' argument.
18482         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18483         (num_processors): Add a 'query' argument. Test the value of the
18484         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18485         mingw, count the number of CPUs available for the current process.
18486         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18487         Check for sched_getaffinity and sched_getaffinity_np.
18488         * modules/nproc (Depends-on): Add c-ctype, extensions.
18489         * NEWS: Mention the change.
18490
18491 2009-11-03  Bruno Haible  <bruno@clisp.org>
18492
18493         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18494
18495 2009-11-03  Jim Meyering  <meyering@redhat.com>
18496
18497         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18498         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18499         if it is defined.
18500
18501 2009-11-02  Eric Blake  <ebb9@byu.net>
18502
18503         mktime, timegm: share common declaration
18504         * lib/mktime-internal.h: New file.
18505         * lib/mktime.c: Use it rather than open-coding a declaration.
18506         * lib/timegm.c: Likewise.
18507         * modules/mktime (Files): Ship it.
18508         * modules/timegm (Files): Likewise.
18509         Suggested by Bruno Haible.
18510
18511         test-update-copyright: update test to match script changes
18512         * tests/test-update-copyright.sh: Avoid hard-coding perl
18513         location.  Don't update *.bak created by earlier runs.
18514
18515 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18516             Simon Josefsson  <simon@josefsson.org>
18517             Bruno Haible  <bruno@clisp.org>
18518
18519         Fix link error on Solaris 8.
18520         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18521         also in libnsl. Define also INET_PTON_LIB.
18522         * modules/inet_pton (Link): New section.
18523
18524 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18525             Bruno Haible  <bruno@clisp.org>
18526
18527         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18528         * modules/inet_ntop (Link): New section.
18529         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18530
18531 2009-11-02  Eric Blake  <ebb9@byu.net>
18532
18533         maint: avoid compiler warnings in m4 macros
18534         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18536
18537 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18538
18539         * m4/pmccabe2html.m4: Remove file.
18540         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18541         function.  Change maintainer.
18542         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18543         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18544         Courtès).
18545
18546 2009-10-31  Eric Blake  <ebb9@byu.net>
18547
18548         fseeko: fix m4 regression
18549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18550         regression from 2009-10-27.
18551         Reported by Ralf Wildenhues.
18552
18553 2009-10-31  Jim Meyering  <meyering@redhat.com>
18554
18555         inttostr: aesthetics and improved (compile-time) safety
18556         Define inttype_is_signed rather than inttype_is_unsigned,
18557         since the sole use is via "#if inttype_is_signed".
18558         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18559         inttype_is_unsigned.
18560         * lib/offtostr.c (inttype_is_signed): Likewise.
18561         * lib/uinttostr.c (inttype_is_signed): Likewise.
18562         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18563         * lib/inttostr.c (inttostr): Use verify to cross-check the
18564         inttype_is_signed value and the signedness of the actual type.
18565         * modules/inttostr (Depends-on): Add verify.
18566
18567 2009-10-30  Eric Blake  <ebb9@byu.net>
18568
18569         build: avoid compiler warnings
18570         * lib/fchmodat.c (lchmod): Mark unused variables.
18571         * lib/getopt.c (_getopt_initialize): Likewise.
18572         * lib/mktime.c (__mktime_internal): Provide prototype.
18573         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18574         older gcc that do not understand #pragma GCC diagnostic.
18575         * lib/uinttostr.c (inttype_is_unsigned): Define.
18576         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18577
18578 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18579
18580         stat: fix compilation on AIX
18581         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18582         only see struct stat64.
18583
18584 2009-10-30  Eric Blake  <ebb9@byu.net>
18585
18586         exclude: make more robust
18587         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18588         rather than masking a coding bug.
18589         Suggested by Bruno Haible.
18590
18591 2009-10-30  Jim Meyering  <meyering@redhat.com>
18592
18593         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18594         Rather than putting #!/usr/bin/perl on the first line,
18595         start with a variant of what's recommended by "man perlrun" that
18596         invokes the first "perl" program from your shell's search path.
18597         * build-aux/gitlog-to-changelog: Replace #!... as above.
18598         Add a "Local Variables" perl mode setting.
18599         Prompted by a patch from Ludovic Courtès.
18600         Improved by Eric Blake.
18601         * build-aux/useless-if-before-free: Likewise.
18602         * build-aux/announce-gen: Likewise.
18603         * build-aux/update-copyright: Likewise.
18604
18605 2009-10-29  Eric Blake  <ebb9@byu.net>
18606
18607         filenamecat-lgpl: adjust clients
18608         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18609         filenamecat.
18610         * modules/renameat (Depends-on): Likewise.
18611
18612         filenamecat: split into filenamecat-lgpl
18613         * modules/filenamecat-lgpl: New module.
18614         * modules/filenamecat (Files): Move library-safe files into
18615         filenamecat-lgpl.
18616         (Depends-on): Add filenamecat-lgpl.
18617         (configure.ac): Declare witness.
18618         * lib/filenamecat.h (file_name_concat): Only declare when using
18619         GPL module.
18620         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18621         Move...
18622         * lib/filenamecat-lgpl.c: ...into new file.
18623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18624         (gl_FILE_NAME_CONCAT): Use it.
18625         * MODULES.html.sh (File system functions): Mention new module.
18626
18627         argp: avoid memory leak
18628         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18629         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18630         base_name, since the latter malloc()s and can call exit().
18631         Leak introduced 2006-07-03.
18632
18633         dirname-lgpl: adjust clients that don't need full dirname
18634         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18635         * modules/filenamecat (Depends-on): Likewise.
18636         * modules/linkat (Depends-on): Likewise.
18637         * modules/mkancesdirs (Depends-on): Likewise.
18638         * modules/mkdir (Depends-on): Likewise.
18639         * modules/openat (Depends-on): Likewise.
18640         * modules/savewd (Depends-on): Likewise.
18641         * modules/rename (Depends-on): Likewise.
18642         (License): Relax license.
18643         * modules/mkdir-tests (Depends-on): Drop progname.
18644         (Makefile.am): Delete unneeded LDADD.
18645         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18646
18647         dirname: split into dirname-lgpl
18648         * modules/dirname-lgpl: New module.
18649         * modules/dirname (Files): Move library-safe files into
18650         dirname-lgpl.
18651         (Depends-on): Add dirname-lgpl.
18652         (configure.ac): Declare witness.
18653         * modules/double-slash-root (License): Relax license.
18654         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18655         module.
18656         * lib/dirname.c (dir_len, mdir_name): Move...
18657         * lib/dirname-lgpl.c: ...into new file.
18658         * lib/basename.c (last_component, base_len): Move...
18659         * lib/basename-lgpl.c: ...into new file.
18660         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18661         (gl_DIRNAME): Use it.
18662         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18663         Mention new module.
18664         * modules/dirname-tests (Depends-on): Add progname.
18665         * tests/test-dirname.c (program_name): Delete.
18666
18667         mkdir: make safe for libraries
18668         * modules/mkdir (Depends-on): Drop xalloc.
18669         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18670         exit.
18671
18672         tests: avoid some compiler warnings
18673         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18674         literals.
18675         * tests/test-memchr.c (main): Avoid type mismatch.
18676         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18677         * tests/test-base64.c (main): Likewise.
18678         * tests/test-getdelim.c (main): Likewise.
18679         * tests/test-gethostname.c (main): Likewise.
18680         * tests/test-getline.c (main): Likewise.
18681         * tests/test-netinet_in.c (main): Likewise.
18682         * tests/test-select.c (open_server_socket, main): Likewise.
18683         * tests/test-select-stdin.c (main): Likewise.
18684         * tests/test-sockets.c (main): Likewise.
18685         * tests/test-strsignal.c (main): Likewise.
18686         * tests/test-sys_select.c (main): Likewise.
18687         * tests/test-sys_socket.c (main): Likewise.
18688         * tests/test-u64.c (main): Likewise.
18689         * tests/test-xfprintf-posix.c (main): Likewise.
18690         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18691
18692         sockets: avoid compiler warning
18693         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18694
18695         maint: detect usage(1) and other suspicious exits
18696         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18697
18698 2009-10-29  Jim Meyering  <meyering@redhat.com>
18699
18700         timespec: long-to-int truncation could make timespec_cmp malfunction
18701         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18702         a multiple of 2^32 nanoseconds as no difference.
18703
18704 2009-10-28  Jim Meyering  <meyering@redhat.com>
18705
18706         fprintftime: wrap macro code argument in "do {...} while(0)"
18707         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18708         cpy macro must be a statement that can be followed by a semicolon.
18709         Now that the else clause contains a comment and is hence longer
18710         than one line, I require curly braces.  That in turn requires
18711         that we wrap this code block in the standard do...while(0).
18712
18713         fprintftime: remove stray semicolon from previous change
18714         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18715
18716         fprintftime: avoid a warning about ignored fwrite return value
18717         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18718         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18719         that is unsafe.
18720         * modules/fprintftime (Depends-on): Add ignore-value.
18721
18722         exclude: avoid an unwarranted warning
18723         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18724
18725 2009-10-27  Eric Blake  <ebb9@byu.net>
18726
18727         fseek: avoid compilation failure when fflush is replaced
18728         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18729         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18730         module is in use.
18731         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18732         module is not in use; since REPLACE_FSEEK worked otherwise.
18733         (GNULIB_FTELLO): Likewise for ftell.
18734         Reported by Ian Beckwith and others.
18735
18736 2009-10-27  Bruno Haible  <bruno@clisp.org>
18737
18738         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18739         Reported by Jim Meyering.
18740
18741 2009-10-27  Jim Meyering  <jim@meyering.net>
18742             Bruno Haible  <bruno@clisp.org>
18743
18744         Avoid warning despite dropping the return value of fwrite.
18745         * lib/unicodeio.c: Include ignore-value.h.
18746         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18747         * modules/unicodeio (Depends-on): Add ignore-value.
18748
18749 2009-10-26  Eric Blake  <ebb9@byu.net>
18750
18751         areadlinkat: fix fallback path
18752         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18753         pointer and zero.
18754
18755 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18756
18757         Use a better IO block size for modern systems
18758         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18759         * lib/md2.c: Likewise.
18760         * lib/md4.c: Likewise.
18761         * lib/md5.c: Likewise.
18762         * lib/sha1.c: Likewise.
18763         * lib/sha256.c: Likewise.
18764         * lib/sha512.c: Likewise.
18765
18766 2009-10-22  Eric Blake  <ebb9@byu.net>
18767
18768         tests: avoid several compiler warnings
18769         * tests/test-getcwd.c (main): Avoid buffer underflow.
18770         * tests/test-getdate.c (main): String literals are not safe with
18771         putenv, so use setenv.  Declare unused argument.
18772         * modules/getdate-tests (Depends-on): Add setenv.
18773         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18774         problems with string literals in char *.
18775         * tests/test-hash.c (main): Avoid shadowing declaration.
18776         (insert_new): Treat string literals as char const *.
18777         * tests/test-getopt.h (test_getopt): Likewise.
18778         (getopt_loop): Alter types to minimize casting elsewhere.
18779         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18780         (test_getopt_long_posix): Likewise.
18781         (do_getopt_long): Add wrapper to minimize casting.
18782         * tests/test-atexit.c (clear_temp_file): Use void.
18783         * tests/test-areadlink-with-size.c (main): Declare unused
18784         arguments.
18785         * tests/test-areadlink.c (main): Likewise.
18786         * tests/test-areadlinkat-with-size.c (main): Likewise.
18787         * tests/test-areadlinkat.c (main): Likewise.
18788         * tests/test-canonicalize-lgpl.c (main): Likewise.
18789         * tests/test-canonicalize.c (main): Likewise.
18790         * tests/test-dirent-safer.c (main): Likewise.
18791         * tests/test-dirname.c (main): Likewise.
18792         * tests/test-dup2.c (main): Likewise.
18793         * tests/test-fchdir.c (main): Likewise.
18794         * tests/test-fcntl-h.c (main): Likewise.
18795         * tests/test-fcntl-safer.c (main): Likewise.
18796         * tests/test-fdopendir.c (main): Likewise.
18797         * tests/test-fdutimensat.c (main): Likewise.
18798         * tests/test-fflush.c (main): Likewise.
18799         * tests/test-filenamecat.c (main): Likewise.
18800         * tests/test-filevercmp.c (main): Likewise.
18801         * tests/test-fopen-safer.c (main): Likewise.
18802         * tests/test-fopen.c (main): Likewise.
18803         * tests/test-fpending.c (main): Likewise.
18804         * tests/test-fpurge.c (main): Likewise.
18805         * tests/test-freading.c (main): Likewise.
18806         * tests/test-fstatat.c (main): Likewise.
18807         * tests/test-fsync.c (main): Likewise.
18808         * tests/test-futimens.c (main): Likewise.
18809         * tests/test-getndelim2.c (main): Likewise.
18810         * tests/test-gettimeofday.c (main): Likewise.
18811         * tests/test-getopt.c (main): Likewise.
18812         * tests/test-i-ring.c (main): Likewise.
18813         * tests/test-inttypes.c (main): Likewise.
18814         * tests/test-link.c (main): Likewise.
18815         * tests/test-lstat.c (main): Likewise.
18816         * tests/test-math.c (main): Likewise.
18817         * tests/test-md5.c (main): Likewise.
18818         * tests/test-memchr2.c (main): Likewise.
18819         * tests/test-memrchr.c (main): Likewise.
18820         * tests/test-mkdir.c (main): Likewise.
18821         * tests/test-mkdirat.c (main): Likewise.
18822         * tests/test-mkfifoat.c (main): Likewise.
18823         * tests/test-open.c (main): Likewise.
18824         * tests/test-openat-safer.c (main): Likewise.
18825         * tests/test-openat.c (main): Likewise.
18826         * tests/test-quotearg.c (main): Likewise.
18827         * tests/test-rawmemchr.c (main): Likewise.
18828         * tests/test-readlink.c (main): Likewise.
18829         * tests/test-remove.c (main): Likewise.
18830         * tests/test-rename.c (main): Likewise.
18831         * tests/test-renameat.c (main): Likewise.
18832         * tests/test-rmdir.c (main): Likewise.
18833         * tests/test-sha1.c (main): Likewise.
18834         * tests/test-signal.c (main): Likewise.
18835         * tests/test-sigaction.c (main): Likewise.
18836         * tests/test-stat.c (main): Likewise.
18837         * tests/test-stat-time.c (main): Likewise.
18838         * tests/test-stddef.c (main): Likewise.
18839         * tests/test-stdint.c (main): Likewise.
18840         * tests/test-stdio.c (main): Likewise.
18841         * tests/test-stdlib.c (main): Likewise.
18842         * tests/test-strchrnul.c (main): Likewise.
18843         * tests/test-strerror.c (main): Likewise.
18844         * tests/test-string.c (main): Likewise.
18845         * tests/test-strtod.c (main): Likewise.
18846         * tests/test-strverscmp.c (main): Likewise.
18847         * tests/test-symlink.c (main): Likewise.
18848         * tests/test-symlinkat.c (main): Likewise.
18849         * tests/test-sys_stat.c (main): Likewise.
18850         * tests/test-sys_time.c (main): Likewise.
18851         * tests/test-time.c (main): Likewise.
18852         * tests/test-unistd.c (main): Likewise.
18853         * tests/test-unlink.c (main): Likewise.
18854         * tests/test-unlinkat.c (main): Likewise.
18855         * tests/test-utimens.c (main): Likewise.
18856         * tests/test-utimensat.c (main): Likewise.
18857         * tests/test-version-etc.c (main): Likewise.
18858         * tests/test-wchar.c (main): Likewise.
18859         * tests/test-wctype.c (main): Likewise.
18860         * tests/test-xprintf-posix.c (main): Likewise.
18861         * tests/test-posixtm.c (main): Likewise.
18862         (STREQ): Delete unused macro.
18863         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18864         shadowed variables.
18865         * tests/test-memchr.c (main): Likewise.
18866
18867 2009-10-21  Eric Blake  <ebb9@byu.net>
18868
18869         areadlinkat: avoid failure on older glibc
18870         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18871         rather than mis-comparing 0 against FUNC_RESULT of char*.
18872
18873 2009-10-21  Bruno Haible  <bruno@clisp.org>
18874
18875         * modules/stpncpy (License): Relicense under LGPLv2+.
18876         Reported by David Lutterkort <lutter@redhat.com>.
18877
18878 2009-10-20  Eric Blake  <ebb9@byu.net>
18879
18880         utimensat: work around Solaris 9 bug
18881         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18882         has trailing slash bugs.
18883         * tests/test-lutimens.h (test_lutimens): Enhance test.
18884         * tests/test-utimens.h (test_utimens): Likewise.
18885         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18886         * doc/posix-functions/utimes.texi (utimes): Likewise.
18887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18888         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18889         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18890         * doc/posix-functions/futimens.texi (futimens): Likewise.
18891
18892         fdutimensat: new module
18893         * modules/fdutimensat: New file.
18894         * lib/fdutimensat.c (fdutimensat): Likewise.
18895         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18896         * MODULES.html.sh (File system functions): Mention module.
18897         * modules/fdutimensat-tests: New test.
18898         * tests/test-fdutimensat.c: Likewise.
18899
18900         doc: regenerate INSTALL
18901         * doc/INSTALL: Reflect recent autoconf update.
18902         * doc/INSTALL.ISO: Likewise.
18903         * doc/INSTALL.UTF-8: Likewise.
18904
18905 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18906
18907         acl: warn if ACL support is not detected
18908         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18909
18910 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18911
18912         * lib/nproc.h: Add extern "C" block for C++.
18913
18914 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18915             Bruno Haible  <bruno@clisp.org>
18916
18917         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18918         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18919         * doc/posix-functions/isalpha.texi: Likewise.
18920         * doc/posix-functions/isblank.texi: Likewise.
18921         * doc/posix-functions/iscntrl.texi: Likewise.
18922         * doc/posix-functions/isdigit.texi: Likewise.
18923         * doc/posix-functions/isgraph.texi: Likewise.
18924         * doc/posix-functions/islower.texi: Likewise.
18925         * doc/posix-functions/isprint.texi: Likewise.
18926         * doc/posix-functions/ispunct.texi: Likewise.
18927         * doc/posix-functions/isspace.texi: Likewise.
18928         * doc/posix-functions/isupper.texi: Likewise.
18929         * doc/posix-functions/isxdigit.texi: Likewise.
18930
18931 2009-10-18  Bruno Haible  <bruno@clisp.org>
18932
18933         Tests for module 'isblank'.
18934         * modules/isblank-tests: New file.
18935         * tests/test-isblank.c: New file.
18936
18937         New module 'isblank'.
18938         * lib/isblank.c: New file.
18939         * m4/isblank.m4: New file.
18940         * modules/isblank: New file.
18941         * doc/posix-functions/isblank.texi: Mention the new module.
18942
18943 2009-10-18  Bruno Haible  <bruno@clisp.org>
18944
18945         New module 'ctype'.
18946         * lib/ctype.in.h: New file.
18947         * m4/ctype.m4: New file.
18948         * modules/ctype: New file.
18949         * doc/posix-headers/ctype.texi: Mention the new module.
18950
18951 2009-10-18  Jim Meyering  <meyering@redhat.com>
18952
18953         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18954         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18955         right after its initialization, rather than farther down.
18956         Keeping these in close proximity makes it easier to ensure
18957         that each such variable is initialized.  E.g.,
18958
18959             LIB_CLOCK_GETTIME=
18960             AC_SUBST([LIB_CLOCK_GETTIME])
18961
18962         This change also increments these serial numbers.
18963         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18964         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18966
18967 2009-10-18  Bruno Haible  <bruno@clisp.org>
18968
18969         Don't let environment variables perturb build.
18970         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18971         (gl_PREREQ_GETHRXTIME): ... not here.
18972
18973 2009-10-18  Bruno Haible  <bruno@clisp.org>
18974
18975         Avoid symlink attack in localcharset module.
18976         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18977         (O_NOFOLLOW): Define fallback.
18978         (get_charset_aliases): Don't open the file if it is a symbolic link.
18979         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18980         gl_FCNTL_H.
18981         (gl_FCNTL_H): Require it.
18982         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18983         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18984         Reported by Fergal Glynn <fglynn@veracode.com>.
18985
18986 2009-10-18  Bruno Haible  <bruno@clisp.org>
18987
18988         Implement nproc for mingw.
18989         * lib/nproc.c: Include <windows.h>
18990         (num_processors): On native Windows platforms, try GetSystemInfo.
18991
18992 2009-10-18  Bruno Haible  <bruno@clisp.org>
18993
18994         Implement nproc for IRIX.
18995         * lib/nproc.c: Include <sys/sysmp.h>.
18996         (num_processors): On IRIX systems, try sysmp.
18997         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18998
18999 2009-10-18  Bruno Haible  <bruno@clisp.org>
19000
19001         Implement nproc for HP-UX.
19002         * lib/nproc.c: Include <sys/pstat.h>
19003         (num_processors): On HP-UX systems, try pstat_getdynamic.
19004         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19005         pstat_getdynamic.
19006
19007 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19008             Bruno Haible  <bruno@clisp.org>
19009
19010         Implement nproc for NetBSD, OpenBSD.
19011         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19012         (ARRAY_SIZE): New macro.
19013         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19014         * m4/nproc.m4: New file.
19015         * modules/nproc (Files): Add m4/nproc.m4.
19016         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19017         (Makefile.am): Instead, augment lib_SOURCES.
19018
19019 2009-10-18  Bruno Haible  <bruno@clisp.org>
19020
19021         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19022         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19023         sys/param.h.
19024
19025 2009-10-16  Eric Blake  <ebb9@byu.net>
19026
19027         utimensat: new module
19028         * modules/utimensat: New file.
19029         * lib/utimensat.c (utimensat): Likewise.
19030         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19031         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19032         so we can work around Linux bugs.
19033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19034         * modules/sys_stat (Makefile.am): Substitute them.
19035         * lib/sys_stat.in.h (utimensat): Declare it.
19036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19037         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19038         * modules/utimensat-tests: New test.
19039         * tests/test-utimensat.c: Likewise.
19040
19041         utimens: let lutimens work on non-symlinks
19042         * lib/utimens.c (lutimens): Fall back to utimens rather than
19043         failing with ENOSYS, when file is not a symlink.
19044         (utimens): Reduce redirection.
19045         * tests/test-lutimens.h (test_lutimens): Update test to cover
19046         non-symlinks.
19047         * tests/test-utimens.h (test_utimens): Update test to cover
19048         symlinks.
19049         * tests/test-utimens.c (main): Update caller.
19050
19051         utimens: cache whether utimensat syscall works
19052         * lib/utimens.c (utimensat_works_really): New cache variable.
19053         (fdutimens, lutimens): Use it to avoid failing syscall.
19054
19055         test-stat-time, test-utimens: improve portability
19056         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19057         ext4 on alpha, and for cygwin.
19058         * tests/test-utimens-common.h: New file.
19059         (nap): Factor delays into single function.
19060         * tests/test-lutimens.h (test_lutimens): Use new header.
19061         * tests/test-futimens.h (test_futimens): Likewise.
19062         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19063         timestamps to occur from same machine, as was done previously for
19064         test_utimens.
19065         * modules/utimens-tests (Files): Ship new file.
19066         * modules/futimens-tests (Files): Likewise.
19067         Reported in part by Jim Meyering.
19068
19069         sys_stat: sort replacement declarations
19070         * lib/sys_stat.in.h: Sort declarations.
19071         * lib/futimens.c (futimens): Fix typo.
19072
19073 2009-10-15  Jim Meyering  <meyering@redhat.com>
19074
19075         don't let environment settings perturb build
19076         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19077         could cause a configure-time and/or build-time malfunction.
19078         Typically, a configure-time function-in-library test is performed
19079         via code like this:
19080
19081           LIB_VAR=
19082           AC_SUBST([LIB_VAR])
19083           prefix_saved_LIBS=$LIBS
19084             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19085                        [test "$ac_cv_search_FUNC" = "none required" ||
19086                         LIB_VAR=$ac_cv_search_FUNC])
19087           LIBS=$prefix_saved_LIBS
19088
19089         However, in each of the files affected by this change, the LIB_VAR=
19090         initialization was omitted.  Thus, when set in the environment, its
19091         value would propagate into generated Makefiles when FUNC is not found
19092         in LIB_NAME.
19093         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19096
19097 2009-10-14  Eric Blake  <ebb9@byu.net>
19098
19099         fchdir: avoid infinite recursion in mingw
19100         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19101         recursing.
19102
19103         test-stat-time: port to mingw
19104         * tests/test-stat-time.c (force_unlink): Return a value.
19105         (test_ctime) [W32]: Fix compilation error.
19106         (nap): Don't call usleep with too large an argument.  Use
19107         force_unlink.
19108         * doc/pastposix-functions/usleep.texi (usleep): Document the
19109         portability issue.
19110
19111 2009-10-13  Jim Meyering  <meyering@redhat.com>
19112
19113         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19114         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19115         * modules/pipe-filter-ii: Likewise.
19116         * modules/sys_socket-tests: Likewise.
19117         * modules/tsearch-tests: Likewise.
19118         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19119         (check): Depend on it.
19120
19121 2009-10-12  Eric Blake  <ebb9@byu.net>
19122
19123         utimens-tests: port to NFS file systems
19124         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19125         comparisons to avoid spurious failures from timestamp drift
19126         between NFS machines.
19127
19128 2009-10-12  Eric Blake  <ebb9@byu.net>
19129
19130         stat-time-tests: minor cleanups
19131         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19132         * tests/test-stat-time.c (nap): Separate assignment from call.
19133         Suggested by Paolo Bonzini and Bruno Haible.
19134
19135         sys_stat: guarantee struct timespec
19136         * lib/sys_stat.in.h (includes): Always include <time.h>
19137         * modules/sys_stat (Depends-on): Add time.
19138         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19139         mode_t permission values.
19140         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19141         get at subsecond timestamps.
19142
19143 2009-10-10  Eric Blake  <ebb9@byu.net>
19144
19145         futimens: new module
19146         * modules/futimens: New file.
19147         * lib/futimens.c (futimens): Likewise.
19148         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19149         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19150         we can work around Linux bugs.
19151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19152         * modules/sys_stat (Makefile.am): Substitute them.
19153         * lib/sys_stat.in.h (futimens): Declare it.
19154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19155         * doc/posix-functions/futimens.texi (futimens): Likewise.
19156         * modules/futimens-tests: New test.
19157         * tests/test-futimens.c: Likewise.
19158
19159         utimens: introduce fdutimens
19160         * lib/utimens.h (fdutimens): New prototype.
19161         * lib/utimens.c (gl_futimens): Move guts...
19162         (fdutimens): ...to new interface.
19163         * tests/test-utimens.c (do_fdutimens): Use it.
19164
19165         utimens: add UTIME_NOW and UTIME_OMIT support
19166         * lib/utimens.c (validate_timespec, update_timespec): New helper
19167         functions.
19168         (gl_futimens, lutimens): Use them.
19169         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19170         stdbool, sys_stat.
19171         (Link): Mention resulting library dependency.
19172         * modules/utimecmp (Link): Likewise.
19173         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19174         (Makefile.am): Pick up library dependency.
19175         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19176         definition.
19177         * tests/test-sys_stat.c: Test the definitions.
19178         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19179         * NEWS: Document library dependency.
19180
19181         utimecmp: support symlink timestamps
19182         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19183         hashing when possible.  Use pathconf when available.
19184         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19185         * modules/utimecmp (Depends-on): Add lstat.
19186
19187         utimens: add lutimens interface
19188         * lib/utimens.c (lutimens): New function.
19189         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19190         * lib/utimens.h (lutimens): Declare new interface.
19191         * tests/test-utimens.c (main): Enhance test.
19192         * tests/test-lutimens.h (test_lutimens): New file.
19193         * modules/utimens-tests (Files): Distribute it.
19194         (Depends-on): Add symlink.
19195         (configure.ac): Check for usleep.
19196
19197         utimens: validate futimens usage
19198         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19199         fewer syscalls on failure later on.  Avoid compiler warning on
19200         mingw.
19201         * modules/utimens (Depends-on): Add dup2.
19202
19203         utimens: add test
19204         * modules/utimens-tests: New test.
19205         * tests/test-utimens.h: New file.
19206         * tests/test-futimens.h: Likewise.
19207         * tests/test-utimens.c: Likewise.
19208
19209         doc: mention timestamp portability issues
19210         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19211         instead.
19212         * doc/posix-functions/utime.texi (utime): Likewise.
19213         * doc/posix-functions/utimes.texi (utimes): Likewise.
19214         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19215         instead.
19216         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19217         module.
19218         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19219         Mention weakness with symlink timestamps.
19220         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19221         to utimensat/futimens instead.
19222         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19223
19224         test-dup2: enhance test
19225         * tests/test-dup2.c (main): Also check AT_FDCWD.
19226
19227         test-stat-time: avoid more spurious failures
19228         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19229         xfs; and avoid race if the two timestamps cross quantization edge.
19230
19231         relocatable: prefer 'file system' over 'filesystem'
19232         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19233         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19234         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19235         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19236         * lib/relocatable.c (compute_curr_prefix): Likewise.
19237
19238 2009-10-10  Jim Meyering  <meyering@redhat.com>
19239
19240         stat-time-tests: check for the usleep function
19241         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19242
19243 2009-10-10  Bruno Haible  <bruno@clisp.org>
19244
19245         * modules/xnanosleep: Put the Link section after the Include section.
19246
19247 2009-10-09  Eric Blake  <ebb9@byu.net>
19248
19249         dup2: work around FreeBSD 6.1 bug
19250         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19251         * doc/posix-functions/dup2.texi (dup2): Document it.
19252         Reported by Nelson H. F. Beebe and Jim Meyering.
19253
19254         test-stat-time: port to buggy NFS clients
19255         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19256         (test_ctime): Also skip test if mtime and ctime are skewed.
19257
19258         maint: prefer 'file system' over 'filesystem'
19259         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19260         * doc/posix-functions/lstat.texi (lstat): Likewise.
19261         * lib/file-has-acl.c (file_has_acl): Likewise.
19262         * lib/fwriteerror.c [TEST]: Likewise.
19263         * tests/test-areadlink.h (test_areadlink): Likewise.
19264         * tests/test-areadlinkat-with-size.c (main): Likewise.
19265         * tests/test-areadlinkat.c (main): Likewise.
19266         * tests/test-canonicalize-lgpl.c (main): Likewise.
19267         * tests/test-canonicalize.c (main): Likewise.
19268         * tests/test-fstatat.c (main): Likewise.
19269         * tests/test-linkat.c (main): Likewise.
19270         * tests/test-lstat.h (test_lstat_func): Likewise.
19271         * tests/test-mkdir.h (test_mkdir): Likewise.
19272         * tests/test-readlink.h (test_readlink): Likewise.
19273         * tests/test-remove.c (main): Likewise.
19274         * tests/test-rename.h (test_rename): Likewise.
19275         * tests/test-renameat.c (main): Likewise.
19276         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19277         * tests/test-symlink.h (test_symlink): Likewise.
19278         * tests/test-symlinkat.c (main): Likewise.
19279         * tests/test-unlink.h (test_unlink_func): Likewise.
19280         * tests/test-unlinkat.c (main): Likewise.
19281
19282         maint: make realtime library usage explicit
19283         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19284         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19285         * modules/settime (Link): Likewise.
19286         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19287
19288         test-stat-time: speed up execution
19289         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19290         warning on mingw.
19291         (nap): New helper function.
19292         (prepare_test): Use it to reduce sleep time.
19293         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19294         execution.
19295         * modules/stat-time-tests (configure.ac): Check for usleep.
19296
19297 2009-10-09  Jim Meyering  <meyering@redhat.com>
19298
19299         selinux-h: always use getfilecon wrappers
19300         * lib/getfilecon.c: New file.
19301         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19302         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19303         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19304         (fgetfilecon): Provide a stub.
19305         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19306         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19307         file unconditionally.
19308         When <selinux/selinux.h> is found, arrange to use wrappers.
19309         * modules/selinux-h (Files): Add getfilecon.c.
19310         (Makefile.am): Substitute include-next-related bits
19311         into the now-always-generated selinux/selinux.h file.
19312         * doc/glibc-functions/lgetfilecon.texi: New file.
19313         * doc/glibc-functions/fgetfilecon.texi: New file.
19314         * doc/glibc-functions/getfilecon.texi: New file.
19315         * doc/glibc-functions/getfilecon-desc.texi: New file.
19316         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19317         which to pull in the new files.
19318         * MODULES.html.sh (Misc): Add selinux-h.
19319
19320 2009-10-08  Jim Meyering  <meyering@redhat.com>
19321
19322         unistd: fix comment typo
19323         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19324
19325 2009-10-08  Eric Blake  <ebb9@byu.net>
19326
19327         areadlink: use SIZE_MAX consistently
19328         * modules/areadlink (Depends-on): Add stdint.
19329         * modules/areadlink-with-size (Depends-on): Likewise.
19330         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19331         gives NULL; drop sys/types, since unistd gives size_t; and add
19332         stdint for SIZE_MAX.
19333         (SIZE_MAX): Rely on headers.
19334         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19335         and add stdint.
19336         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19337         (SIZE_MAX): Likewise.
19338         (INITIAL_BUF_SIZE): Turn into enum.
19339         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19340
19341 2009-10-08  Jim Meyering  <meyering@redhat.com>
19342
19343         areadlinkat: avoid compilation failure
19344         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19345         Fix typo in comment.
19346
19347 2009-10-07  Eric Blake  <ebb9@byu.net>
19348
19349         areadlinkat-with-size: new module
19350         * modules/areadlinkat-with-size: New module.
19351         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19352         * lib/areadlink.h (areadlinkat): Declare it.
19353         * MODULES.html.sh (File system functions): Mention it.
19354         * modules/areadlinkat-with-size-tests: New test.
19355         * tests/test-areadlinkat-with-size.c: New file.
19356
19357         xreadlinkat: new module
19358         * modules/xreadlinkat: New module.
19359         * lib/xreadlinkat.c (xreadlinkat): New file.
19360         * lib/xreadlink.h (xreadlinkat): Declare it.
19361         * MODULES.html.sh (File system functions): Mention it.
19362
19363         areadlinkat: new module
19364         * lib/at-func.c (FUNC_FAIL): New define.
19365         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19366         * modules/areadlinkat: New module.
19367         * lib/linkat.c (areadlinkat): Move...
19368         * lib/areadlinkat.c (areadlinkat): ...to new file.
19369         * lib/areadlink.h (areadlinkat): Declare it.
19370         * modules/linkat (Depends-on): Add areadlinkat.
19371         * MODULES.html.sh (File system functions): Mention it.
19372         * modules/areadlinkat-tests: New test.
19373         * tests/test-areadlinkat.c: New file.
19374
19375         areadlink, areadlink-with-size: add tests
19376         * modules/areadlink-tests: New test.
19377         * modules/areadlink-with-size-tests: Likewise.
19378         * tests/test-areadlink.h: New file.
19379         * tests/test-areadlink.c: Likewise.
19380         * tests/test-areadlink-with-size.c: Likewise.
19381
19382         maint: minor cleanups
19383         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19384         _UNUSED_PARAMETER_ instead.
19385         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19386         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19387         * modules/linkat-tests (Files): Distribute test-link.h.
19388
19389         openat, utimens: whitespace cleanup
19390         * lib/openat.c: Prefer space throughout, rather than mix of 8
19391         spaces vs. tabs.
19392         * lib/at-func.c: Likewise.
19393         * lib/utimens.c: Likewise.
19394
19395         openat: avoid using wrong fd
19396         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19397         working directory chooses same fd.
19398         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19399
19400         mkdir, mkdirat: fix cygwin 1.5.x bug
19401         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19403         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19404         bug.
19405         (gl_PREREQ_MKDIR): Delete unused macro.
19406         * modules/mkdir (Files): Track file rename.
19407         (configure.ac): Update macro name.
19408         * modules/openat (Depends-on): Add mkdir.
19409         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19410
19411         mkdir, mkdirat: add tests
19412         * modules/mkdir-tests: New test.
19413         * tests/test-mkdir.h: New file.
19414         * tests/test-mkdir.c: Likewise.
19415         * tests/test-mkdirat.c: Likewise.
19416         * modules/openat-tests (Files): Add new files.
19417         (Makefile.am): Run new test.
19418
19419 2009-10-06  Eric Blake  <ebb9@byu.net>
19420
19421         doc: tweak *at function documentation
19422         * doc/posix-functions/faccessat.texi (faccessat): Mention
19423         known issue with replacement.
19424         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19425         * doc/posix-functions/linkat.texi (linkat): Likewise.
19426         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19427         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19428         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19429         * doc/posix-functions/renameat.texi (renameat): Likewise.
19430         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19431
19432         openat: fix GNU/Hurd bug in unlinkat
19433         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19434         broken.
19435         * doc/posix-functions/unlink.texi (unlink): Document this.
19436         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19437
19438         fdopendir: fix GNU/Hurd bug
19439         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19440         allowing non-directory fds.
19441         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19443         * modules/dirent (Makefile.am): Substitute it.
19444         * lib/dirent.in.h (fdopendir): Declare replacement.
19445         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19446         * tests/test-fdopendir.c (main): Test something other than
19447         /dev/null, since on Hurd that behaves like a directory.
19448
19449         test-symlink: port to GNU/Hurd
19450         * tests/test-symlink.h (test_symlink): Relax expected errno.
19451
19452         doc: tweak more cygwin information
19453         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19454         now compatible with glibc.
19455         * doc/posix-functions/getopt.texi (getopt): Likewise.
19456
19457         getopt-gnu: add another test
19458         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19459         guarantee behavior relied on by m4.
19460         * tests/test-getopt.c (main): Use it.
19461         * modules/getopt-posix-tests (Depends-on): Add setenv.
19462         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19463
19464         getopt: fix compilation on darwin
19465         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19466         include.
19467         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19468         Reported by Ludovic Courtès.
19469
19470 2009-10-06  Bruno Haible  <bruno@clisp.org>
19471
19472         * modules/size_max (Description): Discourage its use.
19473         Reported by Simon Josefsson.
19474
19475 2009-10-06  Jim Meyering  <meyering@redhat.com>
19476
19477         linkat: avoid compilation failure
19478         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19479
19480 2009-10-05  Eric Blake  <ebb9@byu.net>
19481
19482         linkat: support Linux 2.6.17
19483         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19484         linkat on Linux, but allow cache variable override.
19485         * lib/linkat.c (rpl_linkat): Define override.
19486         * modules/linkat (Depends-on): Add symlinkat.
19487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19488         * modules/unistd (Makefile.am): Substitute it.
19489         * lib/unistd.in.h (linkat): Declare replacement.
19490         Reported by Pádraig Brady.
19491
19492         quotearg: port test to systems with C.UTF-8 locale
19493         * tests/test-quotearg.c (struct result_strings): Add another
19494         member, differentiating between C.ASCII and C.UTF-8 handling.
19495         (compare_strings): Add parameter.
19496         (main): Adjust all callers.
19497
19498         getopt: avoid clash with FreeBSD _getopt_internal
19499         * lib/getopt.in.h (_getopt_internal): Override the name.
19500         * lib/getopt_int.h (includes): Pick up any overrides.
19501         Reported by Reuben Thomas.
19502
19503         hash: allow C89 compilation
19504         * lib/hash.c (check_tuning): Move declaration before statement.
19505         Reported by Reuben Thomas.
19506
19507 2009-10-05  Karl Berry  <karl@gnu.org>
19508
19509         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19510
19511 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19512             Bruno Haible  <bruno@clisp.org>
19513
19514         * lib/uname.c (uname): Use a table-driven algorithm to compute
19515         Windows NT versions.
19516
19517 2009-10-04  Bruno Haible  <bruno@clisp.org>
19518
19519         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19520         program_invocation_short_name.
19521         * modules/progname (configure.ac): Test for presence of
19522         program_invocation_short_name.
19523         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19524
19525 2009-10-04  Bruno Haible  <bruno@clisp.org>
19526
19527         * lib/progname.c (set_program_name): Fix comment.
19528         Reported by Jim Meyering.
19529
19530 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19531             Bruno Haible  <bruno@clisp.org>
19532
19533         * lib/uname.c: Include <string.h>.
19534         (uname): Do only one call to GetVersionEx in the common case.
19535
19536 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19537             Bruno Haible  <bruno@clisp.org>
19538
19539         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19540         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19541         (uname): Add support for Windows CE and various non-x86 CPU types.
19542
19543 2009-10-03  Bruno Haible  <bruno@clisp.org>
19544
19545         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19546         invocation to tests/configure.ac.
19547         Reported by Ian Beckwith <ianb@erislabs.net>.
19548
19549 2009-10-02  Eric Blake  <ebb9@byu.net>
19550
19551         fchdir: avoid compiler warning
19552         * lib/fchdir.c (canonicalize_file_name)
19553         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19554
19555         test-open: support mingw errno values
19556         * tests/test-open.h (test_open): Relax test.
19557         * tests/test-fopen.h (test_fopen): Likewise.
19558         * tests/test-openat-safer.c (main): Likewise.
19559
19560         open: fix opening directory on mingw
19561         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19562
19563         test-open: on GNU/Hurd, /dev/null is a directory
19564         * tests/test-fopen.h (main): Rename...
19565         (test_fopen): ...to this.  Use a guaranteed non-directory when
19566         confirming open behavior on trailing slash.
19567         * tests/test-openat-safer.c (main): Likewise.
19568         * tests/test-open.h (main): Likewise....
19569         (test_open): ...to this.
19570         * tests/test-fopen.c (main): Adjust caller.
19571         * tests/test-fopen-safer.c (main): Likewise.
19572         * tests/test-open.c (main): Likewise.
19573         * tests/test-fcntl-safer.c (main): Likewise.
19574         Reported by Samuel Thibault.
19575
19576         rename, fchdir: don't ignore chdir failure
19577         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19578         * lib/rename.c (rpl_rename) [W32]: Likewise.
19579         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19580         an empty destination directory if source cannot be renamed,
19581         although there is still possibility for failure.
19582         * doc/posix-functions/rename.texi (rename): Document the race.
19583         Reported by Jim Meyering.
19584
19585         maint: cleanup whitespace in recent commits
19586         * lib/rename.c (rpl_rename): Remove tabs.
19587         * tests/test-link.h (test_link): Likewise.
19588         * lib/fchdir.c (get_name): Likewise.
19589         Reported by Jim Meyering.
19590
19591 2009-10-02  Ben Pfaff  <blp@gnu.org>
19592
19593         relocatable-prog-wrapper: Add missing dependency on
19594         double-slash-root.
19595         * modules/relocatable-prog-wrapper: Add dependency.
19596         Reported by Ian Beckwith <ianb@erislabs.net>.
19597
19598 2009-10-02  Eric Blake  <ebb9@byu.net>
19599
19600         renameat: fix Solaris bugs
19601         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19602         needed fixing.
19603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19604         * modules/stdio (Makefile.am): Substitute it.
19605         * lib/stdio.in.h (renameat): Declare replacement.
19606         * lib/renameat.c (rpl_renameat): Implement fix.
19607
19608         renameat: new module
19609         * modules/renameat: New file.
19610         * lib/renameat.c (renameat): Likewise.
19611         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19613         * modules/stdio (Makefile.am): Substitute them.
19614         * lib/stdio.in.h (renameat): Declare it.
19615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19616         * doc/posix-functions/renameat.texi (renameat): Likewise.
19617         * modules/renameat-tests: New test.
19618         * tests/test-renameat.c: Likewise.
19619
19620         rename: fix mingw bugs
19621         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19622         directory overwrite bugs.
19623
19624         rename: fix another cygwin 1.5 bug
19625         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19626         checks.
19627         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19628         unnecessary cygwin workarounds.  Also work around bug with moving
19629         full directory onto an empty one.
19630         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19631
19632         rename-dest-slash: merge into rename module
19633         * modules/rename-dest-slash (Status): Mark obsolete.
19634         (Depends-on): Add rename.
19635         (Files): Let rename do it all.
19636         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19637         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19638         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19639         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19640         * lib/rename.c (rpl_rename): Update comments.
19641
19642         rename: fix cygwin 1.5.x bugs
19643         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19644         * lib/rename.c (rpl_rename): Work around them.
19645         * modules/rename (Depends-on): Add same-inode.
19646
19647         rename: fix Solaris 10 bug
19648         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19649         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19650         was the only bug.
19651
19652         rename: fix Solaris 9 bug
19653         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19654         on non-directory.  Avoid calling exit.
19655         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19656         strdup.
19657         * modules/rename-tests (Depends-on): Drop lstat.
19658         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19659         (gl_PREREQ_RENAME): Delete unused macro.
19660
19661         rename-dest-slash: fix NetBSD bug
19662         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19663         links.
19664         * modules/rename-dest-slash (Depends-on): Add same-inode.
19665
19666         rename-tests: new test, exposes several platform bugs
19667         * modules/rename-tests: New file.
19668         * tests/test-rename.h: Likewise.
19669         * tests/test-rename.c: Likewise.
19670         * doc/posix-functions/rename.texi (rename): Improve documentation,
19671         including bugs that will eventually be fixed in gnulib.
19672
19673 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19674
19675         * lib/uname.c: Include <stdlib.h>
19676         (uname): Assume version info is available.
19677
19678 2009-10-02  Jim Meyering  <meyering@redhat.com>
19679
19680         gnu-web-doc-update: correct --help output
19681         * build-aux/gnu-web-doc-update: Make --help output relevant.
19682
19683         gnu-web-doc-update: add standard options
19684         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19685
19686         gnu-web-doc-update: New module.
19687         Use this script to automatically update the on-line web documentation
19688         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19689         * modules/gnu-web-doc-update: New file, from coreutils.
19690         * build-aux/gnu-web-doc-update: New script.
19691
19692 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19693
19694         link: LoadLibrary is not needed.
19695         * lib/link.c: Use GetModuleHandle.
19696
19697 2009-10-01  Eric Blake  <ebb9@byu.net>
19698
19699         getopt: bump serial number
19700         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19701         change.
19702
19703         tests: tighten link, rmdir, and remove tests
19704         * tests/test-link.h (includes): No need to use <config.h> here.
19705         Clean up if directory hard link was created, otherwise test for
19706         trailing '.'.
19707         * tests/test-linkat.c (main): Simplify.
19708         * tests/test-remove.c (main): Enhance test for trailing '.'.
19709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19710
19711 2009-10-01  Jim Meyering  <meyering@redhat.com>
19712
19713         maint.mk: requiring "make major" was annoying, for a "minor" release.
19714         What is intended is "stable", to contrast with alpha and beta,
19715         so require "make stable", not "make major".
19716         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19717         (get_tool_versions): Likewise.
19718         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19719
19720 2009-09-30  Ben Pfaff  <blp@gnu.org>
19721
19722         Fix broken build of replacement for Windows tmpfile().
19723         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19724         flags argument added along with the 'mkostemp' module.
19725
19726 2009-09-28  Bruno Haible  <bruno@clisp.org>
19727
19728         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19729         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19730         to 'remove_elt'.
19731         (gl_list_remove): Update.
19732         * lib/gl_list.c (gl_list_remove): Update.
19733         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19734         to 'remove_elt'.
19735         (gl_oset_remove): Update.
19736         * lib/gl_list.c (gl_oset_remove): Update.
19737         Reported by Eric Blake.
19738
19739 2009-09-28  Eric Blake  <ebb9@byu.net>
19740
19741         doc: mention yet more cygwin 1.7 status
19742         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19743         cygwin.
19744         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19745         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19746
19747         argp: fix test failure
19748         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19749         that are not upper-case.  Pass correct range to tolower.
19750
19751 2009-09-27  Jim Meyering  <meyering@redhat.com>
19752
19753         test-yesno: work around sparc-dash here-document infelicity
19754         Without this change, the literal \177 byte in a here document
19755         would make dash 0.5.5.1-3 access uninitialized memory.
19756         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19757         Instead, use a marker, "@", and filter through tr to create the desired
19758         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19759
19760 2009-09-27  Bruno Haible  <bruno@clisp.org>
19761
19762         Disable untested support for new flavours of ACLs on AIX.
19763         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19764         progress.
19765         * lib/set-mode-acl.c (qset_acl): Likewise.
19766
19767 2008-12-07  Bruno Haible  <bruno@clisp.org>
19768
19769         Add support for new flavours of ACLs on AIX. (Untested.)
19770         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19771         (file_has_acl): Add support for newer AIX.
19772         * lib/set-mode-acl.c (qset_acl): Likewise.
19773         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19774         Rainer Tammer <tammer@tammer.net>.
19775
19776 2009-09-26  Eric Blake  <ebb9@byu.net>
19777
19778         argp: fix compilation of getopt
19779         * lib/getopt.in.h (includes): Use different guard than glibc.
19780         Reported by Sergey Poznyakoff.
19781
19782         doc: mention more cygwin 1.7 status
19783         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19784         bug.
19785         * doc/posix-functions/execl.texi (execl): Likewise.
19786         * doc/posix-functions/execle.texi (execle): Likewise.
19787         * doc/posix-functions/execlp.texi (execlp): Likewise.
19788         * doc/posix-functions/execv.texi (execv): Likewise.
19789         * doc/posix-functions/execve.texi (execve): Likewise.
19790         * doc/posix-functions/execvp.texi (execvp): Likewise.
19791         * doc/glibc-functions/canonicalize_file_name.texi
19792         (canonicalize_file_name): Cygwin 1.7 now provides this.
19793         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19794         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19795         on AT_SYMLINK_NOFOLLOW.
19796
19797 2009-09-24  Eric Blake  <ebb9@byu.net>
19798
19799         test-linkat: make test more robust
19800         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19801
19802         getopt: fix inclusion guards for cygwin
19803         * modules/getopt-posix (Depends-on): Add include-next.
19804         (Makefile.am): Substitute more items in replacement header.
19805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19806         <getopt.h>.
19807         * lib/getopt.in.h (includes): Use split inclusion guard, and
19808         prefer <getopt.h> over include <unistd.h> when one is present.
19809         (option): Also override name of 'struct option'.
19810
19811         same-inode: revert prior change; it is not yet ready
19812         * NEWS: Undo mention of this change.
19813         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19814         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19815         * lib/cycle-check.c (cycle_check): Likewise.
19816         * lib/same.c (same_name): Likewise.
19817         * lib/at-func2.c (at_func2): Likewise.
19818
19819 2009-09-23  Eric Blake  <ebb9@byu.net>
19820
19821         linkat: new module
19822         * modules/linkat: New file.
19823         * lib/at-func2.c (at_func2): Likewise.
19824         * lib/linkat.c (linkat): Likewise.
19825         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19826         * lib/openat-priv.h (at_func2): Add declaration.
19827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19828         * modules/unistd (Makefile.am): Substitute them.
19829         * lib/unistd.in.h (linkat): Declare it.
19830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19831         * doc/posix-functions/linkat.texi (linkat): Likewise.
19832         * doc/posix-functions/link.texi (link): Tweak wording.
19833         * tests/test-link.c (main): Move guts...
19834         * tests/test-link.h (test_link): ...into new file.
19835         * modules/linkat-tests: New test.
19836         * tests/test-linkat.c: Likewise.
19837         * modules/link-tests (Files): Ship new file.
19838         (Depends-on): Add stdbool.
19839
19840         dirname: add library-safe mdir_name
19841         * lib/dirname.h (mdir_name): New prototype.
19842         * lib/dirname.c (dir_name): Move guts...
19843         (mdir_name): ...to new function that avoids xalloc_die.
19844
19845         fchdir: another mingw fix
19846         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19847         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19848         on mingw (where it has not yet been ported), and make it optional
19849         elsewhere.
19850         (_gl_register_fd): Use it.
19851
19852         same-inode: make SAME_INODE tri-state, to port to mingw
19853         * NEWS: Mention this change.
19854         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19855         st_ino always being 0.
19856         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19857         * lib/cycle-check.c (cycle_check): Likewise.
19858         * lib/same.c (same_name): Likewise.
19859
19860         lstat: avoid mingw compilation error
19861         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19863         lstat ourselves.
19864         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19865         was adequate.
19866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19867         the checks for lstat.
19868         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19869
19870         link: fix test failure on Solaris 9
19871         * lib/link.c (rpl_link): Don't assume link will catch bogus
19872         trailing slash on source.
19873
19874         test-symlinkat: enhance test
19875         * tests/test-readlink.c (main): Move guts...
19876         * tests/test-readlink.h (test_readlink): ...into new file.
19877         * tests/test-symlink.c (main): Move guts...
19878         * tests/test-symlink.h (test_symlink): ...into new file.
19879         * tests/test-symlinkat.c (main): Use new files for further
19880         coverage.
19881         (do_symlink, do_readlink): New helper functions.
19882         * modules/symlink-tests (Files): Ship new file.
19883         (Depends-on): Add stdbool.
19884         * modules/readlink-tests (Files): Ship new file.
19885         (Depends-on): Add stdbool.
19886         * modules/symlinkat-tests (Files): Use new files.
19887
19888 2009-09-23  Eric Blake  <ebb9@byu.net>
19889
19890         readlink: document portability issue with symlink length
19891         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19892         systems have bogus st_size on symlinks, and mention the
19893         areadlink-with-size module.
19894         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19895         * doc/posix-functions/readlink.texi (readlink): Mention the
19896         areadlink module, and ERANGE failure.
19897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19898         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19899
19900         readlink: fix Solaris 9 bug with trailing slash
19901         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19902         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19903         * doc/posix-functions/readlink.texi (readlink): Document this.
19904         * modules/readlink-tests: New test.
19905         * tests/test-readlink.c: Likewise.
19906
19907         readlink: fix cygwin 1.5.x bug with return type
19908         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19909         * lib/unistd.in.h (readlink): Use ssize_t.
19910         * lib/readlink.c (readlink): Likewise.
19911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19912         * modules/unistd (Makefile.am): Substitute it.
19913         * lib/unistd.in.h (readlink): Declare replacement.
19914         * doc/posix-functions/readlink.texi (readlink): Document this.
19915
19916         symlink: use throughout gnulib
19917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19918         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19919         symlink is not used.
19920         * modules/symlinkat (Depends-on): Add symlink.
19921         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19922         * modules/canonicalize-tests (Depends-on): Likewise.
19923         * modules/lstat-tests (Depends-on): Likewise.
19924         * modules/openat-tests (Depends-on): Likewise.
19925         * modules/remove-tests (Depends-on): Likewise.
19926         * modules/rmdir-tests (Depends-on): Likewise.
19927         * modules/unlink-tests (Depends-on): Likewise.
19928         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19929         * tests/test-canonicalize.c (symlink): Likewise.
19930         * tests/test-fstatat.c (symlink): Likewise.
19931         * tests/test-lstat.c (symlink): Likewise.
19932         * tests/test-remove.c (symlink): Likewise.
19933         * tests/test-rmdir.c (symlink): Likewise.
19934         * tests/test-unlink.c (symlink): Likewise.
19935         * tests/test-unlinkat.c (symlink): Likewise.
19936
19937         symlink: new module, for Solaris 9 bug
19938         * modules/symlink: New file.
19939         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19940         * lib/symlink.c: Likewise.
19941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19942         * modules/unistd (Makefile.am): Substitute them.
19943         * lib/unistd.in.h (symlink): Declare replacement.
19944         * MODULES.html.sh (File system functions): Mention it.
19945         * doc/posix-functions/symlink.texi (symlink): Likewise.
19946         * modules/symlink-tests: New test.
19947         * tests/test-symlink.c: Likewise.
19948
19949 2009-09-23  Bruno Haible  <bruno@clisp.org>
19950
19951         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19952         when needed.
19953         Test case: gnulib-tool --import --with-tests atexit inttypes.
19954         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19955
19956 2009-09-23  Bruno Haible  <bruno@clisp.org>
19957
19958         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19959         subcommand, not in a subshell.
19960
19961 2009-09-22  Eric Blake  <ebb9@byu.net>
19962
19963         unistd: sort replacement declarations
19964         * lib/unistd.in.h: Sort declarations.
19965
19966         open, openat: minor optimization
19967         * lib/open.c (open): If open succeeded, len is non-zero.
19968         * lib/openat.c (rpl_openat): Likewise.
19969
19970         link-follow: ensure correct result
19971         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19972         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19973         distinguish between possible failures.
19974
19975 2009-09-21  Eric Blake  <ebb9@byu.net>
19976
19977         fts: avoid compiler warning
19978         * lib/fts.c (dirent_inode_sort_may_be_useful)
19979         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19980
19981 2009-09-19  Bruno Haible  <bruno@clisp.org>
19982
19983         * lib/progreloc.c (canonicalize_file_name): New declaration.
19984
19985 2009-09-19  Eric Blake  <ebb9@byu.net>
19986
19987         link: fix quoting
19988         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19989
19990         openat: fix openat bugs on Solaris 9
19991         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19992         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19993         * modules/openat (Depends-on): Add open.
19994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19995         * modules/fcntl-h (Makefile.am): Substitute it.
19996         * lib/fcntl.in.h (openat): Declare replacement.
19997         * doc/posix-functions/openat.texi (openat): Document this.
19998
19999         openat: move fstatat and unlinkat into correct files
20000         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20001         compiled.
20002         * lib/openat.c (fstatat, unlinkat): Move...
20003         * lib/fstatat.c (fstatat): ...into correct files.
20004         * lib/unlinkat.c (unlinkat): Likewise.
20005
20006         openat: fix unlinkat bugs on Solaris 9
20007         * lib/unlinkat.c (unlinkat): New file.
20008         * modules/openat (Depends-on): Add unlink.
20009         (Files): Distribute it.
20010         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20011         trailing slash behavior is broken.
20012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20013         * modules/unistd (Makefile.am): Substitute it.
20014         * lib/unistd.in.h (unlinkat): Declare replacement.
20015         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20016
20017         openat: fix fstatat bugs on Solaris 9
20018         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20019         stat.
20020         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20021
20022         test-unlinkat: enhance test, to expose Solaris 9 bug
20023         * tests/test-unlink.c (main): Factor guts...
20024         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20025         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20026         * tests/test-rmdir.c (main): Adjust caller.
20027         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20028         (unlinker): New helper function.
20029         (rmdirat): Enhance check.
20030         * modules/rmdir-tests (Depends-on): Add stdbool.
20031         * modules/unlink-tests (Depends-on): Likewise.
20032         (Files): Add test-unlink.h.
20033         * modules/openat-tests (Files): Likewise.
20034         (Depends-on): Add unlinkdir.
20035
20036         test-fstatat: new test, to expose Solaris 9 bugs
20037         * tests/test-stat.c (main): Factor guts...
20038         * tests/test-stat.h (test_stat_func): ...into new file.
20039         * tests/test-lstat.c (main): Factor guts...
20040         * tests/test-lstat.h (test_lstat_func): ...into new file.
20041         * tests/test-fstatat.c: New file.
20042         * modules/stat-tests (Files): Add test-stat.h.
20043         * modules/lstat-tests (Files): Add test-lstat.h.
20044         (Depends-on): Add stdbool.
20045         * modules/openat-tests (Depends-on): Add pathmax.
20046         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20047         (Makefile.am): Run new test.
20048
20049         remove: new module, for mingw and Solaris 9 bugs
20050         * modules/remove: New file.
20051         * lib/remove.c: Likewise.
20052         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20054         * modules/stdio (Makefile.am): Use them.
20055         * lib/stdio.in.h (remove): Declare replacement.
20056         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20057         * doc/posix-functions/remove.texi (remove): Likewise.
20058         * modules/remove-tests: New test.
20059         * tests/test-remove.c: Likewise.
20060
20061         unlink: new module, for Solaris 9 bug
20062         * modules/unlink: New file.
20063         * lib/unlink.c: Likewise.
20064         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20066         * modules/unistd (Makefile.am): Use them.
20067         * lib/unistd.in.h (stat): Declare replacement.
20068         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20069         * doc/posix-functions/unlink.texi (unlink): Likewise.
20070         * modules/unlink-tests: New test.
20071         * tests/test-unlink.c: Likewise.
20072
20073         lstat: fix Solaris 9 bug
20074         * lib/lstat.c (lstat): Also check for trailing slash on
20075         non-symlink, non-directories.  Use stat module to simplify logic.
20076         * doc/posix-functions/lstat.texi (lstat): Document it.
20077         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20078         (configure.ac): Check for symlink.
20079         * tests/test-lstat.c (main): Add more tests.
20080
20081         stat: add as dependency to other modules
20082         * modules/chown (Depends-on): Add stat.
20083         * modules/euidaccess (Depends-on): Likewise.
20084         * modules/fchdir (Depends-on): Likewise.
20085         * modules/isdir (Depends-on): Likewise.
20086         * modules/link (Depends-on): Likewise.
20087         * modules/lstat (Depends-on): Likewise.
20088         * modules/mkdir-p (Depends-on): Likewise.
20089         * modules/modechange (Depends-on): Likewise.
20090         * modules/open (Depends-on): Likewise.
20091         * modules/readlink (Depends-on): Likewise.
20092         * modules/same (Depends-on): Likewise.
20093
20094         stat: fix Solaris 9 bug
20095         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20096         slash.
20097         * lib/stat.c (rpl_stat): Work around it.
20098         * doc/posix-functions/stat.texi (stat): Update documentation.
20099
20100         stat: new module, for mingw bug
20101         * modules/stat: New file.
20102         * lib/stat.c: Likewise.
20103         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20105         * modules/sys_stat (Makefile.am): Use them.
20106         * lib/sys_stat.in.h (stat): Declare replacement.
20107         * lib/openat.c (fstatat): Deal with lstat and stat being function
20108         macros.
20109         * modules/openat (Depends-on): Add inline.
20110         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20111         * doc/posix-functions/stat.texi (stat): Likewise.
20112         * modules/stat-tests: New test.
20113         * tests/test-stat.c: Likewise.
20114
20115 2009-09-19  Jim Meyering  <meyering@redhat.com>
20116
20117         syntax-check: detect unnecessary inclusion of canonicalize.h
20118         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20119
20120 2009-09-19  Eric Blake  <ebb9@byu.net>
20121
20122         canonicalize-lgpl: adjust clients to use correct header
20123         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20124         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20125         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20126         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20127         * lib/progreloc.c (includes): Likewise.
20128
20129 2009-09-19  Jim Meyering  <meyering@redhat.com>
20130
20131         test-posixtm.c: correct a comment
20132         * tests/test-posixtm.c: Correct first-line comment.
20133         Spotted by Eric Blake.
20134
20135 2009-09-16  Jim Meyering  <meyering@redhat.com>
20136
20137         posixtm-tests: make T const-correct; add a test case
20138         * tests/test-posixtm.c (T): Declare const.
20139         Add a test for -(2^31+1).
20140         Remove useless can-succeed-only-in-2002 test.
20141
20142         posixtm-tests: adjust the sole failing test
20143         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20144         expected output matches what mktime now produces.  Cross-checked via
20145         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20146
20147         posixtm: move #ifdef'd tests into a new module
20148         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20149         * tests/test-posixtm.c: ... this new file.
20150         * modules/posixtm-tests: New module.
20151
20152 2009-09-19  Eric Blake  <ebb9@byu.net>
20153
20154         openat: simplify use of at-func.c
20155         * lib/at-func.c (includes): Include prerequisites here, to
20156         simplify requirements on client files.
20157         * lib/openat-priv.h: Add double-inclusion guard.
20158         * lib/faccessat.c (includes): Simplify.
20159         * lib/fchmodat.c (includes): Likewise.
20160         * lib/fchownat.c (includes): Likewise.
20161         * lib/mkdirat.c (includes): Likewise.
20162         * lib/mkfifoat.c (includes): Likewise.
20163         * lib/symlinkat.c (includes): Likewise.
20164
20165         openat: allow return of fd 0
20166         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20167         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20168         unistd-safer.
20169         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20170         <fcntl.h>; this module does not leak fds.
20171         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20172         must be allowed to return 0, leaving openat_safer to add the
20173         safety.
20174         (openat_permissive): Avoid writing to just-opened fd 2 if
20175         restoring the current directory fails.
20176         * lib/openat-die.c (openat_restore_fail): Add comment.
20177         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20178         (save_cwd): Guarantee safe fd, but without use of open_safer.
20179         * tests/test-openat.c: New test.
20180         * modules/openat-tests (Files, Makefile.am): Distribute and build
20181         new file.
20182
20183         relocatable-prog-wrapper: fix build
20184         * modules/relocatable-prog-wrapper (Files): Update name of
20185         canonicalize m4 file, broken on 2009-09-17.
20186         Reported by emad hajjar <aleppos@hotmail.com>.
20187
20188 2009-09-19  Bruno Haible  <bruno@clisp.org>
20189
20190         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20191         * lib/safe-alloc.c: Likewise.
20192         Reported by Ian Beckwith <ianb@erislabs.net>.
20193
20194 2009-09-18  Bruno Haible  <bruno@clisp.org>
20195
20196         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20197         Reported by <erobles@sensacd.com.mx>.
20198
20199 2009-09-17  Eric Blake  <ebb9@byu.net>
20200
20201         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20202         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20203         slashes when checking if last component is missing.
20204         * tests/test-canonicalize.c (main): Test this.
20205
20206         canonicalize, canonicalize-lgpl: honor // if distinct from /
20207         * modules/canonicalize (Files): Add double-slash-root.m4.
20208         * modules/canonicalize-lgpl (Files): Likewise.
20209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20210         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20211         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20212         fallback definition.
20213         (canonicalize_filename_mode): Use it to protect //.
20214         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20215         (__realpath): Likewise.
20216         * tests/test-canonicalize.c (main): Test this.
20217         * tests/test-canonicalize-lgpl.c (main): Likewise.
20218         * modules/canonicalize-tests (Depends-on): Add same-inode.
20219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20220
20221         canonicalize-lgpl: fix glibc bug with trailing slash
20222         * m4/canonicalize-lgpl.m4: Move contents...
20223         * m4/canonicalize.m4: ...here.
20224         (gl_CANONICALIZE_LGPL): Factor realpath check...
20225         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20226         glibc 2.3.5 bug, fixed 2005-04-27.
20227         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20228         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20229         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20230         * modules/canonicalize-lgpl (Files): Manage file rename.
20231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20232         * modules/stdlib (Makefile.am): Substitute witness.
20233         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20234         is needed.
20235         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20236         replacement is required.
20237         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20238         * doc/glibc-functions/canonicalize_file_name.texi
20239         (canonicalize_file_name): Document this.
20240         * doc/posix-functions/realpath.texi (realpath): Likewise.
20241
20242         canonicalize-lgpl: reject non-directory with trailing slash
20243         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20244         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20245         catches failures in glibc 2.3.5.
20246         * tests/test-canonicalize.c (main): Likewise.
20247
20248         canonicalize-lgpl: use native realpath if it works
20249         * lib/canonicalize-lgpl.c (realpath): Guard with
20250         FUNC_REALPATH_WORKS.
20251         * lib/stdlib.in.h (realpath): Make declaration optional based on
20252         HAVE_REALPATH.
20253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20254         native realpath works.
20255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20256         * modules/stdlib (Makefile.am): Substitute witness.
20257
20258         canonicalize, canonicalize-lgpl: use <stdlib.h>
20259         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20260         (Include): Mention <stdlib.h>.
20261         (configure.ac): Mention functions we provide.
20262         * modules/canonicalize (configure.ac): Likewise.
20263         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20264         realpath if canonicalize_file_name is missing.
20265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20266         * modules/stdlib (Makefile.am): Substitute witnesses.
20267         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20268         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20269         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20270         * NEWS: Document this.
20271         * doc/glibc-functions/canonicalize_file_name.texi
20272         (canonicalize_file_name): Likewise.
20273         * doc/posix-functions/realpath.texi (realpath): Likewise.
20274         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20275
20276         test-canonicalize: consolidate into single C program
20277         * tests/test-canonicalize.sh: Delete; move setup into...
20278         * tests/test-canonicalize.c (main): ...the program, making it
20279         easier to run in debugger.  Add some tests.
20280         * modules/canonicalize-tests (Files): Remove unused file.
20281         (Depends-on): Add progname.
20282         (configure.ac, Makefile.am): Simplify.
20283
20284         test-canonicalize-lgpl: consolidate into single C program
20285         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20286         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20287         easier to run in debugger.  Add some tests.
20288         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20289         (configure.ac, Makefile.am): Simplify.
20290
20291         canonicalize: avoid resolvepath
20292         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20293         unnecessary checks.
20294         * lib/canonicalize.c (includes): Simplify.
20295         (canonicalize_file_name): Drop resolvepath implementation.
20296         * modules/canonicalize (Depends-on): Drop filenamecat.
20297
20298         canonicalize: don't lose errno
20299         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20300         over calls to free.
20301
20302         canonicalize: simplify errno handling
20303         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20304         assignment.
20305
20306         canonicalize, canonicalize-lgpl: update module dependencies
20307         * modules/canonicalize (Depends-on): Add extensions, lstat,
20308         pathmax, stdlib.
20309         (Files): Drop pathmax.h.
20310         (configure.ac): Adjust macro name.
20311         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20312         lstat, stdlib, sys_stat.
20313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20314         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20315         extensions.
20316         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20317         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20318         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20319         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20320         declaration, if available.
20321         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20322         we can rely on the readlink module.
20323         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20324         (includes): Use <unistd.h> unconditionally.
20325
20326 2009-09-17  Eric Blake  <ebb9@byu.net>
20327
20328         maint: make Include sections of modules consistent
20329         * modules/alloca: Use only header name; no need to list #include.
20330         * modules/alloca-opt: Likewise.
20331         * modules/arpa_inet: Likewise.
20332         * modules/canon-host: Likewise.
20333         * modules/configmake: Likewise.
20334         * modules/dirent: Likewise.
20335         * modules/eealloc: Likewise.
20336         * modules/environ: Likewise.
20337         * modules/fchdir: Likewise.
20338         * modules/fcntl: Likewise.
20339         * modules/fcntl-h: Likewise.
20340         * modules/gethrxtime: Likewise.
20341         * modules/gettime: Likewise.
20342         * modules/ignore-value: Likewise.
20343         * modules/inet_ntop: Likewise.
20344         * modules/inet_pton: Likewise.
20345         * modules/inttypes: Likewise.
20346         * modules/isnand-nolibm: Likewise.
20347         * modules/isnanf-nolibm: Likewise.
20348         * modules/mbchar: Likewise.
20349         * modules/mbfile: Likewise.
20350         * modules/mbiter: Likewise.
20351         * modules/mbuiter: Likewise.
20352         * modules/netdb: Likewise.
20353         * modules/netinet_in: Likewise.
20354         * modules/nproc: Likewise.
20355         * modules/pagealign_alloc: Likewise.
20356         * modules/poll: Likewise.
20357         * modules/printf-frexp: Likewise.
20358         * modules/pthread: Likewise.
20359         * modules/putenv: Likewise.
20360         * modules/random_r: Likewise.
20361         * modules/relocatable-prog: Likewise.
20362         * modules/search: Likewise.
20363         * modules/select: Likewise.
20364         * modules/selinux-h: Likewise.
20365         * modules/settime: Likewise.
20366         * modules/signal: Likewise.
20367         * modules/size_max: Likewise.
20368         * modules/socklen: Likewise.
20369         * modules/ssize_t: Likewise.
20370         * modules/stdarg: Likewise.
20371         * modules/stdbool: Likewise.
20372         * modules/stddef: Likewise.
20373         * modules/stdint: Likewise.
20374         * modules/stdio: Likewise.
20375         * modules/stdlib: Likewise.
20376         * modules/string: Likewise.
20377         * modules/strings: Likewise.
20378         * modules/sys_file: Likewise.
20379         * modules/sys_ioctl: Likewise.
20380         * modules/sys_select: Likewise.
20381         * modules/sys_socket: Likewise.
20382         * modules/sys_stat: Likewise.
20383         * modules/sys_time: Likewise.
20384         * modules/sys_times: Likewise.
20385         * modules/sys_utsname: Likewise.
20386         * modules/sys_wait: Likewise.
20387         * modules/sysexits: Likewise.
20388         * modules/time: Likewise.
20389         * modules/times: Likewise.
20390         * modules/tmpfile: Likewise.
20391         * modules/trim: Likewise.
20392         * modules/unistd: Likewise.
20393         * modules/wchar: Likewise.
20394         * modules/wctype: Likewise.
20395
20396 2009-09-17  Bruno Haible  <bruno@clisp.org>
20397
20398         Make getdate.y compile on QNX and NetBSD 5 / i386.
20399         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20400         TIME_T_FITS_IN_LONG_INT.
20401         * lib/getdate.y (long_time_t): New type.
20402         (relative_time): Change type of 'seconds' field to long_time_t.
20403         (get_date): Update types of local variables. Check against overflow
20404         during conversion from long_time_t to time_t.
20405         Reported by Matt Kraai <kraai@ftbfs.org>
20406         and Hasso Tepper <hasso@netbsd.org>.
20407
20408 2009-09-17  Bruno Haible  <bruno@clisp.org>
20409
20410         * modules/COPYING: Update copyright years.
20411         * modules/README: Likeiwse.
20412         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20413         Reported by Ian Beckwith <ianb@erislabs.net>.
20414
20415 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20416
20417         * users.txt: Update references for gnuit package.
20418
20419 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20420
20421         * m4/getdelim.m4: Fix typo in copyright line.
20422
20423 2009-09-17  Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/atoll.c: Use the standard header with GPL copyright.
20426         * lib/argz.in.h: Likewise.
20427         * lib/glob.c: Likewise.
20428         * lib/glob-libc.h: Likewise.
20429         * lib/random_r.c: Likewise.
20430         * lib/siglist.h: Likewise.
20431         * lib/strsignal.c: Likewise.
20432         Reported by Ian Beckwith <ianb@erislabs.net>.
20433
20434 2009-09-17  Eric Blake  <ebb9@byu.net>
20435
20436         rmdir: ensure correct dependency order
20437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20438
20439 2009-09-17  Bruno Haible  <bruno@clisp.org>
20440
20441         Disable assertion that fails on NetBSD 5 / i386.
20442         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20443         Reported by Sam Steingold <sds@gnu.org>
20444         and Hasso Tepper <hasso@netbsd.org>.
20445
20446 2009-09-16  Eric Blake  <ebb9@byu.net>
20447
20448         unlinkdir: port to mingw
20449         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20450         on which no one can unlink a directory.
20451
20452         stdlib: sort witness names
20453         * modules/stdlib (Makefile.am): Sort replacements.
20454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20455         * lib/stdlib.in.h: Likewise.
20456
20457         parse-duration-tests: avoid link failure
20458         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20459         LIBINTL.
20460         Reported by Tom G. Christensen.
20461
20462         openat-tests: ensure unlinkat behaves like rmdir
20463         * tests/test-rmdir.c (main): Factor guts...
20464         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20465         * modules/rmdir-tests (Files): Ship new file.
20466         * modules/openat-tests: New test.
20467         * tests/test-unlinkat.c: Likewise.
20468
20469         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20470         * modules/rmdir-errno (Status, Notice): Now obsolete.
20471
20472         rmdir: work around cygwin 1.5.x and mingw bugs
20473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20474         * lib/rmdir.c (rmdir): Work around it.
20475         * modules/rmdir (Status, Notice): No longer obsolete.
20476         (Files): Add dos.m4.
20477         (Depends-on): Add unistd.
20478         (configure.ac): Set witnesses.
20479         (License): Relax to LGPLv2+.
20480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20481         * modules/unistd (Makefile.am): Substitute witnesses.
20482         * lib/unistd.in.h (rmdir): Declare replacement.
20483         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20484         * modules/rmdir-tests: New tests.
20485         * tests/test-rmdir.c: Likewise.
20486
20487 2009-09-15  Eric Blake  <ebb9@byu.net>
20488
20489         fchdir: improve use of replacement functions
20490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20492         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20493         REPLACE_CLOSEDIR.
20494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20495         * modules/sys_stat (Makefile.am): Substitute correct witness.
20496         * modules/dirent (Makefile.am): Likewise.
20497         * modules/unistd (Makefile.am): Likewise.
20498         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20499         * lib/unistd.in.h (dup): Likewise.
20500         * lib/sys_stat.in.h (fstat): Likewise.
20501
20502         maint: ignore gnulib-tool temp files
20503         * .gitignore: Ignore files created during gnulib-tool --test.
20504
20505 2009-09-13  Jim Meyering  <meyering@redhat.com>
20506
20507         posixtm: don't reject a time that specify "60" as the number of seconds
20508         * lib/posixtm.c (posixtime): The code to reject invalid dates
20509         would also reject a time specified with the .60 suffix.
20510         But POSIX allows that, in order to accommodate leap seconds.
20511         So don't reject it.
20512         (main): Adjust tests accordingly.
20513         * modules/posixtm (Depends-on): Add stpcpy.
20514
20515 2009-09-11  Jim Meyering  <meyering@redhat.com>
20516
20517         announce-gen: include [$release_type] in emitted Subject:
20518         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20519         e.g., [stable] in the emitted Subject: line.
20520
20521 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20522
20523         Remove obsolete macros from several modules.
20524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20525         obsolete Autoconf macros with their modern counterparts.
20526         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20527         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20534         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20535         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20538         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20539         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20540         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20542         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20543         * m4/time_r.m4 (gl_TIME_R): Likewise.
20544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20545         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20546         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20547
20548         Fix copyright header in build-aux scripts.
20549         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20550         recommendation.
20551         * build-aux/ncftpput-ftp: Likewise.
20552         * build-aux/update-copyright: Likewise.
20553
20554 2009-09-09  Eric Blake  <ebb9@byu.net>
20555
20556         test-link: allow Linux choice of errno
20557         * tests/test-link.c (main): Relax test for alternate error.
20558
20559         strndup: fix improper m4 caching
20560         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20561         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20562         (gl_PREREQ_STRNDUP): Delete.
20563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20564         * modules/string (Makefile.am): Substitute it.
20565         * lib/string.in.h (strndup): Modernize prototype.
20566
20567         getcwd: port to mingw
20568         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20569         different from the POSIX assumptions made throughout the getcwd
20570         module; fortunately, the mingw getcwd does not need replacement.
20571         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20572         * modules/getcwd-tests: New test.
20573         * tests/test-getcwd.c: Likewise.
20574
20575         link: fix platform bugs
20576         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20577         * lib/link.c (link): Work around them.  Fix related mingw bug.
20578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20579         * modules/unistd (Makefile.am): Substitute it.
20580         * lib/unistd.in.h (link): Declare replacement.
20581         * doc/posix-functions/link.texi (link): Document this.
20582         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20583
20584         test-link: consolidate into single C program, test more cases
20585         * tests/test-link.sh: Delete.
20586         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20587         at least Cygwin and Solaris.
20588         * modules/link-tests (Files): Remove unused file.
20589         (Depends-on): Add errno, sys_stat.
20590         (Makefile.am): Simplify.
20591
20592 2009-09-08  Bruno Haible  <bruno@clisp.org>
20593
20594         Work around towlower, towupper bug on mingw.
20595         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20596         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20597         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20598         * doc/posix-functions/towupper.texi: Likewise.
20599         Reported by Eric Blake.
20600
20601 2009-09-08  Jim Meyering  <meyering@redhat.com>
20602
20603         build: don't try to run autoheader if we don't use it
20604         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20605         is not used in configure.ac.
20606
20607 2009-09-08  Eric Blake  <ebb9@byu.net>
20608
20609         euidaccess: fix compilation error
20610         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20611
20612         rawmemchr: relax license
20613         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20614         okay.
20615         Reported by Jim Meyering.
20616
20617         mkfifoat: new module
20618         * modules/mkfifoat: New file.
20619         * lib/mkfifoat.c: Likewise.
20620         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20622         * modules/sys_stat (Makefile.am): Use them.
20623         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20624         * MODULES.html.sh (File system functions): Mention module.
20625         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20626         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20627         * modules/mkfifoat-tests: New test.
20628         * tests/test-mkfifoat.c: Likewise.
20629
20630         strchrnul: relax license
20631         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20632         okay.
20633         Reported by Jim Meyering.
20634
20635 2009-09-08  Eric Blake  <ebb9@byu.net>
20636
20637         fstatat: fix compilation on Solaris
20638         * lib/fstatat.c (includes): Add fcntl.h.
20639         Reported by Pádraig Brady.
20640
20641 2009-09-07  Eric Blake  <ebb9@byu.net>
20642
20643         rename: modernize replacement
20644         * modules/rename (Depends-on): Add stdio.
20645         (configure.ac): Declare witness.
20646         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20647         stdio take care of replacement.
20648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20649         * modules/stdio (Makefile.am): Substitute them.
20650         * lib/stdio.in.h (rename): Declare replacement.
20651         * lib/rename.c (includes): Allow cross-compilation to non-windows
20652         machines.
20653         * doc/posix-functions/rename.texi (rename): Improve
20654         documentation.
20655
20656         stdio: sort witness names
20657         * modules/stdio (Makefile.am): Sort replacements.
20658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20659         * lib/stdio.in.h: Likewise.
20660
20661         getcwd: minor cleanups
20662         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20663         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20664
20665         openat: provide more convenience names
20666         * modules/faccessat (configure.ac): Add C witness.
20667         * lib/unistd.in.h (readlinkat): Fix typo.
20668         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20669         convenience wrappers.
20670         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20671         wrappers in syntax checks.
20672
20673 2009-09-06  Eric Blake  <ebb9@byu.net>
20674
20675         doc: fix comments in recent patches
20676         * lib/faccessat.c: Mention correct function.
20677         * lib/fchmodat.c: Likewise.
20678         * lib/fchownat.c: Likewise.
20679         * lib/symlinkat.c: Likewise.
20680         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20681         constants.
20682
20683         faccessat, symlinkat: continue cleanup of previous patch
20684         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20685         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20686         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20688         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20689         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20690         set.
20691
20692 2009-09-06  Bruno Haible  <bruno@clisp.org>
20693
20694         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20695         (fstatat): Declare if GNULIB_FSTATAT is set.
20696         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20697         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20698         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20699         * modules/fcntl-h (Files): Remove m4/openat.m4.
20700         * modules/sys_stat (Files): Remove m4/openat.m4.
20701         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20702         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20703         * modules/unistd (Files): Remove m4/openat.m4.
20704         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20705         GNULIB_OPENAT.
20706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20707         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20709         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20710         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20711         gl_OPENAT_DEFAULTS.
20712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20713         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20714         Don't require gl_OPENAT_DEFAULTS.
20715         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20716         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20717         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20718         (gl_OPENAT_DEFAULTS): Remove macro.
20719
20720 2009-09-06  Bruno Haible  <bruno@clisp.org>
20721
20722         * modules/openat (configure.ac): Remove unneeded witness.
20723
20724 2009-09-06  Bruno Haible  <bruno@clisp.org>
20725
20726         Set errno to ENOSYS when a function is entirely unsupported.
20727         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20728         EOPNOTSUPP.
20729         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20730         * modules/chown (Depends-on): Remove errno.
20731
20732 2009-09-06  Bruno Haible  <bruno@clisp.org>
20733
20734         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20735
20736 2009-09-06  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20739
20740 2009-09-06  Ben Pfaff  <blp@gnu.org>
20741             Bruno Haible  <bruno@clisp.org>
20742
20743         Work around a glibc bug in strtok_r.
20744         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20745         Undefine if UNDEFINE_STRTOK_R is set.
20746         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20748         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20750         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20751         UNDEFINE_STRTOK_R.
20752         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20753
20754 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20755
20756         exclude: minor fix
20757         * lib/exclude.c: Include wctype.h
20758
20759 2009-09-06  Akim Demaille  <demaille@gostai.com>
20760
20761         bootstrap: improve error message
20762         * build-aux/bootstrap (find_tool): Upon failure, report the list
20763         of candidates.
20764         Honor the initial value of the envvar.
20765
20766 2009-09-05  Eric Blake  <ebb9@byu.net>
20767
20768         symlinkat: new module
20769         * modules/symlinkat: New file.
20770         * lib/symlinkat.c: Likewise.
20771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20773         * modules/unistd (Makefile.am): Use them.
20774         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20775         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20776         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20777         * MODULES.html.sh (File system functions): Mention module.
20778         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20779         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20780         * modules/symlinkat-tests: New test.
20781         * tests/test-symlinkat.c: Likewise.
20782
20783         test-openat-safer: add more checks
20784         * tests/test-openat-safer.c (main): Check more code paths.
20785
20786 2009-09-05  Jim Meyering  <meyering@redhat.com>
20787
20788         syntax-check: detect unnecessary inclusion of openat.h
20789         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20790
20791 2009-09-05  Bruno Haible  <bruno@clisp.org>
20792
20793         Support towlower, towupper.
20794         * doc/posix-functions/towlower.texi: Mention module wctype.
20795         * doc/posix-functions/towupper.texi: Likewise.
20796         * lib/wctype.in.h (towlower, towupper): New functions.
20797         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20798         (ASSERT): New macro.
20799         (e): New variable.
20800         (main): Test also towlower, towupper. Test WEOF argument.
20801         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20802
20803 2009-09-05  Bruno Haible  <bruno@clisp.org>
20804
20805         Fix conversion behaviour when the input is invalid.
20806         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20807         mark occurring in first pass of indirect conversion.
20808         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20809         input.
20810         Found by clang's static analyzer.
20811
20812 2009-09-05  Bruno Haible  <bruno@clisp.org>
20813
20814         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20815         where direct conversion is possible.
20816
20817 2009-09-04  Eric Blake  <ebb9@byu.net>
20818
20819         openat: fail with ENOENT on empty name
20820         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20821         buffer.
20822
20823         link-follow: fix logic bug in prior patch
20824         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20825         reversed sense of yes and no in prior patch.  Avoid confusing
20826         compilation failure with desired semantics.
20827
20828         link-follow: accomodate mingw and cross-compilation
20829         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20830         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20831         cross-compilation results to -1, to make linkat easier to
20832         implement when cross-compiling.  Trivially support mingw.
20833         * modules/link-follow (configure.ac): Call new name.
20834         * NEWS: Mention this.
20835
20836 2009-09-03  Eric Blake  <ebb9@byu.net>
20837
20838         faccessat: compile replacement
20839         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20840         needed.
20841
20842         fts: fix compilation error
20843         * lib/fts.c (includes): Re-add "openat.h", for
20844         openat_needs_fchdir.
20845
20846         faccessat: new module
20847         * modules/faccessat: New file.
20848         * lib/faccessat.c: Likewise.
20849         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20851         * modules/unistd (Makefile.am): Use it.
20852         * lib/unistd.in.h (faccessat): Declare it.
20853         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20854         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20855         * MODULES.html.sh (File system functions): Mention it.
20856         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20857         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20858
20859         euidaccess: prefer POSIX over non-standard implementation
20860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20861         * lib/euidaccess.c (euidaccess): Use it if available.
20862
20863         openat: make template easier to use
20864         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20865         AT_FUNC_F2 to be undefined.
20866         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20867         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20868         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20869         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20870         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20871         Likewise.
20872         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20873         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20874         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20875         Likewise.
20876
20877         openat: declare in POSIX headers
20878         * NEWS: Mention this.
20879         * modules/openat (configure.ac): Declare witnesses.
20880         (Depends-on): Add fcntl-h, sys_stat, unistd.
20881         (Include): Mention correct headers.
20882         * modules/fcntl-h (Depends-on): Add link-warning.
20883         (Files): Add openat.m4.
20884         (Makefile.am): Substitute witnesses.
20885         * modules/sys_stat (Files, Makefile.am): Likewise.
20886         * modules/unistd (Files, Makefile.am): Likewise.
20887         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20888         (gl_OPENAT_DEFAULTS): New macro.
20889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20892         (SYS_STAT_H): Remove unused variable.
20893         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20894         * lib/fcntl--.h (includes): Remove unneeded header.
20895         * lib/openat-safer.c (includes): Likewise.
20896         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20897         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20898         appropriate headers.
20899         (__OPENAT_PREFIX): Delete.
20900         * lib/fcntl.in.h (openat): Provide declaration.
20901         (AT_FDCWD): Fix Solaris bug.
20902         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20903         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20904         * lib/fchmodat.c (includes):  Adjust to find declaration.
20905         * lib/fchownat.c (includes): Likewise.
20906         * lib/mkdirat.c (includes): Likewise.
20907         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20908         still visible.
20909
20910 2009-09-02  Eric Blake  <ebb9@byu.net>
20911
20912         errno: use consistently
20913         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20914         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20915         * lib/canonicalize.c (ELOOP): Likewise.
20916         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20917         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20918         * lib/lchown.c (EOPNOTSUPP): Likewise.
20919         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20920         * lib/savewd.c (ESTALE): Likewise.
20921         * lib/settime.c (ENOSYS): Likewise.
20922         * lib/utimens.c (ENOSYS): Likewise.
20923         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20924         * lib/chdir-safer.c (ELOOP): Likewise.
20925         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20926         * modules/c-stack (Depends-on): Add errno.
20927         * modules/canonicalize (Depends-on): Likewise.
20928         * modules/chdir-safer (Depends-on): Likewise.
20929         * modules/fdopendir (Depends-on): Likewise.
20930         * modules/inet_ntop (Depends-on): Likewise.
20931         * modules/inet_pton (Depends-on): Likewise.
20932         * modules/lchown (Depends-on): Likewise.
20933         * modules/openat (Depends-on): Likewise.
20934         * modules/savewd (Depends-on): Likewise.
20935         * modules/settime (Depends-on): Likewise.
20936         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20937
20938         fts: avoid leaking fds
20939         * modules/fts (Depends-on): Add cloexec.
20940         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20941         flag.
20942
20943         fts: make directory fds more robust
20944         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20945         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20946
20947         backupfile, chdir-long, fts, savedir: make safer
20948         * lib/backupfile.c (includes): Use "dirent--.h", since
20949         numbered_backup can write to stderr during readdir.
20950         * lib/savedir.c (includes): Likewise.
20951         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20952         emulation can write to stderr on failure.
20953         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20954         * lib/getcwd.c: Document why opendir_safer is unused.
20955         * lib/glob.c: Likewise.
20956         * lib/scandir.c: Likewise.
20957         * lib/openat-proc.c: Likewise, for open_safer.
20958         * modules/backupfile (Depends-on): Add dirent-safer.
20959         * modules/savedir (Depends-on): Likewise.
20960         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20961         * modules/chdir-long (Depends-on): Add openat-safer.
20962
20963         openat-safer: new module
20964         * modules/openat-safer: New file.
20965         * lib/openat-safer.c: Likewise.
20966         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20967         * lib/fcntl-safer.h (openat_safer): Declare.
20968         * lib/fcntl--.h (openat): Override.
20969         * MODULES.html.sh (File descriptor based I/O): Mention it.
20970         * lib/openat.h: Add double-inclusion guards.
20971         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20972         "fcntl--.h", so we can implement openat.
20973         * modules/openat-safer-tests: New test.
20974         * tests/test-openat-safer.c: New file.
20975
20976         dirent-safer: new module
20977         * modules/dirent-safer: New file.
20978         * lib/dirent--.h: Likewise.
20979         * lib/dirent-safer.h: Likewise.
20980         * lib/opendir-safer.c: Likewise.
20981         * m4/dirent-safer.m4: Likewise.
20982         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20983         * modules/dirent-safer-tests: New test.
20984         * tests/test-dirent-safer.c: New file.
20985         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20986
20987         fdopendir: optimize on mingw
20988         * lib/unistd.in.h (_gl_directory_name): New prototype.
20989         * lib/fchdir.c (_gl_directory_name): Implement it.
20990         (fchdir): Use it to simplify implementation.
20991         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20992         fchdir, when available, to avoid calling [f]chdir().
20993
20994         fdopendir: split into its own module
20995         * lib/openat.c (fdopendir): Move...
20996         * lib/fdopendir.c: ...into new file.
20997         * modules/fdopendir: New module.
20998         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20999         * modules/openat (Depends-on): Add fdopendir.
21000         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21001         fdopendir here.
21002         * modules/savedir (Depends-on): Only need fdopendir, not full
21003         openat.
21004         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21005         * lib/openat.h (fdopendir): Drop prototype.
21006         * lib/dirent.in.h (fdopendir): Provide prototype.
21007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21008         * modules/dirent (Makefile.am): Substitute them.
21009         * MODULES.html.sh (File system functions): Mention it.
21010         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21011         * modules/fdopendir-tests: New file.
21012         * tests/test-fdopendir.c: Likewise.
21013
21014         fchdir: use more consistent macro convention
21015         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21016         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21017         REPLACE_FCHDIR, rather than relying on config.h macros.
21018         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21019         inside a single make-time REPLACE_FCHDIR block, rather than using
21020         the config.h FCHDIR_REPLACEMENT.
21021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21022         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21023         Manage fstat replacement.
21024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21025         REPLACE_FCHDIR.
21026         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21027         (Makefile.am): Substitute REPLACE_FCHDIR.
21028         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21029         FCHDIR_REPLACEMENT.
21030         * lib/dup-safer.c (dup_safer): Likewise.
21031         * lib/dup2.c (rpl_dup2): Likewise.
21032         * lib/dup3.c (rpl_dup3): Likewise.
21033         * lib/open.c (rpl_open): Likewise.
21034
21035         fchdir: simplify error handling, and support dup3
21036         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21037         stdbool, malloc-posix, realloc-posix.
21038         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21039         (ensure_dirs_slot): Return false on allocation failure.
21040         (rpl_dup2): Delete.
21041         (_gl_register_dup): New function.
21042         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21043         (_gl_register_fd): Close fd on allocation failure.
21044         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21045         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21046         prototype.
21047         (rpl_dup2_fchdir): Delete prototype.
21048         * lib/open.c (open): Update caller.
21049         * lib/dup2.c (dup2): Track fchdir metadata.
21050         * lib/dup3.c (dup3): Likewise.
21051         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21053
21054 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21055
21056         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21057         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21058         don't pass arguments to AC_OUTPUT.
21059
21060 2009-09-02  Bruno Haible  <bruno@clisp.org>
21061
21062         * modules/mkdtemp (License): Relicense under LGPLv2+.
21063         Reported by Paolo Bonzini.
21064
21065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21066
21067         Replace uses of obsolete autoconf macros in Jim's modules.
21068         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21069         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21070         can evoke a warning from autoconf when run with -Wobsolete
21071         enabled.  They were declared obsolete for good reasons (see
21072         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21073         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21074         should not continue using the deprecated macros.
21075         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21076         obsolete Autoconf macros with modern counterparts.
21077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21078         * m4/dos.m4 (gl_AC_DOS): Likewise.
21079         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21081         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21082         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21083         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21085         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21086         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21087         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21088         Likewise.
21089         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21091         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21092         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21093         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21095
21096 2009-09-01  Eric Blake  <ebb9@byu.net>
21097
21098         fchdir: fix off-by-one bug in previous patch
21099         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21100         (_gl_unregister_fd): Delete useless if.
21101
21102 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21103
21104         maint.mk: sort the list of syntax-check rules
21105         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21106         easier to get a sense of progress when the rules are run sequentially
21107         and take a long time.
21108
21109 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21110
21111         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21112         * modules/netinet_in: Likewise.
21113         * modules/sys_file: Likewise.
21114         * modules/sys_ioctl: Likewise.
21115         * modules/sys_select: Likewise.
21116         * modules/sys_socket: Likewise.
21117         * modules/sys_stat: Likewise.
21118         * modules/sys_time: Likewise.
21119         * modules/sys_times: Likewise.
21120         * modules/sys_utsname: Likewise.
21121         * modules/sys_wait: Likewise.
21122
21123 2009-09-01  Jim Meyering  <meyering@redhat.com>
21124
21125         fts: help ensure that return values are not ignored
21126         * lib/fts_.h (__GNUC_PREREQ): Define.
21127         (__attribute_warn_unused_result__): Define.
21128         (fts_children, fts_close, fts_open, fts_read): Declare with
21129         __attribute_warn_unused_result__.
21130
21131         fts: fts_close now fails also when closing a dir file descriptor fails
21132         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21133         and propagate to caller, along with errno.
21134
21135         announce-gen: correct formatting in --help output
21136         * build-aux/announce-gen (usage): Move the one-line description in
21137         --help output "up", to where it belongs, just after Usage:.
21138
21139 2009-08-31  Eric Blake  <ebb9@byu.net>
21140
21141         fchdir: port to mingw
21142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21143         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21144         opened, then use a substitute.
21145         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21146         replacement.
21147         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21148         (_gl_register_fd): No need to check stat if open already filters
21149         all directories.
21150         (fchdir): Fix error condition to match POSIX.
21151         * modules/fchdir (Depends-on): Add sys_stat.
21152         * doc/posix-functions/open.texi (open): Document the limitation.
21153         * modules/fchdir-tests: New file.
21154         * tests/test-fchdir.c: Likewise.
21155
21156         canonicalize: allow cross-testing from cygwin to mingw
21157         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21158         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21159         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21160         Likewise.
21161         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21162         target does not support symlinks.
21163         * tests/test-canonicalize-lgpl.sh: Likewise.
21164
21165         chown: avoid compilation warning on mingw
21166         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21167         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21168         mingw.
21169         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21170         * modules/chown (Depends-on): Add errno.
21171
21172 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21173
21174         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21175         command.
21176
21177 2009-08-31  Jim Meyering  <meyering@redhat.com>
21178
21179         canonicalize: remove useless initialization
21180         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21181         initialization of local, "end".
21182
21183 2009-08-30  Bruno Haible  <bruno@clisp.org>
21184
21185         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21186         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21187         ENOSYS.
21188
21189 2009-08-30  Bruno Haible  <bruno@clisp.org>
21190
21191         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21192         /usr/xpg4/bin/tr when it exists.
21193         * tests/test-pipe-filter-gi1.sh: Likewise.
21194
21195 2009-08-30  Bruno Haible  <bruno@clisp.org>
21196
21197         Work around deficient /usr/bin/id program on Solaris.
21198         * tests/test-file-has-acl.sh (ID): New variable.
21199         * tests/test-set-mode-acl.sh (ID): Likewise.
21200         * tests/test-copy-acl.sh (ID): Likewise.
21201         * tests/test-copy-file.sh (ID): Likewise.
21202
21203 2009-08-30  Bruno Haible  <bruno@clisp.org>
21204
21205         New module 'xstriconveh'.
21206         * lib/xstriconveh.h: New file.
21207         * lib/xstriconveh.c: New file.
21208         * modules/xstriconveh: New file.
21209
21210 2009-08-30  Bruno Haible  <bruno@clisp.org>
21211
21212         Make it easier to use mem_cd_iconveh.
21213         * lib/striconveh.h (iconveh_t): New type.
21214         (iconveh_open, iconveh_close): New declarations.
21215         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21216         with a single 'const iconveh_t *' argument.
21217         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21218         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21219         with a single 'const iconveh_t *' argument.
21220         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21221         * tests/test-striconveh.c (main): Update.
21222         * NEWS: Mention the change.
21223
21224 2009-08-30  Bruno Haible  <bruno@clisp.org>
21225
21226         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21227         problem.
21228
21229 2009-08-30  Bruno Haible  <bruno@clisp.org>
21230
21231         Work around iconv_open problem on Solaris.
21232         * lib/iconv_open-solaris.gperf: New file.
21233         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21235         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21236         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21237         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21238         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21239
21240 2009-08-29  Jim Meyering  <meyering@redhat.com>
21241
21242         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21243         * top/maint.mk (cvs-check): Remove target; it was just an alias
21244         to the better-named vc-diff-check.
21245         (maintainer-distcheck): Remove rule.  It was used only from
21246         the (alpha/beta/major) target, and all of its commands but one
21247         were coreutils-specific.
21248         (vc-dist): Remove rule.
21249         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21250         Run vc-diff-check, not vc-dist.
21251         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21252
21253 2009-08-27  Bruno Haible  <bruno@clisp.org>
21254
21255         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21256         of 0.
21257
21258 2009-08-27  Bruno Haible  <bruno@clisp.org>
21259
21260         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21261         compilers.
21262         * doc/func.texi: Document the SunPRO C bug.
21263
21264 2009-08-27  Bruno Haible  <bruno@clisp.org>
21265
21266         Fix link error on Solaris.
21267         * tests/test-parse-duration.c (xstrdup): Remove function.
21268
21269 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21270
21271         ignore-value: handle pointer types, too
21272         * lib/ignore-value.h (__attribute__): Remove definition.
21273         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21274         of a more concise and more-often effective "(void) i" statement.
21275         (ignore_ptr): New function to suppress warnings from functions that
21276         return pointers, and to make it explicit that one function doesn't
21277         handle all cases.
21278
21279 2009-08-25  Bruno Haible  <bruno@clisp.org>
21280
21281         dup2: work around a Linux bug.
21282         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21283         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21284         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21285         Reported by Simon Josefsson.
21286
21287 2009-08-25  Jim Meyering  <meyering@redhat.com>
21288
21289         libguestfs uses gnulib
21290         * users.txt: Add libguestfs.
21291
21292 2009-08-24  Eric Blake  <ebb9@byu.net>
21293
21294         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21295         * lib/pipe2.c (includes): Add binary-io.h.
21296         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21297
21298 2009-08-24  Bruno Haible  <bruno@clisp.org>
21299
21300         Tolerate declared but missing accept4 syscall.
21301         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21302         available.
21303         * lib/sys_socket.in.h (accept4): If the function is already present,
21304         override it.
21305         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21306         * modules/accept4 (Makefile.am): Compile accept4.c always.
21307         Reported by Paolo Bonzini and Eric Blake.
21308
21309 2009-08-23  Bruno Haible  <bruno@clisp.org>
21310
21311         New module 'accept4'.
21312         * lib/sys_socket.in.h (accept4): New declaration.
21313         * lib/accept4.c: New file.
21314         * m4/accept4.m4: New file.
21315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21316         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21317         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21318         HAVE_ACCEPT4.
21319         * modules/accept4: New file.
21320         * doc/glibc-functions/accept4.texi: Mention the new module.
21321
21322 2009-08-24  Jim Meyering  <meyering@redhat.com>
21323
21324         progname: also set global program_invocation_name, when possible
21325         Before this change, a libtool-enabled program that calls glibc's
21326         error function would report the program name as
21327         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21328         * modules/progname (configure.ac): Check for a declaration of
21329         program_invocation_name.
21330         * lib/progname.c:  Include <errno.h>.
21331         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21332         Set program_invocation_name.
21333
21334 2009-08-23  Bruno Haible  <bruno@clisp.org>
21335
21336         * lib/dup3.c: Include <string.h>.
21337
21338 2009-08-23  Bruno Haible  <bruno@clisp.org>
21339
21340         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21341         * lib/pipe2.c (pipe2): Likewise.
21342         Suggested by Eric Blake.
21343
21344 2009-08-23  Bruno Haible  <bruno@clisp.org>
21345
21346         Tolerate declared but missing dup3 syscall.
21347         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21348         * lib/unistd.in.h (dup3): If the function is already present,
21349         override it.
21350         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21351         * modules/dup3 (Makefile.am): Compile dup3.c always.
21352         Reported by Paolo Bonzini.
21353
21354 2009-08-23  Bruno Haible  <bruno@clisp.org>
21355
21356         Tolerate declared but missing pipe2 syscall.
21357         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21358         available.
21359         * lib/unistd.in.h (pipe2): If the function is already present,
21360         override it.
21361         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21362         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21363         Reported by Paolo Bonzini.
21364
21365 2009-08-23  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/pipe2.c (pipe2): Move #ifs inside function.
21368
21369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21370
21371         quotearg: document limitations of quote_these_too
21372         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21373         those limitations are created.
21374         * lib/quotearg.h (set_char_quoting): Document that digits and
21375         letters that are special after backslash are not permitted.
21376         (quotearg_char): Cross-reference set_char_quoting documentation.
21377
21378 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21379
21380         quotearg: implement custom_quoting_style
21381         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21382         right_quote fields.
21383         (set_custom_quoting): New public function.
21384         (quotearg_buffer_restyled): Add left_quote and right_quote
21385         arguments, handle them very much like locale quoting, and update
21386         all uses.
21387         (quotearg_n_custom): New public function.
21388         (quotearg_n_custom_mem): New public function.
21389         (quotearg_custom): New public function.
21390         (quotearg_custom_mem): New public function.
21391         * lib/quotearg.h: Prototype and document new public functions.
21392         (enum quoting_style): For escape_quoting_style and
21393         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21394         ignored even though they're otherwise like c_quoting_style.
21395         Add custom_quoting_style member and document with comparison to
21396         clocale_quoting_style.
21397         * tests/test-quotearg.c (custom_quotes): New array.
21398         (custom_results): New array.
21399         (main): Extend to test custom quoting.
21400
21401 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21402
21403         quotearg: fix right quote escaping when it's in quote_these_too
21404         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21405         quote, be sure to prepend only one backslash.
21406         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21407         (main): Test it.
21408
21409 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21410
21411         quotearg-tests: test escaping of embedded locale quotes
21412         * tests/test-quotearg.c (struct result_strings): Add member for
21413         new input.
21414         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21415         (inputs): Add new input.
21416         (results_g): Add expected results.
21417         (flag_results): Likewise.
21418         (locale_results): Likewise.
21419         (compare_strings): Check those.
21420
21421 2009-08-23  Bruno Haible  <bruno@clisp.org>
21422
21423         Tests for module 'dup3'.
21424         * modules/dup3-tests: New file.
21425         * tests/test-dup3.c: New file.
21426
21427         New module 'dup3'.
21428         * lib/unistd.in.h (dup3): New declaration.
21429         * lib/dup3.c: New file.
21430         * m4/dup3.m4: New file.
21431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21432         HAVE_DUP3.
21433         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21434         * modules/dup3: New file.
21435         * doc/glibc-functions/dup3.texi: Mention the new module.
21436
21437 2009-08-23  Bruno Haible  <bruno@clisp.org>
21438
21439         Tweak the dup2 test.
21440         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21441         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21442         the test file is still empty. Fix argument order of lseek.
21443
21444 2009-08-23  Bruno Haible  <bruno@clisp.org>
21445
21446         Avoid test link errors when the modules getopt-gnu, gettext are used.
21447         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21449
21450 2009-08-23  Bruno Haible  <bruno@clisp.org>
21451
21452         Fix getdtablesize() on mingw.
21453         * lib/getdtablesize.c (getdtablesize): Implement differently.
21454         * lib/unistd.in.h (getdtablesize): Improve comment.
21455
21456 2009-08-23  Bruno Haible  <bruno@clisp.org>
21457
21458         New module 'mkostemp'.
21459         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21460         * lib/stdlib.in.h (mksotemp): New declaration.
21461         * lib/mkostemp.c: New file, from glibc with modifications.
21462         * lib/tempname.h (GT_FILE): Remove outdated comment.
21463         (gen_tempname): Add flags argument.
21464         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21465         (__GT_FILE): Map to 1.
21466         (small_open, large_open): Remove macros.
21467         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21468         * lib/mkstemp.c (mkstemp): Update.
21469         * lib/mkdtemp.c (mkdtemp): Likewise.
21470         * m4/mkostemp.m4: New file.
21471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21472         HAVE_MKOSTEMP.
21473         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21474         HAVE_MKOSTEMP.
21475         * modules/mkostemp: New file, based on modules/mkstemp.
21476         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21477         * NEWS: Mention the change.
21478
21479 2009-08-23  Bruno Haible  <bruno@clisp.org>
21480
21481         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21482         Reported by Eric Blake.
21483
21484 2009-08-23  Bruno Haible  <bruno@clisp.org>
21485
21486         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21487         Reported by Eric Blake.
21488
21489 2009-08-23  Bruno Haible  <bruno@clisp.org>
21490
21491         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21492         * modules/pipe2 (Depends-on): Likewise.
21493
21494 2009-08-23  Eric Blake  <ebb9@byu.net>
21495
21496         fcntl-h: add O_TTY_INIT support
21497         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21498         * tests/test-fcntl-h.c (o): Test it.
21499         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21500
21501         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21502         * modules/fcntl: Move <fcntl.h> header replacement...
21503         * modules/fcntl-h: ...to new name, so as not to collide with
21504         like-named function.
21505         * tests/test-fcntl.c: Rename...
21506         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21507         * modules/fcntl-tests: Rename...
21508         * modules/fcntl-h-tests: ...to this.  Update test file name.
21509         * modules/chdir-long (Depends-on): Update clients.
21510         * modules/chdir-safer (Depends-on): Likewise.
21511         * modules/fcntl-safer (Depends-on): Likewise.
21512         * modules/fts (Depends-on): Likewise.
21513         * modules/mkancesdirs (Depends-on): Likewise.
21514         * modules/mkdir-p (Depends-on): Likewise.
21515         * modules/open (Depends-on): Likewise.
21516         * modules/savewd (Depends-on): Likewise.
21517         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21518         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21519
21520 2009-08-22  Bruno Haible  <bruno@clisp.org>
21521
21522         * modules/binary-io (License): Relicense under LGPL.
21523         * modules/pipe2 (License): Likewise.
21524
21525 2009-08-22  Bruno Haible  <bruno@clisp.org>
21526
21527         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21528         return value.
21529         * lib/pipe-filter-gi.c (filter_init): Likewise.
21530         Reported by Eric Blake.
21531
21532 2009-08-22  Bruno Haible  <bruno@clisp.org>
21533
21534         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21535         * modules/pipe (Depends-on): Add pipe2.
21536
21537 2009-08-22  Bruno Haible  <bruno@clisp.org>
21538
21539         Tests for module 'pipe2'.
21540         * modules/pipe2-tests: New file.
21541         * tests/test-pipe2.c: New file.
21542
21543         New module 'pipe2'.
21544         * lib/unistd.in.h (pipe2): New declaration.
21545         * lib/pipe2.c: New file.
21546         * m4/pipe2.m4: New file.
21547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21548         HAVE_PIPE2.
21549         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21550         * modules/pipe2: New file.
21551         * doc/glibc-functions/pipe2.texi: Mention the new module.
21552
21553 2009-08-22  Bruno Haible  <bruno@clisp.org>
21554
21555         Reference some new glibc functions.
21556         * doc/glibc-functions/accept4.texi: New file.
21557         * doc/glibc-functions/dup3.texi: New file.
21558         * doc/glibc-functions/mkostemp.texi: New file.
21559         * doc/glibc-functions/pipe2.texi: New file.
21560         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21561         (Glibc sys/socket.h): Refer to accept4.
21562         (Glibc unistd.h): Refer to dup3, pipe2.
21563         Reported by Eric Blake.
21564
21565 2009-08-22  Jim Meyering  <meyering@redhat.com>
21566             Bruno Haible  <bruno@clisp.org>
21567
21568         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21569         This makes it so packages using automake-1.11's silent-rules option
21570         can print e.g., a single "GEN    configmake.h" line, rather than
21571         the 30+ statements that perform the job.  If you want to see the
21572         actual commands, you can still run "make V=1".
21573         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21574         so that make output is abbreviated when those variables are defined
21575         appropriately.
21576         * modules/argz: Likewise.
21577         * modules/arpa_inet: Likewise.
21578         * modules/byteswap: Likewise.
21579         * modules/configmake: Likewise.
21580         * modules/dirent: Likewise.
21581         * modules/errno: Likewise.
21582         * modules/fcntl: Likewise.
21583         * modules/float: Likewise.
21584         * modules/fnmatch: Likewise.
21585         * modules/getopt-posix: Likewise.
21586         * modules/glob: Likewise.
21587         * modules/iconv_open: Likewise.
21588         * modules/inttypes: Likewise.
21589         * modules/localcharset: Likewise.
21590         * modules/locale: Likewise.
21591         * modules/math: Likewise.
21592         * modules/netdb: Likewise.
21593         * modules/netinet_in: Likewise.
21594         * modules/poll: Likewise.
21595         * modules/posix_spawnp-tests: Likewise.
21596         * modules/sched: Likewise.
21597         * modules/search: Likewise.
21598         * modules/selinux-h: Likewise.
21599         * modules/signal: Likewise.
21600         * modules/spawn: Likewise.
21601         * modules/stdarg: Likewise.
21602         * modules/stdbool: Likewise.
21603         * modules/stddef: Likewise.
21604         * modules/stdint: Likewise.
21605         * modules/stdio: Likewise.
21606         * modules/stdlib: Likewise.
21607         * modules/string: Likewise.
21608         * modules/strings: Likewise.
21609         * modules/sys_file: Likewise.
21610         * modules/sys_ioctl: Likewise.
21611         * modules/sys_select: Likewise.
21612         * modules/sys_socket: Likewise.
21613         * modules/sys_stat: Likewise.
21614         * modules/sys_time: Likewise.
21615         * modules/sys_times: Likewise.
21616         * modules/sys_utsname: Likewise.
21617         * modules/sys_wait: Likewise.
21618         * modules/sysexits: Likewise.
21619         * modules/time: Likewise.
21620         * modules/unistd: Likewise.
21621         * modules/wchar: Likewise.
21622         * modules/wctype: Likewise.
21623
21624 2009-08-22  Jim Meyering  <meyering@redhat.com>
21625
21626         announce-gen: detect write failure
21627         * build-aux/announce-gen: Add Coda at end.
21628         Remove equivalent-but-more-verbose block at top.
21629
21630 2009-08-19  Akim Demaille  <demaille@gostai.com>
21631
21632         bootstrap: --help to stdout.
21633         * bootstrap (usage): Don't send --help to stderr.
21634         Use a here doc instead of a long string.
21635
21636 2009-08-21  Eric Blake  <ebb9@byu.net>
21637
21638         test-popen-safer: split from test-popen
21639         * tests/test-popen.c (main): Move...
21640         * tests/test-popen.h: ...into new file.
21641         * tests/test-popen-safer2.c: New file.
21642         * modules/popen-tests (Files): Add test-popen.h.
21643         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21644         Suggested by Bruno Haible.
21645
21646         test-fcntl-safer: split from test-open
21647         * tests/test-open.c (main): Move...
21648         * tests/test-open.h: ...into new file.
21649         * tests/test-fcntl-safer.c: New file.
21650         * modules/open-tests (Files): Add test-open.h.
21651         * modules/fcntl-safer-tests: New file.
21652         Suggested by Bruno Haible.
21653
21654         test-fopen-safer: split from test-fopen
21655         * tests/test-fopen.c (main): Move...
21656         * tests/test-fopen.h: ...into new file.
21657         * tests/test-fopen-safer.c: New file.
21658         * modules/fopen-tests (Files): Add test-fopen.h.
21659         * modules/fopen-safer-tests: New file.
21660         Suggested by Bruno Haible.
21661
21662 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21663
21664         popen-safer: test O_CLOEXEC at run-time.
21665         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21666
21667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21668
21669         fcntl: move more flags to the header
21670         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21671         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21672         * lib/fcntl.in.h: Do both things here.
21673
21674 2009-08-21  Jim Meyering  <meyering@redhat.com>
21675
21676         consistently remove $@-t before redirecting to it
21677         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21678         * modules/alloca-opt: Likewise.
21679         * modules/byteswap: Likewise.
21680         * modules/fnmatch: Likewise.
21681         * modules/getopt-posix: Likewise.
21682         * modules/glob: Likewise.
21683         * modules/poll: Likewise.
21684         * modules/posix_spawnp-tests: Likewise.
21685         * modules/sys_socket: Likewise.
21686         * modules/sysexits: Likewise.
21687
21688 2009-08-21  Eric Blake  <ebb9@byu.net>
21689
21690         popen: simplify access to original popen
21691         * lib/popen.c (rpl_popen): No need to worry about popen being a
21692         macro.
21693         Reported by Bruno Haible.
21694
21695 2009-08-20  Eric Blake  <ebb9@byu.net>
21696
21697         build: avoid some compiler warnings
21698         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21699         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21700         type.
21701         (new_exclude_segment, excluded_file_pattern_p)
21702         (excluded_file_name_p): Reduce scope.
21703         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21704         old-style declaration.
21705
21706 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21707
21708         * tests/test-exclude1.sh: Handle Windows EOL.
21709         * tests/test-exclude2.sh: Likewise.
21710         * tests/test-exclude3.sh: Likewise.
21711         * tests/test-exclude4.sh: Likewise.
21712         * tests/test-exclude5.sh: Likewise.
21713         * tests/test-exclude6.sh: Likewise.
21714         * tests/test-exclude7.sh: Likewise.
21715
21716 2009-08-19  Akim Demaille  <demaille@gostai.com>
21717
21718         bootstrap: find sha1sum when named gsha1sum.
21719         * bootstrap (find_tool): New.
21720         ($SHA1SUM): New.
21721         Use it.
21722
21723 2009-08-20  Jim Meyering  <meyering@redhat.com>
21724
21725         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21726         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21727         expression that converts "." in a file name to "\." in the resulting
21728         regexp.  Start with a dummy statement, so that prior shell variable
21729         definitions are expanded portably.  Reported by Simon Josefsson.
21730
21731 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21732
21733         Fix polling for writeability of a screen buffer.
21734         * lib/poll.c: Distinguish input and screen buffers for the
21735         Win32 implementation.
21736         * lib/select.c: Likewise.
21737
21738 2009-08-19  Eric Blake  <ebb9@byu.net>
21739
21740         popen-safer: prevent popen from clobbering std descriptors
21741         * modules/popen-safer: New file.
21742         * lib/popen-safer.c: Likewise.
21743         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21744         * lib/stdio--.h (popen): Provide override.
21745         * lib/stdio-safer.h (popen_safer): Provide declaration.
21746         * tests/test-popen.c (includes): Partially test this.
21747         * modules/popen-safer-tests: New file, for more tests.
21748         * tests/test-popen-safer.c: Likewise.
21749         * MODULES.html.sh (file stream based Input/Output): Mention it.
21750
21751         tests: test some of the *-safer modules
21752         * modules/fopen-safer (Depends-on): Add fopen.
21753         * modules/fcntl-safer (Depends-on): Add fcntl.
21754         * modules/stdlib-safer (Depends-on): Add stdlib.
21755         (configure.ac): Set indicator.
21756         * modules/unistd-safer (configure.ac): Likewise.
21757         * modules/tmpfile-safer (configure.ac): Likewise.
21758         (Depends-on): Add tmpfile.
21759         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21760         active.
21761         * tests/test-fopen.c (includes): Test safer versions when they are
21762         in use.
21763         * tests/test-open.c (includes): Likewise.
21764
21765         popen: fix cygwin 1.5 bug when stdin closed
21766         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21767         * modules/popen: New file.
21768         * modules/popen-tests: Likewise.
21769         * tests/test-popen.c: Likewise.
21770         * m4/popen.m4: Likewise.
21771         * lib/popen.c: Likewise.
21772         * lib/stdio.in.h (popen): New declaration.
21773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21774         * modules/stdio (Makefile.am): Likewise.
21775         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21776
21777 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21778
21779         maint.mk: give full control over update-copyright exclusions
21780         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21781         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21782         (update-copyright): Don't force inclusion of top-level
21783         ChangeLog.  Don't force exclusion of all COPYING files, but make
21784         them the default exclusion instead.
21785
21786 2009-08-16  Bruno Haible  <bruno@clisp.org>
21787
21788         Fix test failures on Solaris 10.
21789         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21790         tests when Solaris iconv() is used.
21791         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21792         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21793         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21794         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21796
21797 2009-08-16  Bruno Haible  <bruno@clisp.org>
21798
21799         Fix test failures on Solaris 10.
21800         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21801         'tr' program and pass it as first argument.
21802         * tests/test-pipe-filter-gi1.sh: Likewise.
21803         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21804         program as first argument.
21805         * tests/test-pipe-filter-gi1.c (main): Likewise.
21806
21807 2009-08-16  Eric Blake  <ebb9@byu.net>
21808
21809         fpurge: fix previous commits
21810         * modules/fpurge (Makefile.am): Make replacement conditional,
21811         partially reverting 2007-04-29 change; missed in previous
21812         attempt.
21813         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21814         is missing.
21815
21816 2009-08-16  Bruno Haible  <bruno@clisp.org>
21817
21818         Clarify fpurge's effect on the file position.
21819         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21820         * tests/test-fpurge.c (main): Make a second pass for checking the file
21821         position.
21822
21823 2009-08-16  Bruno Haible  <bruno@clisp.org>
21824
21825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21826         declaration of fpurge is missing.
21827         * tests/test-fpurge.c (main): Check that the file has not more contents
21828         than expected. Close the file before removing it.
21829
21830 2009-08-15  Eric Blake  <ebb9@byu.net>
21831
21832         fpurge: don't wrap working cygwin implementation
21833         * lib/fpurge.c (fpurge): Fix comment typo.
21834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21835         1.7 to avoid replacement.
21836         * tests/test-fpurge.c (main): Enhance test.
21837
21838 2009-08-15  Eric Blake  <ebb9@byu.net>
21839         and Jim Meyering  <meyering@redhat.com>
21840
21841         test-update-copyright: skip if perl is insufficient
21842         * tests/test-update-copyright.sh: Failure to run maintainer tool
21843         should not cause testsuite failure on cygwin 1.5.
21844
21845 2009-08-14  Eric Blake  <ebb9@byu.net>
21846
21847         doc: mention more functions added in cygwin 1.7.0
21848         * doc/posix-headers/limits.texi (limits.h): Update for recent
21849         cygwin additions.
21850         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21851         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21852         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21853         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21854         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21855
21856 2009-08-14  Eric Blake  <ebb9@byu.net>
21857
21858         maint.mk: simplify update-copyright rule
21859         * top/maint.mk (update-copyright-local): Delete, and document how
21860         to do it in cfg.mk instead.
21861         (update-copyright-exclude-regexp): Delete, and document how to do
21862         it in .x-update-copyright instead.
21863         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21864         exclude ChangeLog.
21865
21866 2009-08-14  Bruno Haible  <bruno@clisp.org>
21867
21868         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21869
21870 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21871
21872         maint.mk: support update-copyright-env
21873         * top/maint.mk (update-copyright-env): Define place-holder.
21874         (update-copyright): Expand $(update-copyright-env) before
21875         invoking update-copyright.
21876
21877 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21878
21879         update-copyright: implement forced reformatting
21880         * build-aux/update-copyright: Implement and document
21881         UPDATE_COPYRIGHT_FORCE.
21882         * tests/test-update-copyright.sh: Test it.
21883
21884 2009-08-14  Eric Blake  <ebb9@byu.net>
21885         and Bruno Haible  <bruno@clisp.org>
21886
21887         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21888         * tests/test-locale.c: Revert previous patch related to NULL.
21889         * tests/test-stdio.c: Likewise.
21890         * tests/test-stdlib.c: Likewise.
21891         * tests/test-string.c: Likewise.
21892         * tests/test-unistd.c: Likewise.
21893         * modules/time-tests (Depends-on): Add verify.
21894         * modules/wchar-tests (Depends-on): Likewise.
21895         * tests/test-time.c: Test for NULL compliance.
21896         * tests/test-wchar.c: Likewise.
21897         * modules/locale (Depends-on): Add stddef.
21898         * modules/stdio (Depends-on): Likewise.
21899         * modules/stdlib (Depends-on): Likewise.
21900         * modules/string (Depends-on): Likewise.
21901         * modules/time (Depends-on): Likewise.
21902         * modules/unistd (Depends-on): Likewise.
21903         * modules/wchar (Depends-on): Likewise.
21904         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21905         * lib/stdlib.in.h (includes): Likewise.
21906         * lib/string.in.h (includes): Likewise.
21907         * lib/time.in.h (includes): Likewise.
21908         * lib/unistd.in.h (includes): Likewise.
21909         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21910         replaced.
21911         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21912         * m4/stddef_h.m4: New file.
21913         * modules/stddef: Likewise.
21914         * lib/stddef.in.h: Likewise.
21915         * modules/stddef-tests: Likewise.
21916         * tests/test-stddef.c: Likewise.
21917         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21918         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21919         * doc/posix-headers/locale.texi (locale.h): Likewise.
21920         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21921         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21922         * doc/posix-headers/string.texi (string.h): Likewise.
21923         * doc/posix-headers/time.texi (time.h): Likewise.
21924         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21925         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21926
21927 2009-08-14  Eric Blake  <ebb9@byu.net>
21928
21929         doc: improve git diff of texinfo files
21930         * .gitattributes: Add rule for *.texi files, with hint on how to
21931         use it.
21932         Copied from m4, and based on a report by Bruno Haible.
21933
21934 2009-08-14  Bruno Haible  <bruno@clisp.org>
21935
21936         Disable multithread support by default on Cygwin 1.5.x for real.
21937         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21938
21939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21940
21941         update-copyright: much ado about intervals
21942         * build-aux/update-copyright: Implement and document
21943         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21944         of copyright year intervals.
21945         Also, document UPDATE_COPYRIGHT_YEAR.
21946         * tests/test-update-copyright.sh: Test it.
21947
21948         update-copyright: convert 2-digit to 4-digit years
21949         * build-aux/update-copyright: Implement and document.
21950         * tests/test-update-copyright.sh: Update.
21951
21952 2009-08-14  Jim Meyering  <meyering@redhat.com>
21953
21954         test-exclude: avoid coreutils "make check" failure
21955         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21956         just as in test-argmatch.c.
21957
21958 2009-08-13  Eric Blake  <ebb9@byu.net>
21959
21960         test-dup2: fix bad assumption
21961         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21962         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21963
21964         test-version-etc: fix CRLF portability issue
21965         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21966         recognize \r.
21967         * tests/test-argp-version-etc-1.sh: Likewise.
21968
21969         getopt: update client modules
21970         * modules/argp (Depends-on): Use getopt-gnu.
21971         * modules/git-merge-changelog (Depends-on): Likewise.
21972         * modules/long-options (Depends-on): Likewise.
21973         * modules/xstrtol (Depends-on): Likewise.
21974
21975 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21976
21977         * tests/test-version-etc.sh: Don't fail on different
21978         project/version.  Don't fail on CRLF differences.  Rewrite to use
21979         multiple -e instead of multiple sed forks, suggested by Eric Blake
21980         <ebb9@byu.net>.
21981         * tests/test-argp-version-etc-1.sh: Likewise.
21982
21983 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21984
21985         * tests/test-version-etc.sh: Don't fail on different
21986         project/version.
21987
21988 2009-08-12  Bruno Haible  <bruno@clisp.org>
21989
21990         Tests for modules 'getopt-posix', 'getopt-gnu'.
21991         * modules/getopt-posix-tests: New file.
21992         * tests/test-getopt.c: New file.
21993         * tests/test-getopt.h: New file.
21994         * tests/test-getopt_long.h: New file.
21995
21996         New modules 'getopt-posix', 'getopt-gnu'.
21997         * modules/getopt-gnu: New file, renamed from modules/getopt.
21998         * modules/getopt-posix: New file.
21999         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22000         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22001         (gl_GETOPT): Remove macro.
22002         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22003         Disable the test against BSD systems that declare optreset. Test
22004         against mingw bug. Test against lack of support of optional arguments
22005         on many platforms.
22006         * doc/glibc-headers/getopt.texi: Update module name and list of
22007         relevant platforms.
22008         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22009         'getopt-gnu' and more portability problems.
22010         * NEWS: Mention the changes.
22011
22012 2009-08-12  Bruno Haible  <bruno@clisp.org>
22013
22014         Ensure that optarg etc. get declared by <unistd.h>.
22015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22016         AC_USE_SYSTEM_EXTENSIONS.
22017         * modules/getopt (Depends-on): Add 'extensions'.
22018
22019 2009-08-12  Bruno Haible  <bruno@clisp.org>
22020
22021         Avoid test link errors.
22022         * modules/pipe-filter-ii-tests (Makefile.am): Define
22023         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22024         * modules/pipe-filter-gi-tests (Makefile.am): Define
22025         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22027
22028 2009-08-12  Bruno Haible  <bruno@clisp.org>
22029
22030         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22031         gl_GETOPT_SUBSTITUTE before.
22032         (gl_GETOPT): Use it.
22033         * m4/argp.m4 (gl_ARGP): Update.
22034         Reported by Sergey Poznyakoff.
22035
22036         * m4/getopt.m4: Reorder macros.
22037         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22038         (gl_GETOPT_SUBSTITUTE): Remove macro.
22039
22040 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22041
22042         Minor improvement in gitlog-to-changelog
22043
22044         * build-aux/gitlog-to-changelog: New option `--format' makes
22045         output format string configurable.
22046
22047 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22048
22049         Optimize exclude: use hash tables for non-wildcard patterns.
22050
22051         * lib/exclude.c: Include hash.h and mbuiter.h
22052         (struct exclude_pattern, exclude_segment): New data types.
22053         (struct exclude): Rewrite.
22054         (fnmatch_pattern_has_wildcards): New function.
22055         (new_exclude_segment, free_exclude_segment): New functions.
22056         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22057         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22058         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22059         * modules/exclude: Depend on hash and mbuiter.
22060
22061         * modules/exclude-tests: New file.
22062         * tests/test-exclude.c: New file.
22063         * tests/test-exclude1.sh: New file.
22064         * tests/test-exclude2.sh: New file.
22065         * tests/test-exclude3.sh: New file.
22066         * tests/test-exclude4.sh: New file.
22067         * tests/test-exclude5.sh: New file.
22068         * tests/test-exclude6.sh: New file.
22069         * tests/test-exclude7.sh: New file.
22070
22071 2009-08-12  Bruno Haible  <bruno@clisp.org>
22072
22073         Ensure that getopt() gets declared by <unistd.h>.
22074         * lib/unistd.in.h: Conditionally include getopt.h.
22075         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22076         Set GNULIB_UNISTD_H_GETOPT.
22077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22078         GNULIB_UNISTD_H_GETOPT.
22079         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22080
22081 2009-08-12  Bruno Haible  <bruno@clisp.org>
22082
22083         Clarify logic.
22084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22085         gl_replace_getopt instead of GETOPT_H.
22086
22087 2009-08-12  Bruno Haible  <bruno@clisp.org>
22088
22089         * m4/getopt.m4: Add comments.
22090
22091 2009-08-12  Bruno Haible  <bruno@clisp.org>
22092
22093         Disable multithread support by default on Cygwin 1.5.x.
22094         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22095         set gl_use_threads=no if not specified otherwise.
22096
22097 2009-08-11  Bruno Haible  <bruno@clisp.org>
22098
22099         Avoid compilation error on NetBSD 5.0.
22100         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22101         * tests/test-stdio.c: Likewise.
22102         * tests/test-stdlib.c: Likewise.
22103         * tests/test-string.c: Likewise.
22104         * tests/test-unistd.c: Likewise.
22105         Reported by Greg Troxel <gdt@ir.bbn.com>
22106         at <https://savannah.gnu.org/support/?106973>.
22107
22108 2009-08-11  Bruno Haible  <bruno@clisp.org>
22109
22110         * modules/dup2-tests (Depends-on): Remove close.
22111
22112         Undo 2009-07-19 commit.
22113         * modules/acl-tests (Depends-on): Remove close.
22114         * modules/binary-io-tests (Depends-on): Likewise.
22115         * modules/closein-tests (Depends-on): Likewise.
22116         * modules/flock-tests (Depends-on): Likewise.
22117         * modules/fsync-tests (Depends-on): Likewise.
22118         * modules/lseek-tests (Depends-on): Likewise.
22119         * modules/pipe-tests (Depends-on): Likewise.
22120         * modules/posix_spawn-tests (Depends-on): Likewise.
22121         * modules/posix_spawnp-tests (Depends-on): Likewise.
22122         * modules/stat-time-tests (Depends-on): Likewise.
22123         * modules/yesno-tests (Depends-on): Likewise.
22124
22125 2009-08-10  Bruno Haible  <bruno@clisp.org>
22126
22127         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22128
22129 2009-08-10  Bruno Haible  <bruno@clisp.org>
22130
22131         Fix a gcc warning.
22132         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22133
22134 2009-08-10  Bruno Haible  <bruno@clisp.org>
22135
22136         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22137         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22138         not only the first time.
22139         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22140         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22141         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22142         is 1, not only the the first time.
22143
22144 2009-08-10  Bruno Haible  <bruno@clisp.org>
22145
22146         Make it possible to use module 'gethostname' without module 'close'.
22147         * lib/unistd.in.h (close): Evoke a link error only if
22148         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22150         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22151         * modules/unistd (Makefile.am): Substitute
22152         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22153         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22154         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22157         * modules/sys_ioctl (Makefile.am): Substitute
22158         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22159         * modules/socket (configure.ac): On native Windows, set
22160         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22162         Reported by Sam Steingold <sds@gnu.org>.
22163
22164 2009-08-10  Bruno Haible  <bruno@clisp.org>
22165
22166         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22167         * modules/ioctl (configure.ac): Likewise.
22168
22169 2009-08-10  Bruno Haible  <bruno@clisp.org>
22170
22171         Avoid collision between gnulib wrapper and libintl wrapper.
22172         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22173         already defined in intl/printf.c.
22174         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22175         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22176
22177 2009-08-09  Bruno Haible  <bruno@clisp.org>
22178
22179         Make <sys/select.h> really self-contained, also on Solaris 10.
22180         * lib/sys_select.in.h: Include <string.h>.
22181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22182         Solaris 10 problem.
22183         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22184         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22185         Reported by Jim Meyering.
22186
22187 2009-08-09  Bruno Haible  <bruno@clisp.org>
22188
22189         Avoid warnings from 'aclocal' that are due to a use of macro name
22190         AM_XGETTEXT_OPTION that is not defined in automake.
22191         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22192         automake.
22193         * modules/error (configure.ac): Likewise.
22194         * modules/propername (configure.ac): Likewise.
22195         * modules/vasprintf (configure.ac): Likewise.
22196         * modules/verror (configure.ac): Likewise.
22197         * modules/xprintf (configure.ac): Likewise.
22198         * modules/xvasprintf (configure.ac): Likewise.
22199
22200 2009-08-08  Bruno Haible  <bruno@clisp.org>
22201
22202         Avoid compilation error in C++ mode.
22203         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22204         Reported by Sam Steingold <sds@gnu.org>.
22205
22206 2009-08-08  Bruno Haible  <bruno@clisp.org>
22207
22208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22209         for the various Unix platforms.
22210         * doc/posix-headers/limits.texi: Update platforms list regarding
22211         HOST_NAME_MAX.
22212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22213
22214 2009-08-07  Jim Meyering  <meyering@redhat.com>
22215
22216         selinux-at: fix typo in a comment
22217         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22218         Spotted by Paolo Bonzini.
22219
22220         selinux-at: remove redundant m4 code, add documentation
22221         * modules/selinux-at (configure.ac): Remove redundant code.
22222         LIB_SELINUX is already set via the dependent module, selinux-h.
22223         (Include): Add quotes around selinux-at.h.
22224         * lib/selinux-at.h: Add documentation.
22225         Reported by Bruno Haible in
22226         http://marc.info/?l=gnulib-bug&m=124958988300749
22227
22228 2009-08-07  Bruno Haible  <bruno@clisp.org>
22229
22230         Avoid link error on MacOS X 10.3 and 10.4.
22231         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22232         on non-ELF systems.
22233         * lib/argp-pv.c (argp_program_version): Likewise.
22234         Reported by Simon Josefsson.
22235
22236 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22237
22238         * tests/test-version-etc.sh: Use $EXEEXT.
22239
22240 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22241
22242         update-copyright: update documentation to point to maint.mk
22243         * build-aux/update-copyright: Here.
22244
22245 2009-08-06  Jim Meyering  <meyering@redhat.com>
22246
22247         maint.mk: support update-copyright-local
22248         * top/maint.mk (update-copyright-local): Define place-holder.
22249         (update-copyright): Depend on $(update-copyright-local).
22250
22251 2009-08-06  Jim Meyering  <meyering@redhat.com>
22252
22253         selinux-at: new module
22254         Initially written for coreutils, this module will soon be
22255         used by findutils, too.
22256         * MODULES.html.sh [Misc]: Add selinux-at.
22257         * lib/selinux-at.h: New file, from coreutils.
22258         * lib/selinux-at.c: Likewise.
22259         * modules/selinux-at: Likewise.
22260         (License): Change from LGPL to GPL, since it depends
22261         on the GPL'd openat module.
22262
22263         doc: update README
22264         * README: Remove references to cogito.
22265         Remove cvs-repo-updating instructions from 2007.
22266         Don't imply that CVS is better if you have limited disk space.
22267
22268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22269
22270         update-copyright: support C-style comments
22271         * build-aux/update-copyright: Implement and document.
22272         * tests/test-update-copyright.sh: Test.
22273
22274 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22275
22276         update-copyright: support omitted "(C)"
22277         * build-aux/update-copyright: Implement and document.  Also,
22278         allow variable whitespace before "(C)".
22279         * tests/test-update-copyright.sh: Test.
22280
22281 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22282
22283         update-copyright: don't trip on non-FSF copyright statements
22284         * build-aux/update-copyright: Fix so that the first correctly
22285         formatted FSF copyright statement is recognized no matter what
22286         appears before it.  Update documentation.
22287         * tests/test-update-copyright.sh: Test that.
22288
22289 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22290
22291         update-copyright: clean up code a little
22292         * build-aux/update-copyright: Append "_re" to the name of any
22293         variable holding a regular expression.
22294         Replace "old" and "new" with "stmt" in variable names.
22295         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22296         handled correctly.
22297         Format code more consistently.
22298
22299 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22300
22301         update-copyright-tests: improve portability
22302         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22303         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22304
22305 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22306
22307         update-copyright: support @copyright{} and &copy;
22308         * build-aux/update-copyright: Implement and document.
22309         * tests/test-update-copyright.sh: Test.
22310
22311 2009-08-04  Jim Meyering  <meyering@redhat.com>
22312
22313         update-copyright-tests: correctly test EOL=\r\n handling
22314         * tests/test-update-copyright.sh: Put \r at the end of some lines
22315         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22316
22317         maint.mk: make update-copyright exclusion list more configurable
22318         * top/maint.mk (update-copyright): Default to excluding COPYING,
22319         but allow an override, in case someone does want to update that file.
22320
22321         maint.mk: don't update copyright date in COPYING
22322         * top/maint.mk (update-copyright): Exclude COPYING.
22323
22324         maint.mk: add a copyright-updating rule
22325         * top/maint.mk (update-copyright): New rule.
22326         Derived from coreutils/Makefile.am.
22327
22328         update-copyright: rename some variables
22329         * build-aux/update-copyright: Rename a few variables for clarity.
22330         Tweak syntax.  List Joel E. Denny as coauthor.
22331
22332 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22333
22334         update-copyright: fix bug for 2-digit last year and add tests
22335         * build-aux/update-copyright: Fix bug.
22336         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22337         specified.
22338         * modules/update-copyright-tests: New
22339         * tests/test-update-copyright.sh: New.
22340
22341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22342
22343         update-copyright: handle leading tabs in line prefix
22344         * build-aux/update-copyright: Count leading tabs as 8 spaces
22345         when computing margin.  This helps with the formatting of
22346         ChangeLogs, for example.
22347         Fix documentation a little.
22348
22349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22350
22351         update-copyright: support EOL=\r\n
22352         * build-aux/update-copyright: Implement that.
22353
22354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22355
22356         update-copyright: automatically format copyright statements
22357         * build-aux/update-copyright: Implement that.
22358         Also, be a little more predictable and safer by always failing
22359         when the full copyright format is not perfectly recognized as an
22360         unbroken whole.  Discussed at
22361         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22362         Rewrite documentation.
22363
22364 2009-08-03  Bruno Haible  <bruno@clisp.org>
22365
22366         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22367
22368 2009-08-02  Bruno Haible  <bruno@clisp.org>
22369
22370         Tests for module 'uname'.
22371         * modules/uname-tests: New file.
22372         * tests/test-uname.c: New file.
22373
22374         New module 'uname'.
22375         * lib/uname.c: New file.
22376         * m4/uname.m4: New file.
22377         * modules/uname: New file.
22378         * doc/posix-functions/uname.texi: Mention the new module.
22379
22380 2009-08-02  Bruno Haible  <bruno@clisp.org>
22381
22382         Tests for module 'sys_utsname'.
22383         * modules/sys_utsname-tests: New file.
22384         * tests/test-sys_utsname.c: New file.
22385
22386         New module 'sys_utsname'.
22387         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22388         * m4/sys_utsname_h.m4: New file.
22389         * modules/sys_utsname: New file.
22390         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22391
22392 2009-08-02  Bruno Haible  <bruno@clisp.org>
22393
22394         Implicitly initialize the sockets library.
22395         * lib/gethostname.c: Include sockets.h.
22396         (rpl_gethostname): Invoke gl_sockets_startup.
22397         * lib/socket.c: Include sockets.h.
22398         (rpl_socket): Invoke gl_sockets_startup.
22399         * modules/gethostname (Depends-on): Add sockets.
22400         * modules/socket (Depends-on): Likewise.
22401         * tests/test-poll.c: Don't include sockets.h.
22402         (main): Don't invoke gl_sockets_startup.
22403         * tests/test-select.c: Don't include sockets.h.
22404         (main): Don't invoke gl_sockets_startup.
22405
22406 2009-08-02  Bruno Haible  <bruno@clisp.org>
22407
22408         Allow multiple calls to gl_sockets_startup.
22409         * lib/sockets.c (initialized_sockets_version): New variable.
22410         (gl_sockets_startup): Do nothing if already called for this or a higher
22411         version.
22412         (gl_sockets_cleanup): Reset initialized_sockets_version.
22413
22414 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22415
22416         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22417         different project/version.
22418
22419 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22420             Bruno Haible  <bruno@clisp.org>
22421
22422         Tests for module 'pipe-filter-gi'.
22423         * modules/pipe-filter-gi-tests: New file.
22424         * tests/test-pipe-filter-gi1.sh: New file.
22425         * tests/test-pipe-filter-gi1.c: New file.
22426         * tests/test-pipe-filter-gi2.sh: New file.
22427         * tests/test-pipe-filter-gi2-main.c: New file.
22428         * tests/test-pipe-filter-gi2-child.c: New file.
22429
22430         New module 'pipe-filter-gi'.
22431         * lib/pipe-filter-gi.c: New file.
22432         * modules/pipe-filter-gi: New file.
22433
22434 2009-08-02  Bruno Haible  <bruno@clisp.org>
22435             Paolo Bonzini  <bonzini@gnu.org>
22436
22437         Tests for module 'pipe-filter-ii'.
22438         * modules/pipe-filter-ii-tests: New file.
22439         * tests/test-pipe-filter-ii1.sh: New file.
22440         * tests/test-pipe-filter-ii1.c: New file.
22441         * tests/test-pipe-filter-ii2.sh: New file.
22442         * tests/test-pipe-filter-ii2-main.c: New file.
22443         * tests/test-pipe-filter-ii2-child.c: New file.
22444
22445         New module 'pipe-filter-ii'.
22446         * lib/pipe-filter.h: New file.
22447         * lib/pipe-filter-ii.c: New file.
22448         * lib/pipe-filter-aux.h: New file.
22449         * modules/pipe-filter-ii: New file.
22450
22451 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22452
22453         * lib/gc-libgcrypt.c: Change copyright to FSF.
22454         * lib/gc-gnulib.c: Likewise.
22455
22456 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22457
22458         * lib/gethostname.c: Include limits.h.
22459
22460 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22461             Bruno Haible  <bruno@clisp.org>
22462
22463         Ensure HOST_NAME_MAX as part of the gethostname module.
22464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22465         define also HOST_NAME_MAX.
22466         * tests/test-gethostname.c: Include <limits.h>.
22467         (main): Check also HOST_NAME_MAX.
22468         * doc/posix-headers/limits.texi: Document the mingw problem.
22469
22470 2009-08-02  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22473         Add comments.
22474
22475 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22476
22477         * lib/gethostname.c: Add Windows wrapper.
22478         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22479         * modules/gethostname: Depend on sys_socket & errno, for also
22480         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22481         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22482
22483 2009-07-31  Jim Meyering  <meyering@redhat.com>
22484
22485         getloadavg: fix symbol name in comment
22486         * lib/getloadavg.c: Correct a typo I introduced when adding
22487         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22488         Matt Kraai spotted the problem.
22489
22490 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22491
22492         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22493         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22494         code also if ! defined N_NAME_POINTER.
22495         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22496         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22497         but the n_name member is a 12-byte array.
22498
22499 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22500
22501         update-copyright: generalize comment handling
22502         * build-aux/update-copyright: Handle copyright statements
22503         within more comment styles.
22504         Document usage.
22505         Report any file with an external copyright holder or parse failure.
22506
22507 2009-07-29  Jim Meyering  <meyering@redhat.com>
22508
22509         mktime: correct setting of REPLACE_MKTIME
22510         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22511
22512         update-copyright: new module
22513         * modules/update-copyright: New file.
22514         * build-aux/update-copyright: New file.
22515         * MODULES.html.sh (maint+release support): Add update-copyright.
22516
22517 2009-07-27  Bruno Haible  <bruno@clisp.org>
22518
22519         Fix compilation error when <ctime> is used and mktime is replaced.
22520         * lib/time.in.h (mktime): New declaration.
22521         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22522         REPLACE_MKTIME instead of defining mktime in config.h.
22523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22524         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22525         Reported by Ross McFarland <rwmcfa1@neces.com>.
22526
22527 2009-07-27  Bruno Haible  <bruno@clisp.org>
22528
22529         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22530         Reported by Matt Kraai <mkraai@beckman.com>.
22531
22532 2009-07-25  Jim Meyering  <meyering@redhat.com>
22533
22534         maint.mk: avoid warnings about missing files
22535         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22536         diagnostic when .prev-version does not exist.
22537         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22538         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22539         nonexistent cfg.mk.
22540         Suggestions from Simon Josefsson.
22541
22542 2009-07-25  Bruno Haible  <bruno@clisp.org>
22543
22544         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22545         defined as macros. Needed on QNX 6.4.1.
22546         Reported by Matt Kraai <mkraai@beckman.com>.
22547
22548 2009-07-23  Jim Meyering  <meyering@redhat.com>
22549
22550         maint.mk: invoke "make dist" with a working value of XZ_OPT
22551         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22552
22553 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22554
22555         Make fseeko.c compile on QNX.
22556         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22557
22558 2009-07-22  Peter Simons  <simons@cryp.to>
22559
22560         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22561         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22562         * lib/md4.h: Likewise.
22563         * lib/md5.h: Likewise.
22564         * lib/sha1.h: Likewise.
22565         * lib/sha256.h: Likewise.
22566         * lib/sha512.h: Likewise.
22567
22568         tests-sha1: don't assign literal string to 'char *' variable
22569         * tests/test-sha1.c (main): Declare locals with "const" to match
22570         attributes of the right hand side.
22571
22572 2009-07-21  Eric Blake  <ebb9@byu.net>
22573
22574         dup2: fix more mingw problems
22575         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22576         fd to itself.
22577         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22578         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22579         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22580         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22581         care of mingw bugs.
22582
22583 2009-07-21  Jim Meyering  <meyering@redhat.com>
22584
22585         vc-list-files: avoid failure when /bin/sh is dash
22586         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22587         On some Debian based systems, /bin/sh is a symlink to dash, and running
22588         this command would omit the "/" following each 'tests' prefix:
22589           dash -x build-aux/vc-list-files -C . tests
22590         That is because bash and dash work differently:
22591           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22592           bash ok
22593           dash odd
22594
22595 2009-07-21  Eric Blake  <ebb9@byu.net>
22596
22597         dup2-tests: test previous patch
22598         * modules/dup2-tests: New file.
22599         * tests/test-dup2.c: Likewise.
22600         * tests/test-open.c (main): Avoid unspecified behavior.
22601         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22602         test.
22603
22604         dup2: work around mingw and cygwin 1.5 bug
22605         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22607         * modules/unistd (Makefile.am): Substitute it.
22608         * lib/unistd.in.h (dup2): Declare the replacement.
22609         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22610         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22611         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22612         * modules/execute (Depends-on): Add dup2.
22613         * modules/fseterr (Depends-on): Likewise.
22614         * modules/pipe (Depends-on): Likewise.
22615         * modules/posix_spawn-internal (Depends-on): Likewise.
22616
22617 2009-07-21  Bruno Haible  <bruno@clisp.org>
22618
22619         * modules/.gitattributes: New file.
22620
22621 2009-07-20  Bruno Haible  <bruno@clisp.org>
22622
22623         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22624         (main): Use it.
22625
22626 2009-07-20  Eric Blake  <ebb9@byu.net>
22627
22628         test-pipe: make a bit more robust.
22629         * tests/test-pipe.c (myerr): Allow error messages regardless of
22630         what we do to stderr.
22631         (test_pipe): Rearrange to avoid deadlock.
22632         (child_main): Try a larger read, to ensure we avoided deadlock.
22633         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22634         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22635         if misused.
22636
22637 2009-07-19  Jim Meyering  <meyering@redhat.com>
22638
22639         fts: avoid false-positive cycle-detection
22640         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22641         for each new command line argument.
22642
22643 2009-07-19  Bruno Haible  <bruno@clisp.org>
22644
22645         Fix build error on mingw with the modules sys_select and unistd.
22646         * modules/acl-tests (Depends-on): Add close.
22647         * modules/binary-io-tests (Depends-on): Likewise.
22648         * modules/closein-tests (Depends-on): Likewise.
22649         * modules/flock-tests (Depends-on): Likewise.
22650         * modules/fsync-tests (Depends-on): Likewise.
22651         * modules/lseek-tests (Depends-on): Likewise.
22652         * modules/pipe-tests (Depends-on): Likewise.
22653         * modules/posix_spawn-tests (Depends-on): Likewise.
22654         * modules/posix_spawnp-tests (Depends-on): Likewise.
22655         * modules/stat-time-tests (Depends-on): Likewise.
22656         * modules/yesno-tests (Depends-on): Likewise.
22657
22658 2009-07-19  Bruno Haible  <bruno@clisp.org>
22659
22660         Unify conditionals.
22661         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22662         macros, not at the compiler macros.
22663         * lib/pipe.c: Likewise.
22664         * lib/execute.c: Likewise.
22665         * lib/spawni.c: Likewise.
22666
22667 2009-07-19  Bruno Haible  <bruno@clisp.org>
22668
22669         Fix handling of closed stdin/stdout/stderr on mingw.
22670         * lib/w32spawn.h: Include unistd.h.
22671         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22672         file descriptor with O_NOINHERIT flag.
22673         (fd_safer_noinherit): New function, based on fd-safer.c.
22674         (dup_safer_noinherit): New function, based on dup-safer.c.
22675         (undup_safer_noinherit): New function.
22676         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22677         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22678         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22679         instead of fd_safer.
22680         * tests/test-pipe.c: Include <windows.h>.
22681         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22682
22683         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22684         from main.
22685         (test_pipe): Pass an extra argument for disambiguation.
22686         (main): Invoke parent_main or child_main.
22687
22688         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22689         consistently.
22690
22691 2009-07-18  Eric Blake  <ebb9@byu.net>
22692
22693         test-pipe: fix mingw build
22694         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22695
22696 2009-07-18  Bruno Haible  <bruno@clisp.org>
22697
22698         * modules/pipe-tests (Makefile.am): Fix typo.
22699
22700 2009-07-18  Eric Blake  <ebb9@byu.net>
22701
22702         error: fix mingw build
22703         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22704         Reported by Bruno Haible.
22705
22706         error: avoid undefined use of stdout
22707         * lib/error.c (error, error_at_line): Check that fd 1 is open
22708         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22709         is handling faults and the close_stdout module wants to report the
22710         detection of closed stdout as an error.
22711
22712 2009-07-17  Eric Blake  <ebb9@byu.net>
22713
22714         pipe: be robust in face of closed fds
22715         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22716         should cause child to misbehave.
22717         * modules/pipe-tests: New module.
22718         * tests/test-pipe.c: New file.
22719         * tests/test-pipe.sh: New file.
22720         Reported by Akim Demaille.
22721
22722 2009-07-14  Bruno Haible  <bruno@clisp.org>
22723
22724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22725         Reported by anonymous kc.
22726
22727 2009-07-07  Jim Meyering  <meyering@redhat.com>
22728
22729         maint.mk: don't look for translatable strings in *.m4 or *.mk
22730         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22731         when searching for translatable strings.
22732
22733 2009-07-05  Jim Meyering  <meyering@redhat.com>
22734
22735         remove superfluous parentheses in STREQ definition
22736         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22737         * lib/getugroups.c (STREQ): Likewise.
22738         * lib/fnmatch.c (STREQ): Likewise.
22739         Spotted by Bruno Haible.
22740
22741 2009-07-04  Jim Meyering  <meyering@redhat.com>
22742
22743         argv-iter: new module
22744         * MODULES.html.sh: Add argv-iter.
22745         * lib/argv-iter.c, lib/argv-iter.h: New files.
22746         * modules/argv-iter: New file.
22747         * modules/argv-iter-tests: New file.
22748         * tests/test-argv-iter.c: Test it.
22749
22750 2009-07-04  Bruno Haible  <bruno@clisp.org>
22751
22752         Fix assertion.
22753         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22754         contains more exact copies of a given entry than file2, leave the extra
22755         copies unpaired rather than aborting.
22756         Reported by Eric Blake.
22757
22758 2009-07-02  Bruno Haible  <bruno@clisp.org>
22759
22760         Speedup git-merge-changelog for git cherry-pick.
22761         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22762         (entries_mapping_get): New function, extracted from compute_mapping.
22763         (entries_mapping_reverse_get): New function.
22764         (compute_mapping): Add a 'full' argument. Return the result in a
22765         'struct entries_mapping'.
22766         (main): Update. Access the mappings through entries_mapping_get.
22767         Reported by Eric Blake.
22768
22769 2009-07-02  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22772         best_i.
22773
22774 2009-07-02  Bruno Haible  <bruno@clisp.org>
22775
22776         Speed up approximate search for matching ChangeLog entries.
22777         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22778         argument. Call fstrcmp_bounded instead of fstrcmp.
22779         (compute_mapping, try_split_merged_entry, main): Update callers.
22780
22781 2009-07-02  Bruno Haible  <bruno@clisp.org>
22782
22783         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22784
22785 2009-06-30  Bruno Haible  <bruno@clisp.org>
22786
22787         Reduce the number of uc_is_cased calls.
22788         * lib/unicase.h (casing_suffix_context_t): Add
22789         'first_char_except_ignorable' field.
22790         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22791         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22792         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22793         Update initializer.
22794         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22795         case-ignorable characters.
22796         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22797         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22798         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22799         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22800         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22801
22802 2009-06-30  Bruno Haible  <bruno@clisp.org>
22803
22804         Tests for module 'unicase/ignorable'.
22805         * modules/unicase/ignorable-tests: New file.
22806         * tests/unicase/test-ignorable.c: New file, generated by
22807         gen-uni-tables.
22808
22809         Tests for module 'unicase/cased'.
22810         * modules/unicase/cased-tests: New file.
22811         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22812         * tests/unicase/test-predicate-part1.h: New file, derived from
22813         tests/unictype/test-predicate-part1.h.
22814         * tests/unicase/test-predicate-part2.h: New file, same as
22815         tests/unictype/test-predicate-part2.h.
22816
22817         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22818         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22819         (output_casing_properties): New function.
22820         (main): Call it.
22821         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22822         * lib/unicase/cased.c: Include unictype/bitmap.h.
22823         (uc_is_cased): Define through a bitmap lookup.
22824         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22825         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22826         (uc_is_case_ignorable): Define through a bitmap lookup.
22827         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22828         lib/unictype/bitmap.h.
22829         (Depends-on): Add inline. Clean up.
22830         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22831         lib/unictype/bitmap.h.
22832         (Depends-on): Add inline. Clean up.
22833         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22834         recognition.
22835         * tests/unicase/test-u16-tolower.c (main): Likewise.
22836         * tests/unicase/test-u32-tolower.c (main): Likewise.
22837
22838 2009-06-30  Bruno Haible  <bruno@clisp.org>
22839
22840         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22841         * lib/unicase/u16-casemap.c: Likewise.
22842         * lib/unicase/u32-casemap.c: Likewise.
22843
22844 2009-06-29  Bruno Haible  <bruno@clisp.org>
22845
22846         Define u32_casefold as a wrapper around u32_ct_casefold.
22847         * lib/unicase/u32-casefold.c: Update.
22848         * modules/unicase/u32-casefold (Depends-on): Add
22849         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22850         unicase/empty-suffix-context. Clean up.
22851
22852         Define u16_casefold as a wrapper around u16_ct_casefold.
22853         * lib/unicase/u16-casefold.c: Update.
22854         * modules/unicase/u16-casefold (Depends-on): Add
22855         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22856         unicase/empty-suffix-context. Clean up.
22857
22858         Define u8_casefold as a wrapper around u8_ct_casefold.
22859         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22860         * lib/unicase/u8-casefold.c: Update.
22861         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22862         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22863
22864         Define u32_totitle as a wrapper around u32_ct_totitle.
22865         * lib/unicase/u32-totitle.c: Update.
22866         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22867         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22868
22869         Define u16_totitle as a wrapper around u16_ct_totitle.
22870         * lib/unicase/u16-totitle.c: Update.
22871         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22872         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22873
22874         Define u8_totitle as a wrapper around u8_ct_totitle.
22875         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22876         functions.
22877         (FUNC): Delegate to U_CT_TOTITLE.
22878         * lib/unicase/u8-totitle.c: Update.
22879         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22880         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22881
22882         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22883         invocation.
22884         * modules/unicase/u32-tolower (Depends-on): Add
22885         unicase/empty-prefix-context, unicase/empty-suffix-context.
22886
22887         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22888         invocation.
22889         * modules/unicase/u16-tolower (Depends-on): Add
22890         unicase/empty-prefix-context, unicase/empty-suffix-context.
22891
22892         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22893         * modules/unicase/u8-tolower (Depends-on): Add
22894         unicase/empty-prefix-context, unicase/empty-suffix-context.
22895
22896         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22897         invocation.
22898         * modules/unicase/u32-toupper (Depends-on): Add
22899         unicase/empty-prefix-context, unicase/empty-suffix-context.
22900
22901         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22902         invocation.
22903         * modules/unicase/u16-toupper (Depends-on): Add
22904         unicase/empty-prefix-context, unicase/empty-suffix-context.
22905
22906         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22907         * modules/unicase/u8-toupper (Depends-on): Add
22908         unicase/empty-prefix-context, unicase/empty-suffix-context.
22909
22910         New module 'unicase/u32-ct-casefold'.
22911         * lib/unicase/u32-ct-casefold.c: New file.
22912         * modules/unicase/u32-ct-casefold: New file.
22913
22914         New module 'unicase/u16-ct-casefold'.
22915         * lib/unicase/u16-ct-casefold.c: New file.
22916         * modules/unicase/u16-ct-casefold: New file.
22917
22918         New module 'unicase/u8-ct-casefold'.
22919         * lib/unicase/u8-ct-casefold.c: New file.
22920         * lib/unicase/u-ct-casefold.h: New file, derived from
22921         lib/unicase/u-casefold.h.
22922         * modules/unicase/u8-ct-casefold: New file.
22923
22924         New module 'unicase/u32-ct-totitle'.
22925         * lib/unicase/u32-ct-totitle.c: New file.
22926         * modules/unicase/u32-ct-totitle: New file.
22927
22928         New module 'unicase/u16-ct-totitle'.
22929         * lib/unicase/u16-ct-totitle.c: New file.
22930         * modules/unicase/u16-ct-totitle: New file.
22931
22932         New module 'unicase/u8-ct-totitle'.
22933         * lib/unicase/u8-ct-totitle.c: New file.
22934         * lib/unicase/u-ct-totitle.h: New file, derived from
22935         lib/unicase/u-totitle.h.
22936         * modules/unicase/u8-ct-totitle: New file.
22937
22938         New module 'unicase/u32-ct-tolower'.
22939         * lib/unicase/u32-ct-tolower.c: New file.
22940         * modules/unicase/u32-ct-tolower: New file.
22941
22942         New module 'unicase/u16-ct-tolower'.
22943         * lib/unicase/u16-ct-tolower.c: New file.
22944         * modules/unicase/u16-ct-tolower: New file.
22945
22946         New module 'unicase/u8-ct-tolower'.
22947         * lib/unicase/u8-ct-tolower.c: New file.
22948         * modules/unicase/u8-ct-tolower: New file.
22949
22950         New module 'unicase/u32-ct-toupper'.
22951         * lib/unicase/u32-ct-toupper.c: New file.
22952         * modules/unicase/u32-ct-toupper: New file.
22953
22954         New module 'unicase/u16-ct-toupper'.
22955         * lib/unicase/u16-ct-toupper.c: New file.
22956         * modules/unicase/u16-ct-toupper: New file.
22957
22958         New module 'unicase/u8-ct-toupper'.
22959         * lib/unicase/u8-ct-toupper.c: New file.
22960         * modules/unicase/u8-ct-toupper: New file.
22961
22962         Add context arguments to u*_casemap functions.
22963         * lib/unicase/unicasemap.h: Include unicase.h.
22964         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22965         suffix_context arguments.
22966         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22967         functions.
22968         (FUNC): Add prefix_context and suffix_context arguments. Use
22969         uc_is_cased and uc_is_case_ignorable.
22970         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22971         * lib/unicase/u16-casemap.c: Likewise.
22972         * lib/unicase/u32-casemap.c: Likewise.
22973         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22974         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22975         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22976         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22977         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22978         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22979
22980         New module 'unicase/u32-suffix-context'.
22981         * lib/unicase/u32-suffix-context.c: New file.
22982         * modules/unicase/u32-suffix-context: New file.
22983
22984         New module 'unicase/u16-suffix-context'.
22985         * lib/unicase/u16-suffix-context.c: New file.
22986         * modules/unicase/u16-suffix-context: New file.
22987
22988         New module 'unicase/u8-suffix-context'.
22989         * lib/unicase/u8-suffix-context.c: New file.
22990         * lib/unicase/u-suffix-context.h: New file.
22991         * modules/unicase/u8-suffix-context: New file.
22992
22993         New module 'unicase/empty-suffix-context'.
22994         * lib/unicase/empty-suffix-context.c: New file.
22995         * modules/unicase/empty-suffix-context: New file.
22996
22997         New module 'unicase/u32-prefix-context'.
22998         * lib/unicase/u32-prefix-context.c: New file.
22999         * modules/unicase/u32-prefix-context: New file.
23000
23001         New module 'unicase/u16-prefix-context'.
23002         * lib/unicase/u16-prefix-context.c: New file.
23003         * modules/unicase/u16-prefix-context: New file.
23004
23005         New module 'unicase/u8-prefix-context'.
23006         * lib/unicase/u8-prefix-context.c: New file.
23007         * lib/unicase/u-prefix-context.h: New file.
23008         * lib/unicase/context.h: New file.
23009         * modules/unicase/u8-prefix-context: New file.
23010
23011         New module 'unicase/empty-prefix-context'.
23012         * lib/unicase/empty-prefix-context.c: New file.
23013         * modules/unicase/empty-prefix-context: New file.
23014
23015         New module 'unicase/ignorable'.
23016         * lib/unicase/ignorable.c: New file.
23017         * modules/unicase/ignorable: New file.
23018
23019         New module 'unicase/cased'.
23020         * lib/unicase/caseprop.h: New file.
23021         * lib/unicase/cased.c: New file.
23022         * modules/unicase/cased: New file.
23023
23024         New functions for case mapping of substrings.
23025         * lib/unicase.h (casing_prefix_context_t): New type.
23026         (unicase_empty_prefix_context): New variable.
23027         (u8_casing_prefix_context, u16_casing_prefix_context,
23028         u32_casing_prefix_context, u8_casing_prefixes_context,
23029         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23030         declarations.
23031         (casing_suffix_context_t): New type.
23032         (unicase_empty_suffix_context): New variable.
23033         (u8_casing_suffix_context, u16_casing_suffix_context,
23034         u32_casing_suffix_context, u8_casing_suffixes_context,
23035         u16_casing_suffixes_context, u32_casing_suffixes_context,
23036         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23037         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23038         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23039         declarations.
23040
23041 2009-06-28  Jim Meyering  <meyering@redhat.com>
23042
23043         boostrap: indent only with spaces
23044         * build-aux/bootstrap: Indent only with spaces, never TABs.
23045
23046         bootstrap: split long lines
23047         * build-aux/bootstrap: Keep line length < 80.
23048
23049         bootstrap: sync from coreutils
23050         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23051         just as autoreconf does.  Verify a list of prerequisite
23052         package-name,version-number pairs if defined in bootstrap.conf.
23053         Refer to README-prereq, if prerequisites are not satisfied.
23054
23055 2009-06-27  Eric Blake  <ebb9@byu.net>
23056
23057         tests: add test for bogus NULL definition
23058         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23059         * tests/test-stdlib.c: Likewise.
23060         * tests/test-string.c: Likewise.
23061         * tests/test-locale.c: Likewise.
23062         * tests/test-unistd.c: Likewise.
23063         * modules/stdio-tests (Depends-on): Add verify.
23064         * modules/stdlib-tests (Depends-on): Likewise.
23065         * modules/string-tests (Depends-on): Likewise.
23066         * modules/locale-tests (Depends-on): Likewise.
23067         * modules/unistd-tests (Depends-on): Likewise.
23068
23069 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23070
23071         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23072         self-explaining comment.
23073         * m4/selinux-selinux-h: Update serial.
23074         (gl_LIBSELINUX): New macro, adding a warning for missing development
23075         packages to code extracted from...
23076         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23077         Add warning for missing development packages here, too.
23078
23079 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23080
23081         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23082
23083 2009-06-25  Eric Blake  <ebb9@byu.net>
23084
23085         version-etc: fix regression
23086         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23087         gcc.
23088         (version_etc): Use it, to catch bugs with trailing NULL.
23089         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23090         (version_etc_va): Fix logic bug.
23091         * modules/version-etc-tests: Add test.
23092         * tests/test-version-etc.c: New file.
23093         * tests/test-version-etc.sh: Likewise.
23094
23095 2009-06-25  Sam Steingold  <sds@gnu.org>
23096
23097         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23098         mbtowc declaration.
23099
23100 2009-06-25  Eric Blake  <ebb9@byu.net>
23101
23102         fpurge: migrate into <stdio.h>
23103         * lib/fpurge.h: Delete...
23104         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23105         * lib/fpurge.c (fpurge): Change declaring header.
23106         * modules/fpurge (Files): Drop deleted file.
23107         (Depends-on): Add stdio.
23108         (configure.ac): Set witness.
23109         * modules/stdio (Makefile.am): Support fpurge macros.
23110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23112         * lib/fflush.c: Update client.
23113         * tests/test-fpurge.c: Likewise.
23114         * NEWS: Mention the change.
23115
23116 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23117
23118         * lib/argp-version-etc.c (program_authors): Add const
23119         qualifier.
23120         * lib/version-etc.c: Fix typos in the comments.
23121         * modules/argp-version-etc: Depends on version-etc.
23122
23123 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23124
23125         argp-version-etc: new module.
23126
23127         * lib/argp-version-etc.c: New file.
23128         * lib/argp-version-etc.h: New file.
23129         * modules/argp-version-etc: New file.
23130         * modules/argp-version-etc-tests: New file.
23131         * tests/test-argp-version-etc.c: New test.
23132         * tests/test-argp-version-etc-1.sh: New test.
23133
23134 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23135
23136         Provide additional interfaces and documentation for version-etc
23137         module.
23138
23139         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23140         interfaces.
23141         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23142         prototypes.
23143
23144 2009-06-24  Bruno Haible  <bruno@clisp.org>
23145
23146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23147         HAVE_LIB${NAME} macro.
23148         Reported by Sam Steingold <sds@gnu.org>.
23149
23150 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23151
23152         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23153         needed.
23154
23155 2009-06-21  Bruno Haible  <bruno@clisp.org>
23156
23157         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23158         work.
23159         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23160         together with LIB${NAME}, LTLIB${NAME}.
23161         Reported by Sam Steingold <sds@gnu.org>.
23162
23163 2009-06-20  Jim Meyering  <meyering@redhat.com>
23164
23165         tests: make sc_require_test_exit_idiom more generic
23166         * top/maint.mk (Exit_witness_file): New overridable variable.
23167         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23168         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23169
23170 2009-06-19  Jim Meyering  <meyering@redhat.com>
23171
23172         hash: reverse order of src/dst parameters in an internal interface
23173         * lib/hash.c (transfer_entries): Reverse order of parameters to
23174         put DST before SRC.  Adjust callers.
23175
23176         tests: test-hash: avoid wholesale duplication
23177         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23178         Instead, use a loop and add a single conditional.
23179
23180         tests: test-hash: allow seed selection via a command line argument
23181         * tests/test-hash.c (get_seed): New function.
23182         (main): Use it.
23183
23184 2009-06-19  Eric Blake  <ebb9@byu.net>
23185
23186         hash: avoid memory leak on allocation failure
23187         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23188         failure.  Factor repeated algorithm...
23189         (transfer_entries): ...into new helper routine.
23190         (hash_delete): React to hash_rehash return value.
23191
23192         hash: reduce memory pressure in hash_rehash no-op case
23193         * lib/hash.c (next_prime): Avoid overflow.
23194         (hash_initialize): Factor bucket size computation...
23195         (compute_bucket_size): ...into new helper function.
23196         (hash_rehash): Use new function and open coding to reduce memory
23197         pressure, and avoid a memory leak in USE_OBSTACK code.
23198         Reported by Jim Meyering.
23199
23200 2009-06-18  Eric Blake  <ebb9@byu.net>
23201
23202         hash: make rotation more obvious
23203         * modules/hash (Depends-on): Add bitrotate and stdint.
23204         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23205         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23206         (SIZE_MAX): Rely on headers for definition.
23207         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23208         (raw_hasher): Use rotr_sz.
23209         Suggested by Jim Meyering.
23210
23211         hash: fix memory leak in last patch
23212         * lib/hash.c (hash_rehash): Avoid memory leak.
23213
23214         hash: avoid no-op rehashing
23215         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23216
23217         hash: provide default callback functions
23218         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23219         (hash_initialize): Use them as defaults.
23220         * tests/test-hash.c (main): Test this.
23221
23222         hash: minor optimization
23223         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23224         when possible.
23225         (hash_initialize): Document this promise.
23226         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23227         * tests/test-hash.c (hash_compare_strings): Test this.
23228
23229 2009-06-18  Bruno Haible  <bruno@clisp.org>
23230
23231         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23232         going to be replaced anyway.
23233
23234 2009-06-18  Bruno Haible  <bruno@clisp.org>
23235
23236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23237         in one place.
23238         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23239         be replaced anyway.
23240
23241 2009-06-18  Eric Blake  <ebb9@byu.net>
23242
23243         hash: check for resize before insertion
23244         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23245         threshold before insertion, so that a pathological hash_rehash
23246         that fills every bucket can still trigger another rehash.
23247
23248 2009-06-18  Jim Meyering  <meyering@redhat.com>
23249
23250         hash-tests: add a loop around the small tests
23251         * tests/test-hash.c (main): Repeat small tests with selected
23252         small initial table sizes.
23253
23254 2009-06-17  Eric Blake  <ebb9@byu.net>
23255
23256         hash: minor cleanups
23257         * lib/hash.h (hash_entry): Make opaque, by moving...
23258         * lib/hash.c (hash_entry): ...here.
23259         (hash_insert): Clarify restrictions on what can be inserted.
23260         (hash_get_next): Clarify when it is safe to remove an element
23261         during traversal.
23262         (check_tuning): Skip verification when tuning is known safe.
23263         (hash_initialize): Clarify restrictions on tuning.
23264
23265 2009-06-17  Jim Meyering  <jim@meyering.net>
23266         and Eric Blake  <ebb9@byu.net>
23267
23268         hash-tests: new module
23269         * modules/hash-tests: New file.
23270         * tests/test-hash.c: New file.
23271
23272 2009-06-17  Eric Blake  <ebb9@byu.net>
23273
23274         strstr-simple: document new module
23275         * MODULES.html.sh: Document new module.
23276
23277         strstr, strcasestr: replace on platforms with broken memchr
23278         * modules/strstr: Split into...
23279         * modules/strstr-simple: ...new module that does not care about
23280         performance, but does care about glibc bug.
23281         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23282         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23283         if platform memchr is broken, per Debian bug 521737.
23284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23285         memchr.
23286         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23287         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23288         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23289         * modules/mountlist (Depends-on): Add strstr-simple.
23290         * modules/gen-uni-tables (Depends-on): Likewise.
23291         * modules/argz (Depends-on): Add strstr.
23292
23293 2009-06-17  Bruno Haible  <bruno@clisp.org>
23294
23295         * modules/posix_spawn-internal (Depends-on): Add errno.
23296
23297 2009-06-17  Bruno Haible  <bruno@clisp.org>
23298
23299         Define missing ESTALE on Interix 3.5.
23300         * lib/errno.in.h (ESTALE): Assign a value if missing.
23301         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23303         missing.
23304         * doc/posix-headers/errno.texi: Mention the Interix bug.
23305         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23306
23307 2009-06-15  Eric Blake  <ebb9@byu.net>
23308
23309         memchr, memchr2: add valgrind exception
23310         * lib/memchr.valgrind: New file.
23311         * lib/memchr2.valgrind: New file.
23312         * modules/memchr (Files): Distribute valgrind file.
23313         * modules/memchr2 (Files): Likewise.
23314
23315         docs: memchr is no longer obsolete
23316         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23317         * lib/string.in.h (memchr): Simplify logic.
23318
23319 2009-06-14  Jim Meyering  <meyering@redhat.com>
23320
23321         link-follow: fix the "checking..." message to not mention trailing slash
23322         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23323         never considered trailing slashes.
23324
23325 2009-06-14  Bruno Haible  <bruno@clisp.org>
23326
23327         * m4/memchr.m4: Mention also the bug on IA-64.
23328         * doc/posix-functions/memchr.texi: Likewise.
23329
23330 2009-06-12  Eric Blake  <ebb9@byu.net>
23331
23332         memchr: detect broken x86_64 and alpha implementations
23333         * modules/memchr-tests (Depends-on): Move mmap detection...
23334         * modules/memchr (Depends-on): ...here.
23335         (configure.ac): Set indicator.
23336         * lib/string.in.h (memchr): Declare replacement.
23337         * modules/string (Makefile.am): Trigger replacement.
23338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23339         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23340         bugs.
23341         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23342         * modules/getpagesize (License): Relax license.
23343
23344 2009-06-11  Bruno Haible  <bruno@clisp.org>
23345
23346         * lib/idpriv.h: Add more references.
23347
23348 2009-06-08  Bruno Haible  <bruno@clisp.org>
23349
23350         Tests for module 'idpriv-droptemp'.
23351         * modules/idpriv-droptemp-tests: New file.
23352         * tests/test-idpriv-droptemp.sh: New file.
23353         * tests/test-idpriv-droptemp.su.sh: New file.
23354         * tests/test-idpriv-droptemp.c: New file.
23355
23356         New module 'idpriv-droptemp'.
23357         * lib/idpriv-droptemp.c: New file.
23358         * modules/idpriv-droptemp: New file.
23359
23360 2009-06-08  Bruno Haible  <bruno@clisp.org>
23361
23362         Tests for module 'idpriv-drop'.
23363         * modules/idpriv-drop-tests: New file.
23364         * tests/test-idpriv-drop.sh: New file.
23365         * tests/test-idpriv-drop.su.sh: New file.
23366         * tests/test-idpriv-drop.c: New file.
23367
23368         New module 'idpriv-drop'.
23369         * lib/idpriv.h: New file.
23370         * lib-idpriv-drop.c: New file.
23371         * m4/idpriv.m4: New file.
23372         * modules/idpriv-drop: New file.
23373
23374 2009-06-08  Bruno Haible  <bruno@clisp.org>
23375
23376         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23383
23384 2009-06-08  Eric Blake  <ebb9@byu.net>
23385
23386         test-strstr: use memory fence, when possible
23387         * tests/test-strstr.c (main): Use memory fence, in order to be
23388         more likely to trigger Debian bug 521737.
23389         * modules/strstr-tests (Files): Pull in additional files.
23390
23391         memchr: no longer obsolete, for wider field testing
23392         * modules/memchr (Status, Notice): Delete, this module is no
23393         longer obsolete.
23394         * modules/vasnprintf (Depends-on): Add memchr.
23395
23396 2009-06-07  Jim Meyering  <meyering@redhat.com>
23397
23398         hash: declare some functions with the warn_unused_result attribute
23399         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23400
23401 2009-06-07  Bruno Haible  <bruno@clisp.org>
23402
23403         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23404         Reported by Eric Blake.
23405
23406 2009-06-06  Eric Blake  <ebb9@byu.net>
23407
23408         test-alignof: fix typo with long double
23409         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23410         compiler error.
23411
23412 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23413
23414         Escape non-texinfo { and }s.
23415         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23416         markup error.
23417
23418 2009-06-04  Jim Meyering  <meyering@redhat.com>
23419
23420         gitlog-to-changelog: don't infloop on an empty commit log
23421         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23422         Reported by Boris Petersen <transacid@centerim.org>.
23423
23424 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23425
23426         version-etc: extend for packagers
23427         Add three new configure options, intended for packagers:
23428           --with-packager="packager name"
23429           --with-packager-version="packager-specific version"
23430           --with-packager-bug-reports="packager bug reporting"
23431         An example with coreutils:
23432           $ ./configure \
23433             --with-packager=Gentoo \
23434             --with-packager-bug-report=http://bugs.gentoo.org/ \
23435             --with-packager-version="patchset 1.6"
23436           $ ./src/ls --version | head -n2
23437           ls (GNU coreutils) 7.1-dirty
23438           Packaged by Gentoo (patchset 1.6)
23439         Note that the bug reporting info via --help doesn't show up because
23440         coreutils uses its own custom emit_bug_reporting_address() implementation
23441         in src/system.h.  If it didn't, it'd look like:
23442           $ ./src/ls --help | tail -n4
23443           Report bugs to <bug-coreutils@gnu.org>.
23444           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23445           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23446           General help using GNU software: <http://www.gnu.org/gethelp/>.
23447         * lib/version-etc.c: Print new information, if provided.
23448         * m4/version-etc.m4: New file.
23449         * modules/version-etc (Files): Add m4/version-etc.m4.
23450         (configure.ac): Add gl_VERSION_ETC.
23451
23452 2009-05-31  Bruno Haible  <bruno@clisp.org>
23453
23454         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23455         and 'int64_t'.
23456         * modules/alignof-tests (Dependencies): Add stdint.
23457         Reported by Eric Blake.
23458
23459 2009-05-31  Bruno Haible  <bruno@clisp.org>
23460
23461         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23462         restriction due to compiler bugs.
23463         Reported by Eric Blake.
23464
23465 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23466             Bruno Haible  <bruno@clisp.org>
23467
23468         Fix test-alignof failure.
23469         * lib/alignof.h (alignof_slot): New macro.
23470         (alignof_type): New macro, with the same semantics as the previous
23471         'alignof'.
23472         (alignof): Alias to alignof_slot.
23473         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23474         check that the results are usable as constant expressions.
23475
23476 2009-05-31  Bruno Haible  <bruno@clisp.org>
23477
23478         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23479         * tests/test-memchr.c (main): Check that memchr does not read past the
23480         first occurrence of the byte.
23481         * tests/test-strstr.c (main): Update comment.
23482         Suggested by Eric Blake.
23483
23484 2009-05-30  Bruno Haible  <bruno@clisp.org>
23485
23486         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23487         detail how to use dumpbin.
23488         Reported by David Byron <dbyron@dbyron.com>.
23489
23490 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23491
23492         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23493
23494 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23495
23496         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23497
23498 2009-05-28  Bruno Haible  <bruno@clisp.org>
23499
23500         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23501         build-aux/ files.
23502
23503 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23504
23505         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23506
23507 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23508
23509         * gnulib-tool (sed_transform_main_lib_file)
23510         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23511         regexps.
23512
23513 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23514
23515         * tests/test-strstr.c: Add another self-test.
23516         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23517         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23518
23519 2009-05-23  Bruno Haible  <bruno@clisp.org>
23520
23521         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23522         change.
23523
23524 2009-05-21  Bruno Haible  <bruno@clisp.org>
23525
23526         Simplify use of mode_t varargs.
23527         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23528         uses 'mode_t' or 'int'.
23529         * lib/openat.c (openat): Likewise.
23530         * lib/open-safer.c (open_safer): Likewise.
23531         * m4/mode_t.m4: New file.
23532         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23533         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23534         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23535         * modules/open (Files): Add m4/mode_t.m4.
23536         * modules/openat (Files): Likewise.
23537         * modules/fcntl-safer (Files): Likewise.
23538         Suggested by Eric Blake.
23539
23540 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23541
23542         * doc/glibc-functions/fallocate.texi: New file.
23543         * doc/gnulib.texi: Include it.
23544
23545 2009-05-21  Eric Blake  <ebb9@byu.net>
23546             Bruno Haible  <bruno@clisp.org>
23547
23548         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23549         invocations.
23550         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23551
23552 2009-05-21  Eric Blake  <ebb9@byu.net>
23553             Bruno Haible  <bruno@clisp.org>
23554
23555         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23556         include_next. Fix of 2008-11-20 commit.
23557         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23558         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23559         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23560         NEXT_MATH_H.
23561         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23562         instead of NEXT_MATH_H.
23563
23564 2009-05-21  Bruno Haible  <bruno@clisp.org>
23565
23566         Avoid redefinition warnings for SIZE_MAX.
23567         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23568         Reported by Simon Josefsson.
23569
23570 2009-05-21  Bruno Haible  <bruno@clisp.org>
23571
23572         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23573         AC_CACHE_VAL.
23574
23575 2009-05-20  Bruno Haible  <bruno@clisp.org>
23576
23577         Make zeroptr.h work on mingw.
23578         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23579         mprotect.
23580         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23581         * modules/memchr2-tests (configure.ac): Likewise.
23582         * modules/memcmp-tests (configure.ac): Likewise.
23583         * modules/memmem-tests (configure.ac): Likewise.
23584         * modules/memrchr-tests (configure.ac): Likewise.
23585         Reported by Simon Josefsson.
23586
23587 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23588
23589         * tests/test-glob.c: Include string.h for strcmp prototype.
23590
23591 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23592
23593         * modules/getdelim (Depends-on): Add explicit stdint, although it
23594         was implicitly already pulled in via realloc-posix.
23595         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23596
23597 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23598
23599         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23600         G. Christensen" <tgc@jupiterrise.com>.
23601         * m4/sys_socket_h.m4: Check for sa_family_t.
23602         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23603         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23604         * tests/test-sys_socket.c: Check that sa_family_t works.
23605
23606 2009-05-18  Eric Blake  <ebb9@byu.net>
23607
23608         maint.mk: allow gnulib_dir in VPATH build
23609         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23610
23611 2009-05-15  Jim Meyering  <meyering@redhat.com>
23612
23613         maint.mk: Give gnulib_dir a default definition.
23614         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23615         Thus, most packages no longer need to specify this variable in cfg.mk
23616
23617 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23618
23619         rename.m4: fix typos that would make non-mingw cross-configure fail
23620         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23621
23622 2009-05-13  Eric Blake  <ebb9@byu.net>
23623
23624         mmap-anon: avoid out-of-order autoconf expansion
23625         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23626         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23627         * modules/memchr-tests (Depends-on): Add extensions.
23628         * modules/memchr2-tests (Depends-on): Add extensions.
23629         * modules/memcmp-tests (Depends-on): Add extensions.
23630         * modules/memmem-tests (Depends-on): Add extensions.
23631         * modules/memrchr-tests (Depends-on): Add extensions.
23632
23633 2009-05-13  Bruno Haible  <bruno@clisp.org>
23634
23635         Make some tests ISO C 99 compliant.
23636         * tests/zerosize-ptr.h: New file.
23637         * tests/test-memchr.c: Include zerosize-ptr.h.
23638         (main): Use a zero-size object pointer instead of NULL.
23639         * tests/test-memchr2.c: Include zerosize-ptr.h.
23640         (main): Use a zero-size object pointer instead of NULL.
23641         * tests/test-memcmp.c: Include zerosize-ptr.h.
23642         (main): Use a zero-size object pointer instead of NULL.
23643         * tests/test-memmem.c: Include zerosize-ptr.h.
23644         (main): Use a zero-size object pointer instead of NULL.
23645         * tests/test-memrchr.c: Include zerosize-ptr.h.
23646         (main): Use a zero-size object pointer instead of NULL.
23647         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23648         m4/mmap-anon.m4.
23649         (Depends-on): Add getpagesize.
23650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23651         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23652         m4/mmap-anon.m4.
23653         (Depends-on): Add getpagesize.
23654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23655         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23656         m4/mmap-anon.m4.
23657         (Depends-on): Add getpagesize.
23658         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23659         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23660         m4/mmap-anon.m4.
23661         (Depends-on): Add getpagesize.
23662         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23663         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23664         m4/mmap-anon.m4.
23665         (Depends-on): Add getpagesize.
23666         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23667
23668 2009-05-12  Bruno Haible  <bruno@clisp.org>
23669
23670         Tests for module 'alignof'.
23671         * modules/alignof-tests: New file.
23672         * tests/test-alignof.c: New file.
23673
23674 2009-05-12  Bruno Haible  <bruno@clisp.org>
23675
23676         Fix alignof macro.
23677         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23678         vendor compilers that are always correct.
23679
23680 2009-05-12  Bruno Haible  <bruno@clisp.org>
23681
23682         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23683         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23684         not whether its fully works.
23685
23686 2009-05-12  Bruno Haible  <bruno@clisp.org>
23687
23688         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23689
23690 2009-05-12  Jim Meyering  <meyering@redhat.com>
23691
23692         * top/maint.mk: Adjust backslash alignment.
23693
23694 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23695
23696         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23697
23698 2009-05-11  Eric Blake  <ebb9@byu.net>
23699
23700         argp: avoid undefined behavior
23701         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23702         macros.
23703
23704 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23705
23706         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23707         user.name to prevent git commit from complaining.
23708
23709 2009-05-10  Bruno Haible  <bruno@clisp.org>
23710
23711         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23712         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23713         it rewrites every file name only once.
23714         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23715
23716 2009-05-08  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23719         instead of 'max'.
23720
23721 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23722
23723         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23724         sockaddr_storage test.
23725
23726 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23727
23728         * modules/sys_socket (Makefile.am): Substitute
23729         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23730         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23731         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23732         * tests/test-sys_socket.c: Check sockaddr_storage.
23733
23734 2009-05-08  Bruno Haible  <bruno@clisp.org>
23735
23736         New module 'alignof'.
23737         * lib/alignof.h: New file.
23738         * modules/alignof: New file.
23739
23740 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23741             Bruno Haible  <bruno@clisp.org>
23742
23743         Fix test-file-has-acl on FreeBSD.
23744         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23745         mask is implicitly added.
23746         * tests/test-file-has-acl.c: Include <signal.h>.
23747         (main): Terminate the test after 5 seconds.
23748         * modules/acl-tests (configure.ac): Check for alarm function.
23749
23750 2009-05-04  Bruno Haible  <bruno@clisp.org>
23751
23752         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23754         * modules/errno (configure.ac): Drop AC_REQUIRE.
23755         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23756         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23757
23758 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23759
23760         * modules/glob-tests: New module.
23761         * tests/test-glob.c: Add.
23762
23763 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23764
23765         * modules/fnmatch-tests: New module.
23766         * tests/test-fnmatch.c: Add.
23767
23768 2009-05-04  Eric Blake  <ebb9@byu.net>
23769
23770         maint: make the new no-submodule-changes rule VPATH-safe
23771         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23772
23773 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23774             Bruno Haible  <bruno@clisp.org>
23775
23776         acl: Fix infinite loop on FreeBSD.
23777         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23778         of return value from acl_get_entry.
23779         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23780         Likewise.
23781
23782 2009-05-03  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/acl-internal.h (acl_entries): Clarify return value.
23785         * lib/acl_entries.c (acl_entries): Likewise.
23786
23787 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23788
23789         Bug fix in acl module.
23790         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23791
23792 2009-05-03  Bruno Haible  <bruno@clisp.org>
23793
23794         Create gperf-generated file in the source dir, not in the build dir.
23795         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23796         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23797         * modules/unicase/locale-language (unicase/locale-languages.h):
23798         Likewise.
23799         * modules/unicase/special-casing (unicase/special-casing-table.h):
23800         Likewise.
23801         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23802         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23803         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23804         Reported by Ralf Wildenhues.
23805
23806 2009-05-03  Bruno Haible  <bruno@clisp.org>
23807
23808         * modules/fnmatch (Description, configure.ac): Taken from
23809         fnmatch-posix.
23810         * modules/fnmatch-posix: Turn into a symbolic reference to the
23811         'fnmatch' module, and deprecate.
23812         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23813
23814 2009-05-03  Bruno Haible  <bruno@clisp.org>
23815
23816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23817         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23818         Reported by Ralf Wildenhues.
23819
23820 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23821
23822         * m4/fnmatch.m4: Fix fnmatch re-define.
23823
23824 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23825
23826         priv-set: new module and tests; adapt write-any-file
23827         * lib/priv-set.c: New file.
23828         * lib/priv-set.h: New file.
23829         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23830         * lib/write-any-file.c: Simplify by using priv-set module.
23831         * m4/priv-set.m4: New file.
23832         * modules/priv-set: New file.
23833         * modules/unlinkdir: Add dependency on priv-set module.
23834         * modules/write-any-file: Likewise.
23835
23836         Tests for module 'priv-set'.
23837         * modules/priv-set-tests: New file.
23838         * tests/test-priv-set.c: New file.
23839
23840 2009-05-03  Jim Meyering  <meyering@redhat.com>
23841             Bruno Haible  <bruno@clisp.org>
23842
23843         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23844         use the converted UTF-8 variant of the name instead.
23845
23846 2009-05-03  Jim Meyering  <meyering@redhat.com>
23847
23848         tests: tighten some getdate tests
23849         * tests/test-getdate.c (main): Tighten tests: require equality,
23850         not just greater than.  Set TZ envvar to UTC0.
23851
23852 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23853
23854         getdate: correctly interpret "next monday" when run on a Monday
23855         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23856         that e.g., "next tues" (when run on a tuesday) results in a date
23857         that is one week in the future, and not today's date.
23858         I.e., add a week when the wday is the same as the current one.
23859         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23860         and earlier by Martin Bernreuther and Jan Minář.
23861         * tests/test-getdate.c (main): Check that "next DAY" is always in
23862         the future and that "last DAY" is always in the past.
23863
23864 2009-05-02  Jim Meyering  <meyering@redhat.com>
23865
23866         build: ensure that a release build fails when a submodule is unclean
23867         * top/maint.mk (no-submodule-changes): New rule.
23868         (alpha beta major): Depend on it.
23869
23870 2009-05-02  Bruno Haible  <bruno@clisp.org>
23871
23872         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23873         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23874         shell variable gl_fnmatch_required to detect which variant is
23875         requested.
23876         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23877         gl_FUNC_FNMATCH_POSIX.
23878         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23879         exclude fnmatch-posix.
23880
23881 2009-05-02  Bruno Haible  <bruno@clisp.org>
23882
23883         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23884         * modules/mbsrtowcs (License): Change to LGPLv2+.
23885         * modules/strnlen1 (License): Likewise.
23886         Reported by Simon Josefsson.
23887
23888 2009-05-02  Bruno Haible  <bruno@clisp.org>
23889
23890         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23891         "cross".
23892         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23893         gnulib-tool was called with option --source-base=lib.
23894
23895 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23896
23897         Use automake *-local hooks without commands, for extensibility.
23898         * modules/localcharset (Makefile.am): Rename install-exec-local
23899         rule to install-exec-localcharset, and make it a prerequisite of
23900         install-exec-local.  Likewise, rename the uninstall-local rule to
23901         uninstall-localcharset, and make it a prerequisite of the former.
23902
23903 2009-05-01  Bruno Haible  <bruno@clisp.org>
23904
23905         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23906         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23907         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23909         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23910         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23911         m4/locale-zh.m4, m4/codeset.m4.
23912
23913         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23914         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23915         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23916         m4/locale-zh.m4.
23917
23918         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23919         REPLACE_WCRTOMB if mbstate_t must be replaced.
23920         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23921         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23922
23923 2009-05-01  Bruno Haible  <bruno@clisp.org>
23924
23925         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23926         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23927         dngettext, dcngettext, textdomain, bindtextdomain,
23928         bind_textdomain_codeset): Undefine before redefining.
23929
23930 2009-04-30  Bruno Haible  <bruno@clisp.org>
23931
23932         Fix bug introduced on 2009-04-25.
23933         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23934         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23935         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23936         is defined.
23937         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23938         is defined.
23939         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23940         is defined.
23941         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23942
23943 2009-04-28  Bruno Haible  <bruno@clisp.org>
23944
23945         Comment tweaks.
23946         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23947         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23948         * lib/unicase.h (u*_casexfrm): Likewise.
23949         Reported by Paolo Bonzini.
23950
23951 2009-04-28  Bruno Haible  <bruno@clisp.org>
23952
23953         Fix a compilation error.
23954         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23955         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23956         Reported by Jim Meyering.
23957
23958 2009-04-27  Bruno Haible  <bruno@clisp.org>
23959
23960         New module 'libunistring'.
23961         * modules/libunistring: New file.
23962         * m4/libunistring.m4: New file.
23963         * MODULES.html.sh (Unicode string functions): Add it.
23964
23965 2009-04-27  Eric Blake  <ebb9@byu.net>
23966
23967         maint.mk: allow package-specific header to provide <config.h>
23968         * top/maint.mk (sc_require_config_h): New variable.
23969         (sc_require_config_h, sc_require_config_h_first): Use it.
23970
23971 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23972
23973         * top/maint.mk (sc_avoid_if_before_free): Except
23974         useless-if-before-free script.
23975
23976 2009-04-27  Eric Blake  <ebb9@byu.net>
23977
23978         maintainer-makefile: depend on all required helper scripts
23979         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23980         useless-if-before-free.
23981         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23982         version, rather than assuming gnulib checkout is available.
23983         Reported by Simen Josefsson.
23984
23985 2009-04-26  Bruno Haible  <bruno@clisp.org>
23986
23987         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23988         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23989         "../" or "..".
23990
23991 2009-04-26  Bruno Haible  <bruno@clisp.org>
23992
23993         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23994         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23995         AC_LIB_HAVE_LINKFLAGS.
23996
23997 2009-04-26  Bruno Haible  <bruno@clisp.org>
23998
23999         Simplify calling convention of u*_conv_from_encoding.
24000         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24001         u32_conv_from_encoding): Expect a resultbuf argument and return the
24002         result directly as a pointer.
24003         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24004         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24005         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24006         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24007         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24008         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24009         Update.
24010         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24011         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24012         * lib/vasnprintf.c (VASNPRINTF): Update.
24013         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24014         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24015         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24016         * NEWS: Mention the change.
24017
24018 2009-04-26  Bruno Haible  <bruno@clisp.org>
24019
24020         Simplify calling convention of u*_conv_to_encoding.
24021         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24022         u32_conv_to_encoding): Expect a resultbuf argument and return the
24023         result directly as a pointer.
24024         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24025         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24026         freeing scaled_offsets if mem_iconveha failed.
24027         * lib/unicase/u-casexfrm.h (FUNC): Update.
24028         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24029         * lib/vasnprintf.c (VASNPRINTF): Update.
24030         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24031         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24032         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24033         * NEWS: Mention the change.
24034
24035 2009-04-26  Bruno Haible  <bruno@clisp.org>
24036
24037         Avoid test failures on AIX and OSF/1.
24038         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24039         malloc(0).
24040         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24041         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24042         Likewise.
24043         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24044         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24045         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24046         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24047         * doc/posix-functions/malloc.texi: Document the portability problem
24048         related to malloc(0).
24049
24050 2009-04-26  Bruno Haible  <bruno@clisp.org>
24051
24052         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24053         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24054         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24055
24056 2009-04-25  Bruno Haible  <bruno@clisp.org>
24057
24058         Avoid link error when creating a namespace clean library.
24059         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24060         as macro with arguments if already defined as an alias.
24061         * lib/signbitf.c (gl_signbitf): Don't undefine.
24062         * lib/signbitd.c (gl_signbitd): Don't undefine.
24063         * lib/signbitl.c (gl_signbitl): Don't undefine.
24064
24065 2009-04-25  Jim Meyering  <meyering@redhat.com>
24066
24067         vc-list-files: fix another quoting bug
24068         * build-aux/vc-list-files: Avoid sed backslash expansion
24069         of pathological directory names.
24070
24071 2009-04-25  Eric Blake  <ebb9@byu.net>
24072
24073         vc-list-files: fix shell quoting error
24074         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24075         timestamp.
24076
24077 2009-04-25  Jim Meyering  <meyering@redhat.com>
24078
24079         vc-list-files: restore lost functionality with subdir argument
24080         * build-aux/vc-list-files: When given a non-"." sub-directory
24081         argument, substitute the $dir/ prefix back onto each resulting name.
24082         Otherwise, coreutils' root_tests check would fail.
24083
24084 2009-04-24  Eric Blake  <ebb9@byu.net>
24085
24086         vc-list-files: ignore git symlinks
24087         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24088         than ls-files, to ignore git symlinks.
24089
24090         maint.mk: import improvements from m4
24091         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24092         (move_if_change): Delete unused macro.
24093         (news-date-check, vc-diff-check): Support VPATH builds.
24094         (announcement): Likewise.  Split --bootstrap-tools list...
24095         (boostrap-tools): ...into separate list, which can be overridden
24096         in cfg.mk.
24097         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24098         requiring dependency on useless-if-before-free module.
24099         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24100         Support VPATH builds.
24101
24102 2009-04-24  Jim Meyering  <meyering@redhat.com>
24103
24104         maint.mk: remove coreutils-specific rules and variables
24105         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24106         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24107         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24108
24109         maint.mk: remove obsolete rule
24110         * top/maint.mk (rel-check): Remove rule.
24111         (WGET, WGETFLAGS): Remove now-unused variables.
24112
24113 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24114
24115         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24116         consistency.
24117
24118         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24119         '$(PATH_SEPARATOR)' instead of ':'.
24120
24121 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24122
24123         * lib/getopt1.c (main): Use 'const' for static array.
24124
24125 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24126
24127         * top/maint.mk: Sync with coreutils.
24128         * NEWS: Explain incompatibilities.
24129
24130 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24131             Bruno Haible  <bruno@clisp.org>
24132
24133         Fix cross-compilation results.
24134         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24135         statement, as third argument of AC_TRY_RUN.
24136         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24137         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24138         Likewise.
24139         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24140         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24141         Likewise.
24142         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24144         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24145
24146 2009-04-20  Bruno Haible  <bruno@clisp.org>
24147
24148         Avoid test failure on mingw.
24149         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24150
24151 2009-04-20  Bruno Haible  <bruno@clisp.org>
24152
24153         Avoid compilation error on mingw.
24154         * modules/localename-tests (Depends-on): Add locale.
24155
24156 2009-04-19  Bruno Haible  <bruno@clisp.org>
24157
24158         Support for building a shared library on Windows platforms.
24159         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24160         (main): Test the presence of UNINORM_NFC here.
24161         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24162         (main): Test the presence of UNINORM_NFD here.
24163         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24164         (main): Test the presence of UNINORM_NFKC here.
24165         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24166         (main): Test the presence of UNINORM_NFKD here.
24167
24168 2009-04-19  Bruno Haible  <bruno@clisp.org>
24169
24170         Avoid a compiler warning.
24171         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24172         Change type of variable 'sequence'.
24173
24174 2009-04-19  Bruno Haible  <bruno@clisp.org>
24175
24176         * modules/configmake (Makefile.am): When the contents of configmake.h
24177         does not change, arrange to preserve its modification time.
24178
24179 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24180
24181         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24182         gettext domain.
24183
24184 2009-04-16  Jim Meyering  <meyering@redhat.com>
24185
24186         useless-if-before-free: improve conversion code
24187         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24188         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24189
24190 2009-04-14  Bruno Haible  <bruno@clisp.org>
24191
24192         * modules/fcntl (Depends-on): Add extensions.
24193         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24194
24195 2009-04-12  Ben Pfaff  <blp@gnu.org>
24196
24197         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24198         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24199
24200 2009-03-20  Ben Pfaff  <blp@gnu.org>
24201
24202         Make rename replace existing destinations on Windows.
24203         * m4/rename.m4: Add test for Mingw.
24204         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24205         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24206         * doc/posix-functions/rename.texi: Document.
24207
24208 2009-04-10  Bruno Haible  <bruno@clisp.org>
24209
24210         New include file "iconveh.h".
24211         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24212         * lib/striconveh.h: Include it.
24213         (enum iconv_ilseq_handler): Remove definition.
24214         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24215         striconveh.h.
24216         * lib/striconveha.c: Include striconveh.h.
24217         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24218         * modules/striconveh (Files): Add lib/iconveh.h.
24219         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24220         lib/striconveh.h.
24221
24222 2009-04-10  Bruno Haible  <bruno@clisp.org>
24223
24224         * lib/uniconv.h: Update comment.
24225
24226 2009-04-10  Bruno Haible  <bruno@clisp.org>
24227
24228         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24229         always.
24230         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24231         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24232         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24233         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24234         "unistring-notinline.h", so that the function gets defined always.
24235         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24236         * lib/unistr/u8-uctomb.c: Likewise.
24237         * lib/unistr/u16-mbtouc.c: Likewise.
24238         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24239         * lib/unistr/u16-uctomb.c: Likewise.
24240         * lib/unistr/u32-mbtouc.c: Likewise.
24241         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24242         * lib/unistr/u32-uctomb.c: Likewise.
24243
24244 2009-04-10  Bruno Haible  <bruno@clisp.org>
24245
24246         Mark 'utime' obsolete.
24247         * modules/utime (Status, Notice): New sections.
24248         Suggested by Jim Meyering.
24249
24250         Fix cross-compile guess for utime test.
24251         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24252         autoconf.
24253         * doc/posix-functions/utime.texi: Give more precisions.
24254         Reported by Jan <ipif@ymail.com>.
24255
24256 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24257
24258         filevercmp: correct today's change
24259         * lib/filevercmp.c: Also handle coreutils' test inputs.
24260         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24261
24262         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24263         for reporting it.
24264         * lib/filevercmp.c: Special handle for "", "." and "..".
24265         * tests/test-filevercmp.c: Enlarge the set suite.
24266
24267 2009-04-07  Jim Meyering  <meyering@redhat.com>
24268
24269         useless-if-before-free: show how to remove braced useless free, too
24270         * build-aux/useless-if-before-free: still only in a comment, though.
24271
24272 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24273
24274         maint.mk: import changes to syntax-check macros from coreutils
24275         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24276         Use them in the relevant macros.
24277
24278 2009-04-06  Bruno Haible  <bruno@clisp.org>
24279
24280         Fix unportable use of bit-fields.
24281         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24282         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24283         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24284
24285 2009-04-06  Bruno Haible  <bruno@clisp.org>
24286
24287         Avoid test failures on AIX and OSF/1.
24288         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24289         that malloc(0) = NULL.
24290         * tests/unicase/test-u8-tolower.c (check): Likewise.
24291         * tests/unicase/test-u8-totitle.c (check): Likewise.
24292         * tests/unicase/test-u8-toupper.c (check): Likewise.
24293         * tests/unicase/test-u16-casefold.c (check): Likewise.
24294         * tests/unicase/test-u16-tolower.c (check): Likewise.
24295         * tests/unicase/test-u16-totitle.c (check): Likewise.
24296         * tests/unicase/test-u16-toupper.c (check): Likewise.
24297         * tests/unicase/test-u32-casefold.c (check): Likewise.
24298         * tests/unicase/test-u32-tolower.c (check): Likewise.
24299         * tests/unicase/test-u32-totitle.c (check): Likewise.
24300         * tests/unicase/test-u32-toupper.c (check): Likewise.
24301         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24302         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24303         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24304         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24305         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24306         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24307         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24308         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24309         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24310         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24311         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24312         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24313
24314 2009-04-05  Bruno Haible  <bruno@clisp.org>
24315
24316         Work around an autoconf limitation.
24317         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24318         comment line if it would be longer than 3 KB.
24319
24320 2009-04-05  Bruno Haible  <bruno@clisp.org>
24321
24322         Avoid test failure with libiconv-1.13.
24323         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24324         of the expected test results.
24325
24326 2009-04-05  Bruno Haible  <bruno@clisp.org>
24327
24328         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24329         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24330         that it should be installed.
24331
24332 2009-04-05  Bruno Haible  <bruno@clisp.org>
24333
24334         * gnulib-tool: New option --copy-file.
24335         (func_usage): Document it.
24336         (func_dest_tmpfilename): Moved out of func_import.
24337         (func_add_file, func_update_file): New functions, extracted from
24338         func_import.
24339         (func_import): Update.
24340
24341 2009-04-05  Karl Berry  <karl@gnu.org>
24342
24343         * README: prominently mention gnulib-tool.
24344         Rearrange sections so getting the code is near the top.
24345
24346 2009-04-05  Bruno Haible  <bruno@clisp.org>
24347
24348         * lib/unicase.h: Mention u*_cmp2.
24349         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24350         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24351         * lib/unicase/ulc-casecmp.c: Likewise.
24352         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24353         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24354         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24355         unistr/u8-cmp.
24356         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24357         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24358         unistr/u16-cmp.
24359         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24360         unistr/u32-cmp.
24361
24362         * lib/uninorm.h: Mention u*_cmp2.
24363         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24364         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24365         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24366         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24367         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24368         unistr/u8-cmp.
24369         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24370         unistr/u16-cmp.
24371         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24372         unistr/u32-cmp.
24373
24374         New module 'unistr/u32-cmp2'.
24375         * lib/unistr/u32-cmp2.c: New file.
24376         * modules/unistr/u32-cmp2: New file.
24377
24378         New module 'unistr/u16-cmp2'.
24379         * lib/unistr/u16-cmp2.c: New file.
24380         * modules/unistr/u16-cmp2: New file.
24381
24382         New module 'unistr/u8-cmp2'.
24383         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24384         * lib/unistr/u8-cmp2.c: New file.
24385         * lib/unistr/u-cmp2.h: New file.
24386         * modules/unistr/u8-cmp2: New file.
24387
24388 2009-04-05  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/unictype.h (uc_property_is_valid): New macro.
24391         * tests/unictype/test-pr_byname.c (main): Use it.
24392
24393         * lib/unistr.h: Doc fixes.
24394         * lib/uniconv.h: Doc fixes.
24395         * lib/unictype.h: Doc fixes.
24396
24397 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24398
24399         Port coreutils 7.2 to Solaris 8.
24400
24401         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24402         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24403         for Solaris 8.  This is a bit of a hack, as it means it's the
24404         caller's responsibility to add -lnsl if needed, but most likely it
24405         won't be needed since only getaddrinfo uses this and getaddrinfo
24406         isn't needed on Solaris 8.
24407
24408         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24409         problem to Solaris 8 encountered with coreutils 7.2, which
24410         resulted in a message "fnmatch.c:292: warning: passing argument 4
24411         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24412         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24413
24414 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24415
24416         * m4/ld-version-script.m4: Add FIXME comment.
24417
24418 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24419
24420         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24421         SOVERSION variable.
24422
24423 2009-04-02  Bruno Haible  <bruno@clisp.org>
24424
24425         * Makefile (info, html, dvi, pdf): Combine the rules.
24426         Suggested by Jim Meyering.
24427
24428 2009-04-01  Bruno Haible  <bruno@clisp.org>
24429
24430         * Makefile (info, html, dvi, pdf): New targets.
24431         Reported by Reuben Thomas <rrt@sc3d.org>.
24432
24433 2009-04-01  Bruno Haible  <bruno@clisp.org>
24434
24435         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24436         can be put into PATH.
24437         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24438
24439 2009-04-01  Bruno Haible  <bruno@clisp.org>
24440
24441         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24442
24443 2009-04-01  Bruno Haible  <bruno@clisp.org>
24444
24445         Rename module 'visibility'.
24446         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24447         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24448         * doc/gnulib.texi: Update.
24449         * MODULES.html.sh (Misc): Update.
24450         * NEWS: Mention the change.
24451
24452 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24453
24454         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24455         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24456         Eric Blake <ebb9@byu.net> for review.
24457         * MODULES.html.sh: Add lib-msvc-compat.
24458         * doc/gnulib.texi: Link to new section.
24459         * m4/ld-output-def.m4: New file.
24460         * doc/ld-output-def.texi: New file.
24461
24462 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24463
24464         Rename ld-version-script to lib-symbol-versions.  Suggested by
24465         Bruno Haible <bruno@clisp.org>.
24466         * modules/ld-version-script: Renamed to lib-symbol-versions.
24467         * doc/ld-version-script.texi: Fix module name.
24468         * MODULES.html.sh: Add lib-symbol-versions.
24469
24470 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24471
24472         * modules/u64-tests: New file.
24473         * tests/test-u64.c: New file.
24474
24475 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24476
24477         * MODULES.html.sh: Mention u64.
24478         * modules/u64: New module.
24479         * modules/crypto/sha512: Depend on u64 module instead of providing
24480         u64.h.
24481
24482 2009-03-27  Eric Blake  <ebb9@byu.net>
24483
24484         test-strerror: make debugging EAI_SYSTEM easier
24485         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24486         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24487         failure was EAI_SYSTEM.
24488
24489 2009-03-25  Bruno Haible  <bruno@clisp.org>
24490
24491         Fix a problem with --enable-relocatable on Solaris 7.
24492         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24493         since 2008-02-24.
24494
24495 2009-03-25  Eric Blake  <ebb9@byu.net>
24496
24497         test-sockets: avoid gcc warning
24498         * tests/test-sockets.c (main): Silence compiler warning.
24499
24500 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         New modules nproc, pthread, contributed by Glen Lenker.
24503
24504         * MODULES.html.sh: Add pthread, nproc.
24505         * lib/nproc.c: New file.
24506         * lib/nproc.h: New file.
24507         * lib/pthread.in.h: New file.
24508         * m4/pthread.m4: New file.
24509         * modules/nproc: New file.
24510         * modules/pthread: New file.
24511
24512 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24513
24514         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24515         New variable.
24516
24517 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24518
24519         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24520         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24521         * tests/test-filevercmp.c: Add tests for backup suffixes.
24522
24523 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24524
24525         * modules/stdlib (Depends-on): Add stdint, needed when defining
24526         struct random_data on, for example, HP-UX 10.20.  Reported by
24527         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24528
24529 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24530
24531         * lib/readline.c (readline): Call fflush on stdout after printing
24532         prompt.
24533
24534 2009-03-20  Bruno Haible  <bruno@clisp.org>
24535
24536         Remove dependency from 'close' module to -lws2_32 on native Windows.
24537         * lib/close-hook.h: New file.
24538         * lib/close-hook.c: New file.
24539         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24540         w32sock.h.
24541         (_gl_close_fd_maybe_socket): Remove function.
24542         (rpl_close): Invoke execute_all_close_hooks instead of
24543         _gl_close_fd_maybe_socket.
24544         * lib/sockets.c: Include close-hook.h, w32sock.h.
24545         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24546         (close_sockets_hook): New variable.
24547         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24548         (gl_sockets_cleanup): Unregister it.
24549         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24550         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24551         * modules/close-hook: New file.
24552         * modules/close (Files): Remove lib/w32sock.h.
24553         (Depends-on): Add close-hook.
24554         (Link): Remove section.
24555         * modules/sockets (Files): Add lib/w32sock.h.
24556         (Depends-on): Add close-hook.
24557         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24558         invocation.
24559         * NEWS: Mention that LIB_CLOSE is gone.
24560
24561 2009-03-23  Eric Blake  <ebb9@byu.net>
24562
24563         signal-tests: test previous patch
24564         * tests/test-signal.c: New file.
24565         * modules/signal-tests: Likewise.
24566
24567         signal.h: always support 'volatile sig_atomic_t'
24568         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24569         (gl_SIGNAL_H_DEFAULTS): Add a default.
24570         * modules/signal (Makefile.am): Substitute if needed.
24571         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24572         users can blindly add volatile.
24573         * doc/posix-headers/signal.texi (signal.h): Document it.
24574         Reported by Matthew Woehlke.
24575
24576 2009-03-23  Jim Meyering  <meyering@redhat.com>
24577
24578         pathmax: PATH_MAX: use pathconf only when available
24579         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24580         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24581         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24582         This avoids a link failure in a PSP cross-compilation environment
24583         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24584
24585         * lib/vasnprintf.c (divide): Fix typo in comment.
24586
24587 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24588
24589         * gnulib-tool (func_filter_filelist): Fix comment.
24590
24591 2009-03-20  Bruno Haible  <bruno@clisp.org>
24592
24593         Make sockets.h self-contained.
24594         * lib/sockets.c: Include sockets.h first.
24595         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24596
24597 2009-03-19  Eric Blake  <ebb9@byu.net>
24598
24599         doc: mention more functions added in cygwin 1.7.0
24600         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24601         addition.
24602         * doc/posix-functions/log2f.texi: Likewise.
24603
24604 2009-03-19  Jim Meyering  <meyering@redhat.com>
24605
24606         fsusage: avoid syntax error due to statement-before-declaration
24607         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24608         after all declarations.  Reported by Matthew Woehlke in
24609         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24610
24611 2009-03-18  Eric Blake  <ebb9@byu.net>
24612
24613         build-aux/compile: sync from automake
24614         * build-aux/compile: New file, from automake.
24615         * config/srclist.txt: Mention build-aux/compile.
24616
24617 2009-03-17  Bruno Haible  <bruno@clisp.org>
24618
24619         * lib/git-merge-changelog.c: Fix typo in comment.
24620         Reported by Reuben Thomas <rrt@sc3d.org>.
24621
24622 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24623
24624         * m4/regex.m4: update and improve help for
24625         --without-included-regex.
24626
24627 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24628
24629         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24630         failure on missing include files.
24631
24632 2009-03-17  Eric Blake  <ebb9@byu.net>
24633
24634         doc: mention more functions added in cygwin 1.7.0
24635         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24636         addition.
24637         * doc/posix-functions/fwscanf.texi: Likewise.
24638         * doc/posix-functions/swprintf.texi: Likewise.
24639         * doc/posix-functions/swscanf.texi: Likewise.
24640         * doc/posix-functions/vfwprintf.texi: Likewise.
24641         * doc/posix-functions/vfwscanf.texi: Likewise.
24642         * doc/posix-functions/vswprintf.texi: Likewise.
24643         * doc/posix-functions/vswscanf.texi: Likewise.
24644         * doc/posix-functions/vwprintf.texi: Likewise.
24645         * doc/posix-functions/vwscanf.texi: Likewise.
24646         * doc/posix-functions/wcscasecmp.texi: Likewise.
24647         * doc/posix-functions/wcsdup.texi: Likewise.
24648         * doc/posix-functions/wcsftime.texi: Likewise.
24649         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24650         * doc/posix-functions/wprintf.texi: Likewise.
24651         * doc/posix-functions/wscanf.texi: Likewise.
24652         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24653
24654 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24655
24656         maint.mk: really add $(AM_MAKEFLAGS)
24657         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24658         was inadvertently omitted in the last commit.
24659         Spotted by Bruno Haible.
24660
24661         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24662         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24663         $(AM_MAKEFLAGS)' rather than plain `make'.
24664
24665         gnulib-tool: execute $MAKE not make
24666         * gnulib-tool: Default $MAKE to 'make'.
24667         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24668         than make.  Initialize $MAKE in the do-autobuild script.
24669
24670         gnulib-tool: use $MAKE not make in generated files
24671         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24672         make, in generated files.  Initialize $MAKE in the do-autobuild
24673         script.
24674
24675         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24676
24677         GNUmakefile: disable parallelism only for multiple, recursive targets
24678         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24679         additions in the Makefile.
24680         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24681         by Automake.
24682         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24683         are listed on the command line and at least one of them is
24684         listed in $(ALL_RECURSIVE_TARGETS).
24685
24686 2009-03-14  Bruno Haible  <bruno@clisp.org>
24687
24688         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24689         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24690         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24691         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24692         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24693         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24694         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24695         unistr/u8-uctomb.
24696         * modules/unistr/u8-strchr (Depends-on): Likewise.
24697         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24698         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24699         unistr/u16-uctomb.
24700         * modules/unistr/u16-strchr (Depends-on): Likewise.
24701         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24702
24703 2009-03-12  Bruno Haible  <bruno@clisp.org>
24704
24705         Work around select() bug on Interix 3.5.
24706         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24707         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24708         * m4/select.m4: New file.
24709         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24710         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24711         * modules/select (Files): Add m4/select.m4.
24712         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24713         * modules/nanosleep (Depends-on): Add select.
24714         * modules/poll (Depends-on): Likewise.
24715         * doc/posix-functions/select.texi: Mention the Interix bug.
24716         Reported by Markus Duft <mduft@gentoo.org>.
24717
24718         * lib/select.c: Renamed from lib/winsock-select.c.
24719         * modules/select (Files): Add lib/select.c, remove
24720         lib/winsock-select.c.
24721         (configure.ac): Update.
24722
24723 2009-03-12  Jim Meyering  <meyering@redhat.com>
24724
24725         avoid gcc warnings about unused macro definitions
24726         * lib/readtokens.c (STREQ): Remove unused definition.
24727         * lib/xmalloc.c (SIZE_MAX): Likewise.
24728         * lib/openat-die.c (N_): Likewise.
24729         * lib/mountlist.c (SIZE_MAX): Remove definition.
24730         Instead, include <stdint.h>.
24731         * lib/readutmp.c: Likewise.
24732         * modules/readutmp (Depends-on): Add stdint.
24733         * modules/mountlist (Depends-on): Add stdint.
24734         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24735
24736 2009-03-10  Bruno Haible  <bruno@clisp.org>
24737
24738         Tests for module 'mbmemcasecoll'.
24739         * modules/mbmemcasecoll-tests: New file.
24740         * tests/test-mbmemcasecoll1.sh: New file.
24741         * tests/test-mbmemcasecoll2.sh: New file.
24742         * tests/test-mbmemcasecoll3.sh: New file.
24743         * tests/test-mbmemcasecoll.c: New file.
24744
24745         New module 'mbmemcasecoll'.
24746         * lib/mbmemcasecoll.h: New file.
24747         * lib/mbmemcasecoll.c: New file.
24748         * modules/mbmemcasecoll: New file.
24749
24750         * tests/test-mbmemcasecmp.h: New file, extracted from
24751         tests/test-mbmemcasecmp.c.
24752         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24753         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24754         (main): Update.
24755         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24756
24757 2009-03-09  Bruno Haible  <bruno@clisp.org>
24758
24759         Tests for module 'mbmemcasecmp'.
24760         * modules/mbmemcasecmp-tests: New file.
24761         * tests/test-mbmemcasecmp1.sh: New file.
24762         * tests/test-mbmemcasecmp2.sh: New file.
24763         * tests/test-mbmemcasecmp3.sh: New file.
24764         * tests/test-mbmemcasecmp.c: New file.
24765
24766         New module 'mbmemcasecmp'.
24767         * lib/mbmemcasecmp.h: New file.
24768         * lib/mbmemcasecmp.c: New file.
24769         * modules/mbmemcasecmp: New file.
24770
24771 2009-03-09  Bruno Haible  <bruno@clisp.org>
24772
24773         Tests for module 'unicase/ulc-casecoll'.
24774         * modules/unicase/ulc-casecoll-tests: New file.
24775         * tests/unicase/test-ulc-casecoll1.sh: New file.
24776         * tests/unicase/test-ulc-casecoll2.sh: New file.
24777         * tests/unicase/test-ulc-casecoll.c: New file.
24778
24779         New module 'unicase/ulc-casecoll'.
24780         * lib/unicase.h (ulc_casecoll): New declaration.
24781         * lib/unicase/ulc-casecoll.c: New file.
24782         * modules/unicase/ulc-casecoll: New file.
24783
24784         New module 'unicase/ulc-casexfrm'.
24785         * lib/unicase.h (ulc_casexfrm): New declaration.
24786         * lib/unicase/ulc-casexfrm.c: New file.
24787         * modules/unicase/ulc-casexfrm: New file.
24788
24789 2009-03-09  Bruno Haible  <bruno@clisp.org>
24790
24791         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24792         invocations.
24793
24794         * m4/mbscasecmp.m4: Remove file.
24795         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24796         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24797
24798         * m4/mbscasestr.m4: Remove file.
24799         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24800         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24801
24802         * m4/mbschr.m4: Remove file.
24803         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24804         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24805
24806         * m4/mbscspn.m4: Remove file.
24807         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24808         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24809
24810         * m4/mbslen.m4: Remove file.
24811         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24812         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24813
24814         * m4/mbsncasecmp.m4: Remove file.
24815         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24816         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24817
24818         * m4/mbsnlen.m4: Remove file.
24819         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24820         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24821
24822         * m4/mbspbrk.m4: Remove file.
24823         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24824         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24825
24826         * m4/mbspcasecmp.m4: Remove file.
24827         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24828         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24829
24830         * m4/mbsrchr.m4: Remove file.
24831         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24832         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24833
24834         * m4/mbssep.m4: Remove file.
24835         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24836         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24837
24838         * m4/mbsspn.m4: Remove file.
24839         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24840         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24841
24842         * m4/mbsstr.m4: Remove file.
24843         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24844         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24845
24846         * m4/mbstok_r.m4: Remove file.
24847         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24848         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24849
24850         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24851
24852         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24853         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24854
24855         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24856
24857 2009-03-08  Bruno Haible  <bruno@clisp.org>
24858
24859         Tests for module 'unicase/ulc-casecmp'.
24860         * modules/unicase/ulc-casecmp-tests: New file.
24861         * tests/unicase/test-ulc-casecmp1.sh: New file.
24862         * tests/unicase/test-ulc-casecmp2.sh: New file.
24863         * tests/unicase/test-ulc-casecmp.c: New file.
24864
24865         New module 'unicase/ulc-casecmp'.
24866         * lib/unicase.h (ulc_casecmp): New declaration.
24867         * lib/unicase/ulc-casecmp.c: New file.
24868         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24869         'const SRC_UNIT *'.
24870         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24871         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24872         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24873         * modules/unicase/ulc-casecmp: New file.
24874
24875         Tests for module 'unicase/u32-is-cased'.
24876         * modules/unicase/u32-is-cased-tests: New file.
24877         * tests/unicase/test-u32-is-cased.c: New file.
24878
24879         Tests for module 'unicase/u16-is-cased'.
24880         * modules/unicase/u16-is-cased-tests: New file.
24881         * tests/unicase/test-u16-is-cased.c: New file.
24882
24883         Tests for module 'unicase/u8-is-cased'.
24884         * modules/unicase/u8-is-cased-tests: New file.
24885         * tests/unicase/test-u8-is-cased.c: New file.
24886         * tests/unicase/test-is-cased.h: New file.
24887
24888         New module 'unicase/u32-is-cased'.
24889         * lib/unicase/u32-is-cased.c: New file.
24890         * modules/unicase/u32-is-cased: New file.
24891
24892         New module 'unicase/u16-is-cased'.
24893         * lib/unicase/u16-is-cased.c: New file.
24894         * modules/unicase/u16-is-cased: New file.
24895
24896         New module 'unicase/u8-is-cased'.
24897         * lib/unicase/u8-is-cased.c: New file.
24898         * lib/unicase/u-is-cased.h: New file.
24899         * modules/unicase/u8-is-cased: New file.
24900
24901         Tests for module 'unicase/u32-is-casefolded'.
24902         * modules/unicase/u32-is-casefolded-tests: New file.
24903         * tests/unicase/test-u32-is-casefolded.c: New file.
24904
24905         Tests for module 'unicase/u16-is-casefolded'.
24906         * modules/unicase/u16-is-casefolded-tests: New file.
24907         * tests/unicase/test-u16-is-casefolded.c: New file.
24908
24909         Tests for module 'unicase/u8-is-casefolded'.
24910         * modules/unicase/u8-is-casefolded-tests: New file.
24911         * tests/unicase/test-u8-is-casefolded.c: New file.
24912         * tests/unicase/test-is-casefolded.h: New file.
24913
24914         New module 'unicase/u32-is-casefolded'.
24915         * lib/unicase/u32-is-casefolded.c: New file.
24916         * modules/unicase/u32-is-casefolded: New file.
24917
24918         New module 'unicase/u16-is-casefolded'.
24919         * lib/unicase/u16-is-casefolded.c: New file.
24920         * modules/unicase/u16-is-casefolded: New file.
24921
24922         New module 'unicase/u8-is-casefolded'.
24923         * lib/unicase/u8-is-casefolded.c: New file.
24924         * modules/unicase/u8-is-casefolded: New file.
24925
24926         Tests for module 'unicase/u32-is-titlecase'.
24927         * modules/unicase/u32-is-titlecase-tests: New file.
24928         * tests/unicase/test-u32-is-titlecase.c: New file.
24929
24930         Tests for module 'unicase/u16-is-titlecase'.
24931         * modules/unicase/u16-is-titlecase-tests: New file.
24932         * tests/unicase/test-u16-is-titlecase.c: New file.
24933
24934         Tests for module 'unicase/u8-is-titlecase'.
24935         * modules/unicase/u8-is-titlecase-tests: New file.
24936         * tests/unicase/test-u8-is-titlecase.c: New file.
24937         * tests/unicase/test-is-titlecase.h: New file.
24938
24939         New module 'unicase/u32-is-titlecase'.
24940         * lib/unicase/u32-is-titlecase.c: New file.
24941         * modules/unicase/u32-is-titlecase: New file.
24942
24943         New module 'unicase/u16-is-titlecase'.
24944         * lib/unicase/u16-is-titlecase.c: New file.
24945         * modules/unicase/u16-is-titlecase: New file.
24946
24947         New module 'unicase/u8-is-titlecase'.
24948         * lib/unicase/u8-is-titlecase.c: New file.
24949         * modules/unicase/u8-is-titlecase: New file.
24950
24951         Tests for module 'unicase/u32-is-lowercase'.
24952         * modules/unicase/u32-is-lowercase-tests: New file.
24953         * tests/unicase/test-u32-is-lowercase.c: New file.
24954
24955         Tests for module 'unicase/u16-is-lowercase'.
24956         * modules/unicase/u16-is-lowercase-tests: New file.
24957         * tests/unicase/test-u16-is-lowercase.c: New file.
24958
24959         Tests for module 'unicase/u8-is-lowercase'.
24960         * modules/unicase/u8-is-lowercase-tests: New file.
24961         * tests/unicase/test-u8-is-lowercase.c: New file.
24962         * tests/unicase/test-is-lowercase.h: New file.
24963
24964         New module 'unicase/u32-is-lowercase'.
24965         * lib/unicase/u32-is-lowercase.c: New file.
24966         * modules/unicase/u32-is-lowercase: New file.
24967
24968         New module 'unicase/u16-is-lowercase'.
24969         * lib/unicase/u16-is-lowercase.c: New file.
24970         * modules/unicase/u16-is-lowercase: New file.
24971
24972         New module 'unicase/u8-is-lowercase'.
24973         * lib/unicase/u8-is-lowercase.c: New file.
24974         * modules/unicase/u8-is-lowercase: New file.
24975
24976         Tests for module 'unicase/u32-is-uppercase'.
24977         * modules/unicase/u32-is-uppercase-tests: New file.
24978         * tests/unicase/test-u32-is-uppercase.c: New file.
24979
24980         Tests for module 'unicase/u16-is-uppercase'.
24981         * modules/unicase/u16-is-uppercase-tests: New file.
24982         * tests/unicase/test-u16-is-uppercase.c: New file.
24983
24984         Tests for module 'unicase/u8-is-uppercase'.
24985         * modules/unicase/u8-is-uppercase-tests: New file.
24986         * tests/unicase/test-u8-is-uppercase.c: New file.
24987         * tests/unicase/test-is-uppercase.h: New file.
24988
24989         New module 'unicase/u32-is-uppercase'.
24990         * lib/unicase/u32-is-uppercase.c: New file.
24991         * modules/unicase/u32-is-uppercase: New file.
24992
24993         New module 'unicase/u16-is-uppercase'.
24994         * lib/unicase/u16-is-uppercase.c: New file.
24995         * modules/unicase/u16-is-uppercase: New file.
24996
24997         New module 'unicase/u8-is-uppercase'.
24998         * lib/unicase/u8-is-uppercase.c: New file.
24999         * modules/unicase/u8-is-uppercase: New file.
25000
25001         New module 'unicase/u32-is-invariant'.
25002         * lib/unicase/u32-is-invariant.c: New file.
25003         * modules/unicase/u32-is-invariant: New file.
25004
25005         New module 'unicase/u16-is-invariant'.
25006         * lib/unicase/u16-is-invariant.c: New file.
25007         * modules/unicase/u16-is-invariant: New file.
25008
25009         New module 'unicase/u8-is-invariant'.
25010         * lib/unicase/u8-is-invariant.c: New file.
25011         * lib/unicase/invariant.h: New file.
25012         * lib/unicase/u-is-invariant.h: New file.
25013         * modules/unicase/u8-is-invariant: New file.
25014
25015         Tests for module 'unicase/u32-casecoll'.
25016         * modules/unicase/u32-casecoll-tests: New file.
25017         * tests/unicase/test-u32-casecoll.c: New file.
25018
25019         Tests for module 'unicase/u16-casecoll'.
25020         * modules/unicase/u16-casecoll-tests: New file.
25021         * tests/unicase/test-u16-casecoll.c: New file.
25022
25023         Tests for module 'unicase/u8-casecoll'.
25024         * modules/unicase/u8-casecoll-tests: New file.
25025         * tests/unicase/test-u8-casecoll.c: New file.
25026
25027         New module 'unicase/u32-casecoll'.
25028         * lib/unicase/u32-casecoll.c: New file.
25029         * modules/unicase/u32-casecoll: New file.
25030
25031         New module 'unicase/u16-casecoll'.
25032         * lib/unicase/u16-casecoll.c: New file.
25033         * modules/unicase/u16-casecoll: New file.
25034
25035         New module 'unicase/u8-casecoll'.
25036         * lib/unicase/u8-casecoll.c: New file.
25037         * lib/unicase/u-casecoll.h: New file.
25038         * modules/unicase/u8-casecoll: New file.
25039
25040         New module 'unicase/u32-casexfrm'.
25041         * lib/unicase/u32-casexfrm.c: New file.
25042         * modules/unicase/u32-casexfrm: New file.
25043
25044         New module 'unicase/u16-casexfrm'.
25045         * lib/unicase/u16-casexfrm.c: New file.
25046         * modules/unicase/u16-casexfrm: New file.
25047
25048         New module 'unicase/u8-casexfrm'.
25049         * lib/unicase/u8-casexfrm.c: New file.
25050         * lib/unicase/u-casexfrm.h: New file.
25051         * modules/unicase/u8-casexfrm: New file.
25052
25053         Tests for module 'unicase/u32-casecmp'.
25054         * modules/unicase/u32-casecmp-tests: New file.
25055         * tests/unicase/test-u32-casecmp.c: New file.
25056
25057         Tests for module 'unicase/u16-casecmp'.
25058         * modules/unicase/u16-casecmp-tests: New file.
25059         * tests/unicase/test-u16-casecmp.c: New file.
25060
25061         Tests for module 'unicase/u8-casecmp'.
25062         * modules/unicase/u8-casecmp-tests: New file.
25063         * tests/unicase/test-u8-casecmp.c: New file.
25064         * tests/unicase/test-casecmp.h: New file.
25065
25066         New module 'unicase/u32-casecmp'.
25067         * lib/unicase/u32-casecmp.c: New file.
25068         * modules/unicase/u32-casecmp: New file.
25069
25070         New module 'unicase/u16-casecmp'.
25071         * lib/unicase/u16-casecmp.c: New file.
25072         * modules/unicase/u16-casecmp: New file.
25073
25074         New module 'unicase/u8-casecmp'.
25075         * lib/unicase/u8-casecmp.c: New file.
25076         * lib/unicase/u-casecmp.h: New file.
25077         * modules/unicase/u8-casecmp: New file.
25078
25079         Tests for module 'unicase/u32-casefold'.
25080         * modules/unicase/u32-casefold-tests: New file.
25081         * tests/unicase/test-u32-casefold.c: New file.
25082
25083         Tests for module 'unicase/u16-casefold'.
25084         * modules/unicase/u16-casefold-tests: New file.
25085         * tests/unicase/test-u16-casefold.c: New file.
25086
25087         Tests for module 'unicase/u8-casefold'.
25088         * modules/unicase/u8-casefold-tests: New file.
25089         * tests/unicase/test-u8-casefold.c: New file.
25090
25091         New module 'unicase/u32-casefold'.
25092         * lib/unicase/u32-casefold.c: New file.
25093         * modules/unicase/u32-casefold: New file.
25094
25095         New module 'unicase/u16-casefold'.
25096         * lib/unicase/u16-casefold.c: New file.
25097         * modules/unicase/u16-casefold: New file.
25098
25099         New module 'unicase/u8-casefold'.
25100         * lib/unicase/u8-casefold.c: New file.
25101         * lib/unicase/u-casefold.h: New file.
25102         * modules/unicase/u8-casefold: New file.
25103
25104         New module 'unicase/tocasefold'.
25105         * lib/unicase/casefold.h: New file.
25106         * lib/unicase/tocasefold.c: New file.
25107         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25108         * modules/unicase/tocasefold: New file.
25109
25110         Tests for module 'unicase/u32-totitle'.
25111         * modules/unicase/u32-totitle-tests: New file.
25112         * tests/unicase/test-u32-totitle.c: New file.
25113
25114         Tests for module 'unicase/u16-totitle'.
25115         * modules/unicase/u16-totitle-tests: New file.
25116         * tests/unicase/test-u16-totitle.c: New file.
25117
25118         Tests for module 'unicase/u8-totitle'.
25119         * modules/unicase/u8-totitle-tests: New file.
25120         * tests/unicase/test-u8-totitle.c: New file.
25121
25122         New module 'unicase/u32-totitle'.
25123         * lib/unicase/u32-totitle.c: New file.
25124         * modules/unicase/u32-totitle: New file.
25125
25126         New module 'unicase/u16-totitle'.
25127         * lib/unicase/u16-totitle.c: New file.
25128         * modules/unicase/u16-totitle: New file.
25129
25130         New module 'unicase/u8-totitle'.
25131         * lib/unicase/u8-totitle.c: New file.
25132         * lib/unicase/u-totitle.h: New file.
25133         * modules/unicase/u8-totitle: New file.
25134
25135         Tests for module 'unicase/u32-tolower'.
25136         * modules/unicase/u32-tolower-tests: New file.
25137         * tests/unicase/test-u32-tolower.c: New file.
25138
25139         Tests for module 'unicase/u16-tolower'.
25140         * modules/unicase/u16-tolower-tests: New file.
25141         * tests/unicase/test-u16-tolower.c: New file.
25142
25143         Tests for module 'unicase/u8-tolower'.
25144         * modules/unicase/u8-tolower-tests: New file.
25145         * tests/unicase/test-u8-tolower.c: New file.
25146
25147         New module 'unicase/u32-tolower'.
25148         * lib/unicase/u32-tolower.c: New file.
25149         * modules/unicase/u32-tolower: New file.
25150
25151         New module 'unicase/u16-tolower'.
25152         * lib/unicase/u16-tolower.c: New file.
25153         * modules/unicase/u16-tolower: New file.
25154
25155         New module 'unicase/u8-tolower'.
25156         * lib/unicase/u8-tolower.c: New file.
25157         * modules/unicase/u8-tolower: New file.
25158
25159         Tests for module 'unicase/u32-toupper'.
25160         * modules/unicase/u32-toupper-tests: New file.
25161         * tests/unicase/test-u32-toupper.c: New file.
25162
25163         Tests for module 'unicase/u16-toupper'.
25164         * modules/unicase/u16-toupper-tests: New file.
25165         * tests/unicase/test-u16-toupper.c: New file.
25166
25167         Tests for module 'unicase/u8-toupper'.
25168         * modules/unicase/u8-toupper-tests: New file.
25169         * tests/unicase/test-u8-toupper.c: New file.
25170
25171         New module 'unicase/u32-toupper'.
25172         * lib/unicase/u32-toupper.c: New file.
25173         * modules/unicase/u32-toupper: New file.
25174
25175         New module 'unicase/u16-toupper'.
25176         * lib/unicase/u16-toupper.c: New file.
25177         * modules/unicase/u16-toupper: New file.
25178
25179         New module 'unicase/u8-toupper'.
25180         * lib/unicase/u8-toupper.c: New file.
25181         * modules/unicase/u8-toupper: New file.
25182
25183         New module 'unicase/u32-casemap'.
25184         * lib/unicase/u32-casemap.c: New file.
25185         * modules/unicase/u32-casemap: New file.
25186
25187         New module 'unicase/u16-casemap'.
25188         * lib/unicase/u16-casemap.c: New file.
25189         * modules/unicase/u16-casemap: New file.
25190
25191         New module 'unicase/u8-casemap'.
25192         * lib/unicase/unicasemap.h: New file.
25193         * lib/unicase/u8-casemap.c: New file.
25194         * lib/unicase/u-casemap.h: New file.
25195         * modules/unicase/u8-casemap: New file.
25196
25197         New module 'unicase/special-casing'.
25198         * lib/unicase/special-casing.h: New file.
25199         * lib/unicase/special-casing.c: New file.
25200         * lib/unicase/special-casing-table.gperf: New file, generated by
25201         gen-uni-tables.c.
25202         * modules/unicase/special-casing: New file.
25203
25204         Tests for module 'unicase/locale-language'.
25205         * modules/unicase/locale-language-tests: New file.
25206         * tests/unicase/test-locale-language.sh: New file.
25207         * tests/unicase/test-locale-language.c: New file.
25208
25209         New module 'unicase/locale-language'.
25210         * lib/unicase/locale-language.c: New file.
25211         * lib/unicase/locale-languages.gperf: New file.
25212         * modules/unicase/locale-language: New file.
25213
25214         Generate more tables for case conversion and case folding.
25215         * lib/gen-uni-tables.c (SCC_*): New enum items.
25216         (struct special_casing_rule): New type.
25217         (casing_rules, num_casing_rules, allocated_casing_rules): New
25218         variables.
25219         (add_casing_rule, fill_casing_rules): New functions.
25220         (struct casefold_rule): New type.
25221         (casefolding_rules, num_casefolding_rules,
25222         allocated_casefolding_rules): New variables.
25223         (fill_casefolding_rules): New function.
25224         (unicode_casefold): New variable.
25225         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25226         sort_casing_rules, output_casing_rules): New functions.
25227         (main): Accept to more arguments: SpecialCasing.txt and
25228         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25229         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25230         Output mapping for casefolding.
25231
25232         * lib/unicase.h: Include stdbool.h, uninorm.h.
25233         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25234         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25235         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25236         arguments.
25237         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25238         resultp arguments.
25239         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25240         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25241         resultp arguments.
25242         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25243         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25244         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25245         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25246         declarations.
25247         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25248
25249 2009-03-08  Bruno Haible  <bruno@clisp.org>
25250
25251         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25252         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25253         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25254         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25255
25256 2009-03-07  Bruno Haible  <bruno@clisp.org>
25257
25258         Adjust u*_normcmp, u*_normcoll API.
25259         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25260         u16_normcoll, u32_normcoll): Change failure conventions.
25261         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25262         errno and return -1.
25263         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25264
25265 2009-03-07  Bruno Haible  <bruno@clisp.org>
25266
25267         Tests for module 'uninorm/u32-normcoll'.
25268         * modules/uninorm/u32-normcoll-tests: New file.
25269         * tests/uninorm/test-u32-normcoll.c: New file.
25270
25271         Tests for module 'uninorm/u16-normcoll'.
25272         * modules/uninorm/u16-normcoll-tests: New file.
25273         * tests/uninorm/test-u16-normcoll.c: New file.
25274
25275         Tests for module 'uninorm/u8-normcoll'.
25276         * modules/uninorm/u8-normcoll-tests: New file.
25277         * tests/uninorm/test-u8-normcoll.c: New file.
25278
25279 2009-03-07  Bruno Haible  <bruno@clisp.org>
25280
25281         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25282         tests/uninorm/test-u32-normcmp.c.
25283         * tests/uninorm/test-u32-normcmp.c: Include it.
25284         (test_nonascii): New function, extracted from main. Add some more
25285         tests.
25286         (main): Invoke test_ascii and test_nonascii.
25287         * modules/uninorm/u32-normcmp-tests (Files): Add
25288         tests/uninorm/test-u32-normcmp.h.
25289         (Depends-on): Remove uninorm/u32-normcmp.
25290
25291         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25292         tests/uninorm/test-u16-normcmp.c.
25293         * tests/uninorm/test-u16-normcmp.c: Include it.
25294         (test_nonascii): New function, extracted from main. Add some more
25295         tests.
25296         (main): Invoke test_ascii and test_nonascii.
25297         * modules/uninorm/u16-normcmp-tests (Files): Add
25298         tests/uninorm/test-u16-normcmp.h.
25299         (Depends-on): Remove uninorm/u16-normcmp.
25300
25301         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25302         tests/uninorm/test-u8-normcmp.c.
25303         * tests/uninorm/test-u8-normcmp.c: Include it.
25304         (test_nonascii): New function, extracted from main. Add some more
25305         tests.
25306         (main): Invoke test_ascii and test_nonascii.
25307         * modules/uninorm/u8-normcmp-tests (Files): Add
25308         tests/uninorm/test-u8-normcmp.h.
25309         (Depends-on): Remove uninorm/u8-normcmp.
25310
25311 2009-03-07  Bruno Haible  <bruno@clisp.org>
25312
25313         New module 'uninorm/u32-normcoll'.
25314         * lib/uninorm/u32-normcoll.c: New file.
25315         * modules/uninorm/u32-normcoll: New file.
25316
25317         New module 'uninorm/u16-normcoll'.
25318         * lib/uninorm/u16-normcoll.c: New file.
25319         * modules/uninorm/u16-normcoll: New file.
25320
25321         New module 'uninorm/u8-normcoll'.
25322         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25323         declarations.
25324         * lib/uninorm/u8-normcoll.c: New file.
25325         * lib/uninorm/u-normcoll.h: New file.
25326         * modules/uninorm/u8-normcoll: New file.
25327
25328         New module 'uninorm/u32-normxfrm'.
25329         * lib/uninorm/u32-normxfrm.c: New file.
25330         * modules/uninorm/u32-normxfrm: New file.
25331
25332         New module 'uninorm/u16-normxfrm'.
25333         * lib/uninorm/u16-normxfrm.c: New file.
25334         * modules/uninorm/u16-normxfrm: New file.
25335
25336         New module 'uninorm/u8-normxfrm'.
25337         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25338         declarations.
25339         * lib/uninorm/u8-normxfrm.c: New file.
25340         * lib/uninorm/u-normxfrm.h: New file.
25341         * modules/uninorm/u8-normxfrm: New file.
25342
25343 2009-03-07  Bruno Haible  <bruno@clisp.org>
25344
25345         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25346         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25347         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25348
25349 2009-03-07  Bruno Haible  <bruno@clisp.org>
25350
25351         New module 'memxfrm'.
25352         * lib/memxfrm.h: New file.
25353         * lib/memxfrm.c: New file.
25354         * modules/memxfrm: New file.
25355
25356 2009-03-07  Bruno Haible  <bruno@clisp.org>
25357
25358         New module 'memcmp2'.
25359         * lib/memcmp2.h: New file.
25360         * lib/memcmp2.c: New file.
25361         * modules/memcmp2: New file.
25362
25363 2009-03-07  Bruno Haible  <bruno@clisp.org>
25364
25365         Tests for module 'uninorm/decomposing-form'.
25366         * modules/uninorm/decomposing-form-tests: New file.
25367         * tests/uninorm/test-decomposing-form.c: New file.
25368
25369         New module 'uninorm/decomposing-form'.
25370         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25371         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25372         Add 'decomposing_variant' field.
25373         * lib/uninorm/decomposing-form.c: New file.
25374         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25375         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25376         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25377         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25378         * modules/uninorm/decomposing-form: New file.
25379         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25380         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25381
25382 2009-03-07  Bruno Haible  <bruno@clisp.org>
25383
25384         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25385         strings.
25386
25387 2009-03-06  Bruno Haible  <bruno@clisp.org>
25388
25389         Tests for module 'uninorm/u32-normcmp'.
25390         * tests/uninorm/test-u32-normcmp.c: New file.
25391         * modules/uninorm/u32-normcmp-tests: New file.
25392
25393         Tests for module 'uninorm/u16-normcmp'.
25394         * tests/uninorm/test-u16-normcmp.c: New file.
25395         * modules/uninorm/u16-normcmp-tests: New file.
25396
25397         Tests for module 'uninorm/u8-normcmp'.
25398         * tests/uninorm/test-u8-normcmp.c: New file.
25399         * modules/uninorm/u8-normcmp-tests: New file.
25400
25401         New module 'uninorm/u32-normcmp'.
25402         * lib/uninorm/u32-normcmp.c: New file.
25403         * modules/uninorm/u32-normcmp: New file.
25404
25405         New module 'uninorm/u16-normcmp'.
25406         * lib/uninorm/u16-normcmp.c: New file.
25407         * modules/uninorm/u16-normcmp: New file.
25408
25409         New module 'uninorm/u8-normcmp'.
25410         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25411         declarations.
25412         * lib/uninorm/u8-normcmp.c: New file.
25413         * lib/uninorm/u-normcmp.h: New file.
25414         * modules/uninorm/u8-normcmp: New file.
25415
25416 2009-03-06  Bruno Haible  <bruno@clisp.org>
25417
25418         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25419         Reported by Eric Blake.
25420
25421 2009-03-06  Eric Blake  <ebb9@byu.net>
25422             Bruno Haible  <bruno@clisp.org>
25423
25424         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25425         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25426         condition.
25427         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25428         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25429         condition.
25430         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25431
25432 2009-03-06  Eric Blake  <ebb9@byu.net>
25433
25434         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25435         to avoid compiler warnings.
25436         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25437
25438 2009-03-05  Bruno Haible  <bruno@clisp.org>
25439
25440         * tests/test-ftell.c (main): Disable test beyond end of file on
25441         FreeMiNT.
25442         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25443
25444 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25445
25446         * lib/filevercmp.c: Move hidden files up in ordering.
25447         * tests/test-filevercmp.c: Add tests for hidden files.
25448
25449 2009-03-04  Bruno Haible  <bruno@clisp.org>
25450
25451         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25452         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25453         AM_CFLAGS.
25454         Reported by Simon Josefsson.
25455
25456 2009-03-03  Bruno Haible  <bruno@clisp.org>
25457
25458         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25459         Reported by Simon Josefsson.
25460
25461         * doc/ld-version-script.texi: Update node reference.
25462
25463 2009-03-03  Bruno Haible  <bruno@clisp.org>
25464
25465         * modules/visibility (License): Change to 'unlimited'.
25466         Suggested by Simon Josefsson.
25467
25468 2009-03-03  Jim Meyering  <meyering@redhat.com>
25469
25470         unlinkdir: cannot_unlink_dir may modify process state
25471         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25472         it's neither thread-safe nor appropriate for use in a library.
25473
25474 2009-03-03  Eric Blake  <ebb9@byu.net>
25475
25476         test-closein: silence test under Darwin
25477         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25478         care if it dies from EPIPE or EBADF.
25479
25480 2009-03-03  Bruno Haible  <bruno@clisp.org>
25481
25482         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25483         earlier.
25484         * doc/visibility.texi: Fix @node and @section.
25485
25486 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25487
25488         * doc/gnulib.texi: Link to sections for ld version script and
25489         visibility.
25490         * doc/visibility.texi: Add @node and @section.
25491         * modules/ld-version-script: New module.
25492         * m4/ld-version-script.m4: New file.
25493         * doc/ld-version-script.texi: New file.
25494
25495 2009-03-02  David Lutterkort  <lutter@redhat.com>
25496
25497         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25499
25500 2009-03-02  Bruno Haible  <bruno@clisp.org>
25501
25502         * doc/visibility.texi: Mention libtool's -export-symbols option.
25503
25504 2009-03-02  Jim Meyering  <meyering@redhat.com>
25505
25506         announce-gen: new option: --no-print-checksums
25507         * build-aux/announce-gen (usage): Describe it.
25508         (print_checksums): Print a newline here, not in the [*] footnote.
25509         (main): Honor it.
25510
25511 2009-03-01  Bruno Haible  <bruno@clisp.org>
25512
25513         Use socklen_t in the native Windows replacements prototypes.
25514         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25515         instead of 'int'.
25516         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25517         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25518         * modules/getsockopt (Depends-on): Add socklen.
25519         * modules/setsockopt (Depends-on): Add socklen.
25520
25521 2009-03-01  Bruno Haible  <bruno@clisp.org>
25522
25523         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25524         least 4.2.
25525
25526 2009-03-01  Eric Blake  <ebb9@byu.net>
25527             Bruno Haible  <bruno@clisp.org>
25528
25529         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25530         error messages.
25531         * lib/wait-process.c (wait_subprocess): Omit error message about
25532         deadly signal sent to the child of termsigp != NULL.
25533
25534 2009-03-01  Eric Blake  <ebb9@byu.net>
25535
25536         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25537
25538 2009-03-01  Bruno Haible  <bruno@clisp.org>
25539
25540         Avoid a gcc warning.
25541         * tests/test-sched.c (b): Make global.
25542         Reported by Eric Blake.
25543
25544 2009-01-19  Martin Lambers  <marlam@marlam.de>
25545
25546         Provide POSIX semantics for socket timeout options on W32.
25547         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25548         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25549         * modules/setsockopt: Depend on sys_time module for struct timeval.
25550         * modules/getsockopt: Depend on sys_time module for struct timeval.
25551
25552 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25553
25554         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25555         __USE_GNU, for consistency with netdb.in.h.
25556         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25557
25558 2009-03-01  Bruno Haible  <bruno@clisp.org>
25559
25560         More support for FreeMiNT.
25561         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25562         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25563
25564 2009-03-01  Bruno Haible  <bruno@clisp.org>
25565
25566         More support for FreeMiNT.
25567         * lib/fpurge.c (fpurge): Correct last commit.
25568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25569
25570 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25571
25572         Fix unportable awk script in vc-list-files.
25573         * build-aux/vc-list-files: In the replacement awk script, use
25574         substr with a second argument of 1, not zero.
25575         Report by Simon Josefsson.
25576
25577 2009-02-28  Bruno Haible  <bruno@clisp.org>
25578
25579         More support for FreeMiNT.
25580         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25581         to FreeMiNT today.
25582         * lib/fwriting.c (fwriting): Likewise.
25583         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25584
25585 2009-02-28  Bruno Haible  <bruno@clisp.org>
25586
25587         * tests/test-freadseek.c (main): Disable test beyond end of file on
25588         FreeMiNT.
25589         * tests/test-ftello.c (main): Likewise.
25590         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25591
25592 2009-02-28  Bruno Haible  <bruno@clisp.org>
25593
25594         Add tentative support for FreeMiNT.
25595         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25596         * lib/fpurge.c (fpurge): Likewise.
25597         * lib/freadable.c (freadable): Likewise.
25598         * lib/freading.c (freading): Likewise.
25599         * lib/freadptr.c (freadptr): Likewise.
25600         * lib/freadseek.c (freadptrinc): Likewise.
25601         * lib/fseeko.c (rpl_fseeko): Likewise.
25602         * lib/fseterr.c (fseterr): Likewise.
25603         * lib/fwritable.c (fwritable): Likewise.
25604         * lib/fwriting.c (fwriting): Likewise.
25605         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25606         Hourihane.
25607         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25608
25609 2009-02-28  Bruno Haible  <bruno@clisp.org>
25610
25611         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25612         SIGCHLD.
25613         Reported by Jim Meyering.
25614
25615 2009-02-28  Bruno Haible  <bruno@clisp.org>
25616
25617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25618         Mention the results of these tests on various platforms.
25619         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25620         order.
25621         * doc/posix-functions/printf.texi: Likewise.
25622         * doc/posix-functions/snprintf.texi: Likewise.
25623         * doc/posix-functions/sprintf.texi: Likewise.
25624         * doc/posix-functions/vfprintf.texi: Likewise.
25625         * doc/posix-functions/vprintf.texi: Likewise.
25626         * doc/posix-functions/vsnprintf.texi: Likewise.
25627         * doc/posix-functions/vsprintf.texi: Likewise.
25628         * doc/glibc-functions/obstack_printf.texi: Likewise.
25629         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25630
25631 2009-02-28  Bruno Haible  <bruno@clisp.org>
25632
25633         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25634         Reported by Loïc Minier <lool@dooz.org>.
25635
25636 2009-02-27  Bruno Haible  <bruno@clisp.org>
25637
25638         * gnulib-tool (func_import): Make the sed expression used to create the
25639         sed script for updating the .gitignore file POSIX compliant.
25640         Reported by Eric Blake.
25641
25642 2009-02-27  Bruno Haible  <bruno@clisp.org>
25643
25644         * gnulib-tool (sed): Don't alias as "sed --posix".
25645         Reported by Eric Blake.
25646
25647 2009-02-27  Bruno Haible  <bruno@clisp.org>
25648
25649         Avoid test link errors.
25650         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25651         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25652         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25653         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25655
25656 2009-02-27  Bruno Haible  <bruno@clisp.org>
25657
25658         Avoid spurious "(cached)" in configure output.
25659         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25660         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25661         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25662         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25663         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25664         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25665         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25666         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25667         Reported by Eric Blake.
25668
25669 2009-02-27  Eric Blake  <ebb9@byu.net>
25670
25671         printf: fix regression in previous patch
25672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25673
25674 2009-02-27  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25677         value.
25678         * lib/stdint.in.h: Likewise.
25679         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25680
25681 2009-02-27  Eric Blake  <ebb9@byu.net>
25682
25683         doc: mention more functions added in cygwin 1.7.0
25684         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25685         addition.
25686         * doc/posix-functions/open_wmemstream.texi: Likewise.
25687         * doc/posix-functions/wcsnlen.texi: Likewise.
25688         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25689         * doc/posix-functions/wcstod.texi: Likewise.
25690         * doc/posix-functions/wcstof.texi: Likewise.
25691         * doc/posix-functions/wcstoimax.texi: Likewise.
25692         * doc/posix-functions/wcstok.texi: Likewise.
25693         * doc/posix-functions/wcstoumax.texi: Likewise.
25694
25695         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25697         * doc/posix-functions/fprintf.texi: Update.
25698         * doc/posix-functions/printf.texi: Update.
25699         * doc/posix-functions/snprintf.texi: Update.
25700         * doc/posix-functions/sprintf.texi: Update.
25701         * doc/posix-functions/vfprintf.texi: Update.
25702         * doc/posix-functions/vprintf.texi: Update.
25703         * doc/posix-functions/vsnprintf.texi: Update.
25704         * doc/posix-functions/vsprintf.texi: Update.
25705         * doc/glibc-functions/obstack_printf.texi: Update.
25706         * doc/glibc-functions/obstack_vprintf.texi: Update.
25707
25708 2009-02-26  Eric Blake  <ebb9@byu.net>
25709
25710         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25711         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25712         compilation bug by using runtime conversion.
25713         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25714         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25715         * modules/ceill-tests (Files): Use nan.h.
25716         * modules/floorl-tests (Files): Likewise.
25717         * modules/frexpl-tests (Files): Likewise.
25718         * modules/isnanl-tests (Files): Likewise.
25719         * modules/ldexpl-tests (Files): Likewise.
25720         * modules/roundl-tests (Files): Likewise.
25721         * modules/truncl-tests (Files): Likewise.
25722         * tests/test-ceill.c (main): Use a working NaN.
25723         * tests/test-floorl.c (main): Likewise.
25724         * tests/test-frexpl.c (main): Likewise.
25725         * tests/test-isnan.c (test_long_double): Likewise.
25726         * tests/test-isnanl.h (main): Likewise.
25727         * tests/test-ldexpl.h (main): Likewise.
25728         * tests/test-roundl.h (main): Likewise.
25729         * tests/test-truncl.h (main): Likewise.
25730         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25731
25732 2009-02-26  Eric Blake  <ebb9@byu.net>
25733             Bruno Haible  <bruno@clisp.org>
25734
25735         Work around a *printf bug with %ls on Solaris.
25736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25737         precision is specified, sprintf stops converting the wide string
25738         argument when the number of bytes that have been produced by this
25739         conversion equals or exceeds the precision.
25740         * doc/posix-functions/fprintf.texi: Update.
25741         * doc/posix-functions/printf.texi: Update.
25742         * doc/posix-functions/snprintf.texi: Update.
25743         * doc/posix-functions/sprintf.texi: Update.
25744         * doc/posix-functions/vfprintf.texi: Update.
25745         * doc/posix-functions/vprintf.texi: Update.
25746         * doc/posix-functions/vsnprintf.texi: Update.
25747         * doc/posix-functions/vsprintf.texi: Update.
25748         * doc/glibc-functions/obstack_printf.texi: Update.
25749         * doc/glibc-functions/obstack_vprintf.texi: Update.
25750
25751 2009-02-26  Eric Blake  <ebb9@byu.net>
25752
25753         stdlib: favor compiler check of random.h
25754         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25755         to avoid an ObjC random.h installed by Swarm.
25756
25757 2009-02-26  Bruno Haible  <bruno@clisp.org>
25758
25759         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25760         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25761         Reported by Gary V. Vaughan <gary@gnu.org>.
25762
25763 2009-02-26  Bruno Haible  <bruno@clisp.org>
25764
25765         Fix *printf behaviour regarding the %ls directive.
25766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25767         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25768         NEED_PRINTF_DIRECTIVE_LS.
25769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25770         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25772         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25773         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25774         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25775         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25780         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25784         * doc/posix-functions/fprintf.texi: Update.
25785         * doc/posix-functions/printf.texi: Update.
25786         * doc/posix-functions/snprintf.texi: Update.
25787         * doc/posix-functions/sprintf.texi: Update.
25788         * doc/posix-functions/vfprintf.texi: Update.
25789         * doc/posix-functions/vprintf.texi: Update.
25790         * doc/posix-functions/vsnprintf.texi: Update.
25791         * doc/posix-functions/vsprintf.texi: Update.
25792         * doc/glibc-functions/obstack_printf.texi: Update.
25793         * doc/glibc-functions/obstack_vprintf.texi: Update.
25794         Reported by Eric Blake.
25795
25796 2009-02-25  Bruno Haible  <bruno@clisp.org>
25797
25798         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25799         with known value.
25800         Reported by Gary V. Vaughan <gary@gnu.org>.
25801
25802 2009-02-25  Bruno Haible  <bruno@clisp.org>
25803
25804         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25805         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25806         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25807         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25808         Reported by Gary V. Vaughan <gary@gnu.org>.
25809
25810 2009-02-25  Bruno Haible  <bruno@clisp.org>
25811
25812         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25813         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25814         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25815         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25816         Reported by Gary V. Vaughan <gary@gnu.org>.
25817
25818 2009-02-25  Eric Blake  <ebb9@byu.net>
25819
25820         tests: skip fseek/ftell tests if ungetc is broken
25821         * m4/ungetc.m4: New file.
25822         * modules/fseek-tests: Split test, so ungetc dependency is
25823         separate from rest of test.
25824         * modules/fseeko-tests: Likewise.
25825         * modules/ftell-tests: Likewise.
25826         * modules/ftello-tests: Likewise.
25827         * tests/test-fseek.c (main): Isolate ungetc dependency.
25828         * tests/test-fseeko.c (main): Likewise.
25829         * tests/test-ftell.c (main): Likewise.
25830         * tests/test-ftello.c (main): Likewise.
25831         * tests/test-fseek2.sh: New file.
25832         * tests/test-fseeko2.sh: Likewise.
25833         * tests/test-ftell2.sh: Likewise.
25834         * tests/test-ftello2.sh: Likewise.
25835
25836 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
25837
25838         test-getaddrinfo: fix usage of skip return code 77
25839         * tests/test-gettaddrinfo.c: Return skip code 77 only
25840         for first occurance of skip (4x77 is not 77)
25841
25842 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25843
25844         strtod: avoid C99 decl-after-statement
25845         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25846
25847 2009-02-24  Eric Blake  <ebb9@byu.net>
25848
25849         strtod: detect HP-UX 11.31 bug
25850         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25851         Reported by Gary V. Vaughan.
25852
25853 2009-02-23  Bruno Haible  <bruno@clisp.org>
25854
25855         Fix invalid read past end of memory block.
25856         * lib/vasnprintf.c (DCHAR_SET): Define.
25857         (local_wcslen): Define only when needed.
25858         (local_strnlen, local_wcsnlen): New functions.
25859         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25860         directives that involve a conversion ourselves.
25861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25862         wcsnlen, mbrtowc, wcrtomb.
25863         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25864         * tests/test-vasprintf-posix.c (test_function): Likewise.
25865         * tests/test-snprintf-posix.h (test_function): Likewise.
25866         * tests/test-sprintf-posix.h (test_function): Likewise.
25867         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25868
25869 2009-02-22  Bruno Haible  <bruno@clisp.org>
25870
25871         Implement new clarified decomposition of Hangul syllables.
25872         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25873         of type LTV, return only a pairwise decomposition.
25874         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25875         Likewise.
25876         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25877         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25878         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25879
25880 2009-02-22  Bruno Haible  <bruno@clisp.org>
25881
25882         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25883         zero-length results and shrink excess allocated memory.
25884         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25885         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25886         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25887         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25888         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25889         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25890         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25891         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25892         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25893         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25894         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25895         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25896
25897 2009-02-21  Bruno Haible  <bruno@clisp.org>
25898
25899         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25900         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25901         spaces after a period. Put a space between a macro name and its
25902         argument list. Trivial rewordings.
25903         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25904         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25905         (main): Return 0 explicitly.
25906
25907 2009-02-21  Bruno Haible  <bruno@clisp.org>
25908
25909         Tests for module 'uninorm/filter'.
25910         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25911         * modules/uninorm/filter-tests: New file.
25912
25913         New module 'uninorm/filter'.
25914         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25915         uninorm_filter_flush, uninorm_filter_free): New declarations.
25916         * lib/uninorm/uninorm-filter.c: New file.
25917         * modules/uninorm/filter: New file.
25918
25919 2009-02-21  Bruno Haible  <bruno@clisp.org>
25920
25921         Tests for module 'uninorm/nfkc'.
25922         * tests/uninorm/test-nfkc.c: New file.
25923         * tests/uninorm/test-u8-nfkc.c: New file.
25924         * tests/uninorm/test-u16-nfkc.c: New file.
25925         * tests/uninorm/test-u32-nfkc.c: New file.
25926         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25927         * tests/uninorm/test-u32-nfkc-big.c: New file.
25928         * modules/uninorm/nfkc-tests: New file.
25929
25930         New module 'uninorm/nfkc'.
25931         * lib/uninorm/nfkc.c: New file.
25932         * modules/uninorm/nfkc: New file.
25933
25934         Tests for module 'uninorm/nfkd'.
25935         * tests/uninorm/test-nfkd.c: New file.
25936         * tests/uninorm/test-u8-nfkd.c: New file.
25937         * tests/uninorm/test-u16-nfkd.c: New file.
25938         * tests/uninorm/test-u32-nfkd.c: New file.
25939         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25940         * tests/uninorm/test-u32-nfkd-big.c: New file.
25941         * modules/uninorm/nfkd-tests: New file.
25942
25943         New module 'uninorm/nfkd'.
25944         * lib/uninorm/nfkd.c: New file.
25945         * modules/uninorm/nfkd: New file.
25946
25947         Tests for module 'uninorm/nfc'.
25948         * tests/uninorm/test-nfc.c: New file.
25949         * tests/uninorm/test-u8-nfc.c: New file.
25950         * tests/uninorm/test-u16-nfc.c: New file.
25951         * tests/uninorm/test-u32-nfc.c: New file.
25952         * tests/uninorm/test-u32-nfc-big.sh: New file.
25953         * tests/uninorm/test-u32-nfc-big.c: New file.
25954         * modules/uninorm/nfc-tests: New file.
25955
25956         New module 'uninorm/nfc'.
25957         * lib/uninorm/nfc.c: New file.
25958         * modules/uninorm/nfc: New file.
25959
25960         Tests for module 'uninorm/nfd'.
25961         * tests/uninorm/test-nfd.c: New file.
25962         * tests/uninorm/test-u8-nfd.c: New file.
25963         * tests/uninorm/test-u16-nfd.c: New file.
25964         * tests/uninorm/test-u32-nfd.c: New file.
25965         * tests/uninorm/test-u32-nfd-big.sh: New file.
25966         * tests/uninorm/test-u32-nfd-big.c: New file.
25967         * tests/uninorm/test-u32-normalize-big.h: New file.
25968         * tests/uninorm/test-u32-normalize-big.c: New file.
25969         * tests/uninorm/NormalizationTest.txt: New file, created from
25970         Unicode 5.1.0 NormalizationTest.txt.
25971         * modules/uninorm/nfd-tests: New file.
25972
25973         New module 'uninorm/nfd'.
25974         * lib/uninorm/nfd.c: New file.
25975         * modules/uninorm/nfd: New file.
25976
25977         New module 'uninorm/u32-normalize'.
25978         * lib/uninorm/u32-normalize.c: New file.
25979         * modules/uninorm/u32-normalize: New file.
25980
25981         New module 'uninorm/u16-normalize'.
25982         * lib/uninorm/u16-normalize.c: New file.
25983         * modules/uninorm/u16-normalize: New file.
25984
25985         New module 'uninorm/u8-normalize'.
25986         * lib/uninorm/u8-normalize.c: New file.
25987         * lib/uninorm/normalize-internal.h: New file.
25988         * lib/uninorm/u-normalize-internal.h: New file.
25989         * modules/uninorm/u8-normalize: New file.
25990
25991         New module 'uninorm/decompose-internal'.
25992         * lib/uninorm/decompose-internal.c: New file.
25993         * modules/uninorm/decompose-internal: New file.
25994
25995         Tests for module 'uninorm/composition'.
25996         * tests/uninorm/test-composition.c: New file.
25997         * modules/uninorm/composition-tests: New file.
25998
25999         New module 'uninorm/composition'.
26000         * lib/uninorm/composition.c: New file.
26001         * lib/uninorm/composition-table.gperf: New file, generated by
26002         gen-uni-tables.
26003         * modules/uninorm/composition: New file.
26004
26005         Tests for module 'uninorm/compat-decomposition'.
26006         * tests/uninorm/test-compat-decomposition.c: New file.
26007         * modules/uninorm/compat-decomposition-tests: New file.
26008
26009         New module 'uninorm/compat-decomposition'.
26010         * lib/uninorm/decompose-internal.h: New file.
26011         * lib/uninorm/compat-decomposition.c: New file.
26012         * modules/uninorm/compat-decomposition: New file.
26013
26014         Tests for module 'uninorm/canonical-decomposition'.
26015         * tests/uninorm/test-canonical-decomposition.c: New file.
26016         * modules/uninorm/canonical-decomposition-tests: New file.
26017
26018         New module 'uninorm/canonical-decomposition'.
26019         * lib/uninorm/canonical-decomposition.c: New file.
26020         * modules/uninorm/canonical-decomposition: New file.
26021
26022         Tests for module 'uninorm/decomposition'.
26023         * tests/uninorm/test-decomposition.c: New file.
26024         * modules/uninorm/decomposition-tests: New file.
26025
26026         New module 'uninorm/decomposition'.
26027         * lib/uninorm/decomposition.c: New file.
26028         * modules/uninorm/decomposition: New file.
26029
26030         New module 'uninorm/decomposition-table'.
26031         * lib/uninorm/decomposition-table.h: New file.
26032         * lib/uninorm/decomposition-table.c: New file.
26033         * lib/uninorm/decomposition-table1.h: New file, generated by
26034         gen-uni-tables.
26035         * lib/uninorm/decomposition-table2.h: New file, generated by
26036         gen-uni-tables.
26037         * modules/uninorm/decomposition-table: New file.
26038
26039         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26040         (UC_DECOMP_*): New enumeration items.
26041         (get_decomposition): New function.
26042         (struct decomp_table): New type.
26043         (output_decomposition, output_decomposition_tables): New functions.
26044         (unicode_composition_exclusions): New variable.
26045         (fill_composition_exclusions, debug_output_composition_tables): New
26046         functions.
26047         (main): Accept one more argument. Invoke fill_composition_exclusions.
26048         Output decomposition and composition tables.
26049
26050         New module 'uninorm/base'.
26051         * lib/uninorm.h: New file.
26052         * lib/unictype.h: Update comment.
26053         * modules/uninorm/base: New file.
26054
26055 2009-02-21  David Lutterkort  <lutter@redhat.com>
26056
26057         Tests for module 'safe-alloc'.
26058         * tests/test-safe-alloc.c: New file.
26059         * modules/safe-alloc-tests: New file.
26060
26061         New module 'safe-alloc'.
26062         * lib/safe-alloc.h: New file.
26063         * lib/safe-alloc.c: New file.
26064         * m4/safe-alloc.m4: New file.
26065         * modules/safe-alloc: New file.
26066         * doc/safe-alloc.texi: New file.
26067         * doc/gnulib.texi: Include it.
26068         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26069         safe-alloc.
26070
26071 2009-02-18  Bruno Haible  <bruno@clisp.org>
26072
26073         Fix link error on non-glibc systems.
26074         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26075         variable.
26076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26077
26078 2009-02-18  Jim Meyering  <meyering@redhat.com>
26079
26080         fts: avoid used-uninitialized error due to recent change
26081         * lib/fts.c (fts_read): Guard uses of the new member,
26082         parent->fts_n_dirs_remaining, since it's not relevant for
26083         the parent of a directory specified on the command-line.
26084
26085 2009-02-17  James Youngman  <jay@gnu.org>
26086             Bruno Haible  <bruno@clisp.org>
26087
26088         * m4/include_next.m4: Reformulate comment.
26089
26090 2009-02-16  Jim Meyering  <meyering@redhat.com>
26091
26092         fts: add #if guards so that the fts_lgpl module still builds
26093         * lib/fts.c: Guard just-added hash-table-using parts with
26094         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26095         Reported by Simon Josefsson.
26096
26097 2009-02-15  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/array-mergesort-tests: New file.
26100         * tests/test-array-mergesort.c: New file.
26101
26102         New module 'array-mergesort'.
26103         * modules/array-mergesort: New file.
26104         * lib/array-mergesort.h: New file.
26105
26106 2009-02-15  Bruno Haible  <bruno@clisp.org>
26107
26108         Fix 2009-02-07 commit.
26109         * lib/gen-uni-tables.c (output_predicate, output_category,
26110         output_combclass, output_bidi_category, output_decimal_digit,
26111         output_digit, output_numeric, output_mirror, output_scripts,
26112         output_ident_category, output_simple_mapping): Fix format directives.
26113         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26114
26115 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26116
26117         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26118         fixes are available from IBM.
26119
26120 2009-02-13  Jim Meyering  <meyering@redhat.com>
26121
26122         fts: arrange not to stat non-directories in more cases
26123         This makes GNU find (when it doesn't need to stat each file)
26124         *much* more efficient at traversing reiserfs file systems.
26125         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26126         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26127         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26128         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26129         (leaf_optimization_applies): New function.
26130         (LCO_hash, LCO_compare): New helper functions.
26131         (link_count_optimize_ok): New function.
26132         (fts_stat): Initialize new member (if dir).
26133         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26134         we've just stat'ed a directory.  Skip the stat call when possible.
26135         ---
26136         Note this AFS-related exchange:
26137         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26138         and note find's pioctl call in find/fstype.c.
26139         But that is necessary only if you want to enable the
26140         optimization for AFS, and for now, I don't.
26141
26142         fts: move a function definition "up" (no semantic change)
26143         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26144         "up" to precede upcoming use of a related function.
26145
26146 2009-02-11  Jim Meyering  <meyering@redhat.com>
26147
26148         fts: correct internal computation of nlinks (optimization-related)
26149         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26150         whether the current entry is a directory, so don't test it.
26151
26152 2009-02-10  Bruno Haible  <bruno@clisp.org>
26153
26154         Tests for module 'uniwbrk/ulc-wordbreaks'.
26155         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26156         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26157         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26158
26159         Tests for module 'uniwbrk/u32-wordbreaks'.
26160         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26161         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26162
26163         Tests for module 'uniwbrk/u16-wordbreaks'.
26164         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26165         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26166
26167         Tests for module 'uniwbrk/u8-wordbreaks'.
26168         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26169         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26170
26171 2009-02-10  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26174         property.
26175         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26176         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26177         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26178
26179 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26180
26181         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26182         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26183
26184 2009-02-10  Bruno Haible  <bruno@clisp.org>
26185
26186         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26187         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26188         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26189         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26190         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26191         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26192
26193 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26194
26195         * lib/sockets.h (gl_fd_to_handle): New function.
26196
26197         * tests/test-sockets.c: Call gl_fd_to_handle.
26198
26199 2009-02-09  Bruno Haible  <bruno@clisp.org>
26200
26201         * doc/havelib.texi: Document the conventions on bi-arch systems.
26202
26203 2009-02-08  Bruno Haible  <bruno@clisp.org>
26204
26205         Document the AC_LIB_LINKFLAGS macro.
26206         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26207         * doc/gnulib.texi: Include it.
26208
26209 2009-02-08  Bruno Haible  <bruno@clisp.org>
26210
26211         Fix wrong order of sections, compared to TOC.
26212         * doc/gnulib.texi: Include relocatable-maint.texi after the
26213         "Regular expressions" node, not before.
26214
26215 2009-02-08  Bruno Haible  <bruno@clisp.org>
26216
26217         Tests for module 'unicase/totitle'.
26218         * modules/unicase/totitle-tests: New file.
26219
26220         Tests for module 'unicase/tolower'.
26221         * modules/unicase/tolower-tests: New file.
26222
26223         Tests for module 'unicase/toupper'.
26224         * modules/unicase/toupper-tests: New file.
26225         * tests/unicase/test-mapping-part1.h: New file.
26226         * tests/unicase/test-mapping-part2.h: New file.
26227
26228         New module 'unicase/totitle'.
26229         * modules/unicase/totitle: New file.
26230         * lib/unicase/totitle.c: New file.
26231
26232         New module 'unicase/tolower'.
26233         * modules/unicase/tolower: New file.
26234         * lib/unicase/tolower.c: New file.
26235
26236         New module 'unicase/toupper'.
26237         * modules/unicase/toupper: New file.
26238         * lib/unicase/toupper.c: New file.
26239         * lib/unicase/simple-mapping.h: New file.
26240
26241         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26242         (mapping_table): New structure.
26243         (output_simple_mapping): New function.
26244         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26245         * modules/gen-uni-tables (Description): Update.
26246         * lib/unicase/toupper.h: New file, automatically generated by
26247         gen-uni-tables.
26248         * lib/unicase/tolower.h: New file, automatically generated by
26249         gen-uni-tables.
26250         * lib/unicase/totitle.h: New file, automatically generated by
26251         gen-uni-tables.
26252         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26253         gen-uni-tables.
26254         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26255         gen-uni-tables.
26256         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26257         gen-uni-tables.
26258
26259         New module 'unicase/base'.
26260         * modules/unicase/base: New file.
26261         * lib/unicase.h: New file.
26262
26263 2009-02-08  Bruno Haible  <bruno@clisp.org>
26264
26265         New module 'uniwbrk/ulc-wordbreaks'.
26266         * modules/uniwbrk/ulc-wordbreaks: New file.
26267         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26268
26269         New module 'uniwbrk/u32-wordbreaks'.
26270         * modules/uniwbrk/u32-wordbreaks: New file.
26271         * lib/uniwbrk/u32-wordbreaks.c: New file.
26272
26273         New module 'uniwbrk/u16-wordbreaks'.
26274         * modules/uniwbrk/u16-wordbreaks: New file.
26275         * lib/uniwbrk/u16-wordbreaks.c: New file.
26276
26277         New module 'uniwbrk/u8-wordbreaks'.
26278         * modules/uniwbrk/u8-wordbreaks: New file.
26279         * lib/uniwbrk/u8-wordbreaks.c: New file.
26280         * lib/uniwbrk/u-wordbreaks.h: New file.
26281
26282         New module 'uniwbrk/table'.
26283         * modules/uniwbrk/table: New file.
26284         * lib/uniwbrk/wbrktable.h: New file.
26285         * lib/uniwbrk/wbrktable.c: New file.
26286
26287         New module 'uniwbrk/wordbreak-property'.
26288         * modules/uniwbrk/wordbreak-property: New file.
26289         * lib/uniwbrk/wordbreak-property.c: New file.
26290
26291         * lib/gen-uni-tables.c (WBP_*): New enum items.
26292         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26293         (unicode_org_wbp): New variable.
26294         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26295         New functions.
26296         (wbp_table): New structure.
26297         (output_wbp, output_wbrk_tables): New functions.
26298         (main): Accept additional argument. Invoke fill_org_wbp,
26299         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26300         output_wbrk_tables.
26301         * modules/gen-uni-tables (Description): Update.
26302         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26303         gen-uni-tables.
26304
26305         New module 'uniwbrk/base'.
26306         * modules/uniwbrk/base: New file.
26307         * lib/uniwbrk.h: New file.
26308
26309 2009-02-08  Bruno Haible  <bruno@clisp.org>
26310
26311         Update to Unicode 5.1.0.
26312         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26313         U+2185..U+2188.
26314         (is_property_default_ignorable_code_point): Don't include characters
26315         of category Cc or Cs and not-a-characters.
26316         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26317         U+0D79, U+109E, U+109F, U+A60C.
26318         * lib/unictype/bidi_of.h: Regenerated.
26319         * lib/unictype/blocks.h: Regenerated.
26320         * lib/unictype/categ_C.h: Regenerated.
26321         * lib/unictype/categ_Cf.h: Regenerated.
26322         * lib/unictype/categ_Cn.h: Regenerated.
26323         * lib/unictype/categ_L.h: Regenerated.
26324         * lib/unictype/categ_Ll.h: Regenerated.
26325         * lib/unictype/categ_Lm.h: Regenerated.
26326         * lib/unictype/categ_Lo.h: Regenerated.
26327         * lib/unictype/categ_Lu.h: Regenerated.
26328         * lib/unictype/categ_M.h: Regenerated.
26329         * lib/unictype/categ_Mc.h: Regenerated.
26330         * lib/unictype/categ_Me.h: Regenerated.
26331         * lib/unictype/categ_Mn.h: Regenerated.
26332         * lib/unictype/categ_N.h: Regenerated.
26333         * lib/unictype/categ_Nd.h: Regenerated.
26334         * lib/unictype/categ_Nl.h: Regenerated.
26335         * lib/unictype/categ_No.h: Regenerated.
26336         * lib/unictype/categ_P.h: Regenerated.
26337         * lib/unictype/categ_Pd.h: Regenerated.
26338         * lib/unictype/categ_Pe.h: Regenerated.
26339         * lib/unictype/categ_Pf.h: Regenerated.
26340         * lib/unictype/categ_Pi.h: Regenerated.
26341         * lib/unictype/categ_Po.h: Regenerated.
26342         * lib/unictype/categ_Ps.h: Regenerated.
26343         * lib/unictype/categ_S.h: Regenerated.
26344         * lib/unictype/categ_Sk.h: Regenerated.
26345         * lib/unictype/categ_Sm.h: Regenerated.
26346         * lib/unictype/categ_So.h: Regenerated.
26347         * lib/unictype/categ_of.h: Regenerated.
26348         * lib/unictype/combining.h: Regenerated.
26349         * lib/unictype/ctype_alnum.h: Regenerated.
26350         * lib/unictype/ctype_alpha.h: Regenerated.
26351         * lib/unictype/ctype_graph.h: Regenerated.
26352         * lib/unictype/ctype_lower.h: Regenerated.
26353         * lib/unictype/ctype_print.h: Regenerated.
26354         * lib/unictype/ctype_punct.h: Regenerated.
26355         * lib/unictype/ctype_upper.h: Regenerated.
26356         * lib/unictype/decdigit.h: Regenerated.
26357         * lib/unictype/digit.h: Regenerated.
26358         * lib/unictype/mirror.h: Regenerated.
26359         * lib/unictype/numeric.h: Regenerated.
26360         * lib/unictype/pr_alphabetic.h: Regenerated.
26361         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26362         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26363         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26364         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26365         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26366         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26367         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26368         * lib/unictype/pr_combining.h: Regenerated.
26369         * lib/unictype/pr_dash.h: Regenerated.
26370         * lib/unictype/pr_decimal_digit.h: Regenerated.
26371         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26372         * lib/unictype/pr_deprecated.h: Regenerated.
26373         * lib/unictype/pr_diacritic.h: Regenerated.
26374         * lib/unictype/pr_extender.h: Regenerated.
26375         * lib/unictype/pr_format_control.h: Regenerated.
26376         * lib/unictype/pr_grapheme_base.h: Regenerated.
26377         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26378         * lib/unictype/pr_grapheme_link.h: Regenerated.
26379         * lib/unictype/pr_id_continue.h: Regenerated.
26380         * lib/unictype/pr_id_start.h: Regenerated.
26381         * lib/unictype/pr_ideographic.h: Regenerated.
26382         * lib/unictype/pr_ignorable_control.h: Regenerated.
26383         * lib/unictype/pr_lowercase.h: Regenerated.
26384         * lib/unictype/pr_math.h: Regenerated.
26385         * lib/unictype/pr_numeric.h: Regenerated.
26386         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26387         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26388         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26389         * lib/unictype/pr_other_id_continue.h: Regenerated.
26390         * lib/unictype/pr_other_lowercase.h: Regenerated.
26391         * lib/unictype/pr_other_math.h: Regenerated.
26392         * lib/unictype/pr_punctuation.h: Regenerated.
26393         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26394         * lib/unictype/pr_soft_dotted.h: Regenerated.
26395         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26396         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26397         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26398         * lib/unictype/pr_uppercase.h: Regenerated.
26399         * lib/unictype/pr_xid_continue.h: Regenerated.
26400         * lib/unictype/pr_xid_start.h: Regenerated.
26401         * lib/unictype/pr_zero_width.h: Regenerated.
26402         * lib/unictype/scripts.h: Regenerated.
26403         * lib/unictype/scripts_byname.gperf: Regenerated.
26404         * lib/unictype/sy_java_ident.h: Regenerated.
26405         * lib/unilbrk/lbrkprop1.h: Regenerated.
26406         * lib/unilbrk/lbrkprop2.h: Regenerated.
26407         * tests/unictype/test-categ_C.c: Regenerated.
26408         * tests/unictype/test-categ_Cf.c: Regenerated.
26409         * tests/unictype/test-categ_Cn.c: Regenerated.
26410         * tests/unictype/test-categ_L.c: Regenerated.
26411         * tests/unictype/test-categ_Ll.c: Regenerated.
26412         * tests/unictype/test-categ_Lm.c: Regenerated.
26413         * tests/unictype/test-categ_Lo.c: Regenerated.
26414         * tests/unictype/test-categ_Lu.c: Regenerated.
26415         * tests/unictype/test-categ_M.c: Regenerated.
26416         * tests/unictype/test-categ_Mc.c: Regenerated.
26417         * tests/unictype/test-categ_Me.c: Regenerated.
26418         * tests/unictype/test-categ_Mn.c: Regenerated.
26419         * tests/unictype/test-categ_N.c: Regenerated.
26420         * tests/unictype/test-categ_Nd.c: Regenerated.
26421         * tests/unictype/test-categ_Nl.c: Regenerated.
26422         * tests/unictype/test-categ_No.c: Regenerated.
26423         * tests/unictype/test-categ_P.c: Regenerated.
26424         * tests/unictype/test-categ_Pd.c: Regenerated.
26425         * tests/unictype/test-categ_Pe.c: Regenerated.
26426         * tests/unictype/test-categ_Pf.c: Regenerated.
26427         * tests/unictype/test-categ_Pi.c: Regenerated.
26428         * tests/unictype/test-categ_Po.c: Regenerated.
26429         * tests/unictype/test-categ_Ps.c: Regenerated.
26430         * tests/unictype/test-categ_S.c: Regenerated.
26431         * tests/unictype/test-categ_Sk.c: Regenerated.
26432         * tests/unictype/test-categ_Sm.c: Regenerated.
26433         * tests/unictype/test-categ_So.c: Regenerated.
26434         * tests/unictype/test-ctype_alnum.c: Regenerated.
26435         * tests/unictype/test-ctype_alpha.c: Regenerated.
26436         * tests/unictype/test-ctype_graph.c: Regenerated.
26437         * tests/unictype/test-ctype_lower.c: Regenerated.
26438         * tests/unictype/test-ctype_print.c: Regenerated.
26439         * tests/unictype/test-ctype_punct.c: Regenerated.
26440         * tests/unictype/test-ctype_upper.c: Regenerated.
26441         * tests/unictype/test-decdigit.h: Regenerated.
26442         * tests/unictype/test-digit.h: Regenerated.
26443         * tests/unictype/test-numeric.h: Regenerated.
26444         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26445         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26446         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26447         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26448         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26449         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26450         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26451         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26452         * tests/unictype/test-pr_combining.c: Regenerated.
26453         * tests/unictype/test-pr_dash.c: Regenerated.
26454         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26455         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26456         * tests/unictype/test-pr_deprecated.c: Regenerated.
26457         * tests/unictype/test-pr_diacritic.c: Regenerated.
26458         * tests/unictype/test-pr_extender.c: Regenerated.
26459         * tests/unictype/test-pr_format_control.c: Regenerated.
26460         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26461         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26462         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26463         * tests/unictype/test-pr_id_continue.c: Regenerated.
26464         * tests/unictype/test-pr_id_start.c: Regenerated.
26465         * tests/unictype/test-pr_ideographic.c: Regenerated.
26466         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26467         * tests/unictype/test-pr_lowercase.c: Regenerated.
26468         * tests/unictype/test-pr_math.c: Regenerated.
26469         * tests/unictype/test-pr_numeric.c: Regenerated.
26470         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26471         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26472         Regenerated.
26473         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26474         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26475         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26476         * tests/unictype/test-pr_other_math.c: Regenerated.
26477         * tests/unictype/test-pr_punctuation.c: Regenerated.
26478         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26479         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26480         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26481         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26482         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26483         * tests/unictype/test-pr_uppercase.c: Regenerated.
26484         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26485         * tests/unictype/test-pr_xid_start.c: Regenerated.
26486         * tests/unictype/test-pr_zero_width.c: Regenerated.
26487
26488         Update to Unicode 5.1.0.
26489         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26490         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26491         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26492         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26493         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26494         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26495         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26496         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26497         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26498         (nonspacing_table_ind): Update.
26499         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26500
26501         Update to Unicode 5.1.0.
26502         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26503         code transform.
26504         * lib/uniname/uniname.c (unicode_character_name,
26505         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26506         * lib/uniname/uninames.h: Regenerated.
26507         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26508
26509 2009-02-07  Bruno Haible  <bruno@clisp.org>
26510
26511         Merge gen-ctype and gen-lbrk into a single program.
26512         * lib/gen-uni-tables.c: New file, incorporating
26513         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26514         Add directory prefixes to the names of the generated files.
26515         * lib/unictype/gen-ctype.c: Remove file.
26516         * lib/unilbrk/gen-lbrk.c: Remove file.
26517         * modules/gen-uni-tables: New file.
26518         * modules/unictype/gen-ctype: Remove file.
26519         * modules/unilbrk/gen-lbrk: Remove file.
26520
26521 2009-02-07  Bruno Haible  <bruno@clisp.org>
26522
26523         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26524
26525         New module 'unistr/u32-strcoll'.
26526         * modules/unistr/u32-strcoll: New file.
26527         * lib/unistr/u32-strcoll.c: New file.
26528
26529         New module 'unistr/u16-strcoll'.
26530         * modules/unistr/u16-strcoll: New file.
26531         * lib/unistr/u16-strcoll.c: New file.
26532
26533         New module 'unistr/u8-strcoll'.
26534         * modules/unistr/u8-strcoll: New file.
26535         * lib/unistr/u8-strcoll.c: New file.
26536         * lib/unistr/u-strcoll.h: New file.
26537
26538 2009-02-07  Bruno Haible  <bruno@clisp.org>
26539
26540         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26541         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26542         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26543         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26544         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26545         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26546
26547 2009-02-07  Bruno Haible  <bruno@clisp.org>
26548
26549         Make 64-bit clean.
26550         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26551         output_combclass, output_bidi_category, output_decimal_digit,
26552         output_digit, output_numeric, output_mirror, output_scripts,
26553         output_ident_category): Use proper width specifier in format strings.
26554
26555 2009-02-07  Bruno Haible  <bruno@clisp.org>
26556
26557         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26558         failure behaviour.
26559
26560 2009-02-07  Jim Meyering  <meyering@redhat.com>
26561
26562         regex: avoid compilation failure with upcoming gcc-4.4
26563         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26564         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26565         "... error: integer overflow in preprocessor expression".
26566
26567 2009-02-05  Ben Pfaff  <blp@gnu.org>
26568
26569         Fix link errors on Windows when close module is used.
26570         * modules/close: Add $(LIB_CLOSE) to Link section.
26571         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26572         $(LIB_CLOSE) on Windows.
26573
26574 2009-02-05  Jim Meyering  <meyering@redhat.com>
26575
26576         still avoid unused-parameter warnings, but do it cleanly
26577         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26578         (get_fs_usage): Cast to void instead.
26579         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26580         (dev_from_mount_options, read_file_system_list): Cast to void.
26581         Prompted by Bruno Haible.
26582
26583 2009-02-04  Jim Meyering  <meyering@redhat.com>
26584
26585         fsusage.c: correct copyright year
26586         * lib/fsusage.c: Reflect year in which the change is pushed into
26587
26588         avoid misc. warnings
26589         * lib/fsusage.c (UNUSED_PARAM): Define.
26590         (get_fs_usage): Mark parameter "disk" as unused.
26591         * lib/getugroups.c (getgrent): Use "void" in prototype.
26592         * lib/mountlist.c: Mark unused parameters.
26593         (read_file_system_list): Declare a local with "const".
26594         * lib/nanosleep.c (getnow): Declare static.
26595         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26596
26597         dirfd: set errno upon failure
26598         * lib/dirfd.c: Include <errno.h>.
26599         Set errno to ENOTSUP when returning -1.
26600         * modules/dirfd (Depends-on): Add errno.
26601         Suggested by John Kodis <kodis@comcast.net>.
26602
26603 2009-02-01  Bruno Haible  <bruno@clisp.org>
26604
26605         Don't assume sizeof (long) >= sizeof (void *).
26606         * lib/memcmp.c: Include stdint.h.
26607         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26608         srcp2 to 'const byte *'.
26609         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26610         types to uintptr_t.
26611         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26612         * modules/memcmp (Depends-on): Add stdint.
26613         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26614
26615 2009-01-30  Eric Blake  <ebb9@byu.net>
26616
26617         fix more require-before-expand issues
26618         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26619         expand, AC_PROG_AWK.
26620         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26621
26622 2009-01-28  Eric Blake  <ebb9@byu.net>
26623
26624         version-etc: use consistent URL formatting
26625         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26626         Improve formatting.  Use fputs for string without %.
26627
26628 2009-01-28  Jim Meyering  <meyering@redhat.com>
26629
26630         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26631         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26632         "underquoted definition of NAME" from autoconf-2.59.
26633
26634 2009-01-28  Bruno Haible  <bruno@clisp.org>
26635
26636         * doc/gnulib.texi: Add "Obsolete modules" to index.
26637
26638 2009-01-28  Jim Meyering  <meyering@redhat.com>
26639
26640         useless-if-before-free: recognize more variants
26641         * build-aux/useless-if-before-free: Also recognize e.g.,
26642         if (NULL != p) free (p);
26643
26644 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26645
26646         test-getaddrinfo: skip (don't fail) this test when there's no network
26647         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26648         on the presumption that it means you lack network access.
26649
26650 2009-01-26  Jim Meyering  <meyering@redhat.com>
26651
26652         fflush: avoid warnings on modern systems
26653         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26654         pos and result, into scopes where they're used.
26655
26656 2009-01-26  Eric Blake  <ebb9@byu.net>
26657
26658         Silence warning reintroduced by recent extensions patch.
26659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26660         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26661         autoconf.
26662
26663         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26664         * m4/00gnulib.m4: New file.
26665         * gnulib-tool (func_get_filelist): Always use it.
26666         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26667         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26668
26669 2009-01-25  Bruno Haible  <bruno@clisp.org>
26670
26671         Make test-quotearg work on MacOS X and AIX.
26672         * tests/test-quotearg.sh: New file.
26673         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26674         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26675         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26676         include <libintl.h>.
26677         (fake_locale): Remove variable.
26678         (gettext, dgettext, dcgettext): Remove functions.
26679         (main): Instead of setting a fake locale, set a real locale. Call
26680         textdomain and bindtextdomain.
26681         * modules/quotearg-tests (Files): Add the new files.
26682         (Depends-on): Add gettext, setenv, unsetenv.
26683         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26684         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26685         Augment TESTS_ENVIRONMENT.
26686
26687 2009-01-25  Bruno Haible  <bruno@clisp.org>
26688
26689         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26690         fr_FR.ISO8859-1 locale on MacOS X.
26691         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26692         ja_JP.eucJP locale on MacOS X.
26693         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26694         zh_CN.GB18030 locale on MacOS X.
26695
26696 2009-01-25  Bruno Haible  <bruno@clisp.org>
26697
26698         Avoid link errors on MacOS X 10.3.
26699         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26700         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26701
26702 2009-01-25  Bruno Haible  <bruno@clisp.org>
26703
26704         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26705         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26706         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26707         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26708         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26709         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26710         posix_spawnattr_init, posix_spawnattr_setsigmask,
26711         posix_spawnattr_setflags, posix_spawnattr_destroy.
26712
26713         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26714         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26715         * modules/execute (Files): Remove m4/posix_spawn.m4.
26716         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26717         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26718         posix_spawnattr_init, posix_spawnattr_setsigmask,
26719         posix_spawnattr_setflags, posix_spawnattr_destroy.
26720
26721 2009-01-25  Bruno Haible  <bruno@clisp.org>
26722
26723         * lib/glthread/threadlib.c: Include <stdlib.h>.
26724
26725 2009-01-25  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/glthread/threadlib.c (dummy): New declaration.
26728
26729 2009-01-25  Bruno Haible  <bruno@clisp.org>
26730
26731         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26732         multibyte characters also for the GB18030 encoding. Don't crash when
26733         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26734
26735 2009-01-25  Bruno Haible  <bruno@clisp.org>
26736
26737         Avoid redefining 'struct random_data' on OSF/1 5.1.
26738         * lib/stdlib.in.h: Include <random.h> if it exists.
26739         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26740         HAVE_RANDOM_H. Include <random.h> when testing whether
26741         'struct random_data' exists.
26742         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26743
26744 2009-01-25  Bruno Haible  <bruno@clisp.org>
26745
26746         Don't install charset.alias on MacOS X >= 10.3.
26747         * lib/localcharset.c (DARWIN7): New macro.
26748         (get_charset_aliases): Hardcode the result for Darwin7.
26749         * modules/localcharset (install-exec-local): Don't install
26750         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26751
26752 2009-01-25  Bruno Haible  <bruno@clisp.org>
26753
26754         Don't install charset.alias on mingw and Cygwin.
26755         * modules/localcharset (install-exec-local): Don't install
26756         charset.alias on mingw and Cygwin, if the file does not yet exist.
26757         The result for these platforms is hardcoded in localcharset.c.
26758
26759 2009-01-25  Bruno Haible  <bruno@clisp.org>
26760
26761         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26763         before requiring AC_USE_SYSTEM_EXTENSIONS.
26764
26765 2009-01-25  Jim Meyering  <meyering@redhat.com>
26766
26767         c-strtod: avoid warnings
26768         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26769         "assignment discards qualifiers from pointer target type" warnings.
26770
26771 2009-01-24  Bruno Haible  <bruno@clisp.org>
26772
26773         Add support for non-UTF-8 locales on MacOS X.
26774         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26775         canonical encodings. For Darwin 7 and newer, don't map traditional
26776         encodings to UTF-8.
26777         Reported by Vincent Lefevre <vincent@vinc17.org>
26778         at <http://savannah.gnu.org/bugs/?25235>.
26779
26780 2009-01-24  Bruno Haible  <bruno@clisp.org>
26781
26782         * doc/gnulib.texi (Obsolete modules): New section.
26783         Reported by Mike Frysinger <vapier@gentoo.org>.
26784
26785 2009-01-24  Bruno Haible  <bruno@clisp.org>
26786
26787         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26788         (%.dvi): New rule.
26789
26790 2009-01-24  Bruno Haible  <bruno@clisp.org>
26791
26792         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26793         Reported by Eric Blake.
26794
26795 2009-01-24  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26798         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26799         Reported by Gary V. Vaughan <gary@gnu.org>.
26800
26801 2009-01-24  Bruno Haible  <bruno@clisp.org>
26802
26803         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26804
26805 2009-01-23  Bruno Haible  <bruno@clisp.org>
26806
26807         Make c-strtod, c-strtold usable in libraries.
26808         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26809         (C_STRTOD): Call strdup instead of xstrdup.
26810         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26811         * modules/c-strtold (Depends-on): Likewise.
26812         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26813         * NEWS: Mention the change.
26814         Reported by Michael Gold <mgold@ncf.ca>.
26815
26816 2009-01-23  Jim Meyering  <meyering@redhat.com>
26817
26818         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26819         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26820         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26821
26822 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26823
26824         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26825         GNU CoreUtils.
26826         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26827         * modules/version-etc (Description): Update.
26828
26829 2009-01-22  Bruno Haible  <bruno@clisp.org>
26830
26831         Cache the C locale object.
26832         * lib/c-strtod.c (c_locale_cache): New variable.
26833         (c_locale): New function.
26834         (C_STRTOD): Use it, and don't call freelocale.
26835         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26836         Suggested by Paolo Bonzini.
26837
26838 2009-01-21  Bruno Haible  <bruno@clisp.org>
26839
26840         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26841         conditions other than overflow.
26842
26843 2009-01-21  Bruno Haible  <bruno@clisp.org>
26844
26845         * lib/c-strtod.c: Include errno.h.
26846         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26847         value from STRTOD_L and STRTOD.
26848
26849 2009-01-21  Bruno Haible  <bruno@clisp.org>
26850         and Jim Meyering  <meyering@redhat.com>
26851
26852         nanosleep: skip configure test (fail it) for apple universal builds
26853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26854         universal builds, assume that nanosleep does not work.
26855         * modules/nanosleep (Depends-on): Add multiarch.
26856
26857         mktime: skip configure test (fail it) for apple universal builds
26858         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26859         universal builds, assume that mktime does not work.
26860         * modules/mktime (Depends-on): Add multiarch.
26861
26862 2009-01-21  Eric Blake  <ebb9@byu.net>
26863
26864         multiarch: avoid expand-before-require warning
26865         * modules/multiarch (configure.ac): Require, rather than expand,
26866         gl_MULTIARCH.
26867         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26868         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26869         enforce that all clients require it.  Partial reversion of
26870         2008-12-29 patch.
26871
26872         error: avoid expand-before-require warning
26873         * modules/errno (configure.ac): Require, rather than expand,
26874         gl_HEADER_ERRNO_H.
26875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26876         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26877         enforce that all clients require it.
26878
26879         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26880         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26881         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26882         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26883
26884 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26885
26886         Revert:
26887         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26888
26889         regex: do not depend on obsolete modules.
26890         * modules/regex: Remove memcmp and memmove.
26891
26892 2009-01-20  Bruno Haible  <bruno@clisp.org>
26893
26894         Make the 'link' module link on Windows NT 4.
26895         * lib/link.c (_WIN32_WINNT): Don't define.
26896         (CreateHardLinkFuncType): New type.
26897         (CreateHardLinkFunc, initialized): New variables.
26898         (initialize): New function.
26899         (link): Invoke CreateHardLink indirectly through the function pointer.
26900
26901 2009-01-20  Bruno Haible  <bruno@clisp.org>
26902
26903         Fix compilation failure on mingw.
26904         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26905
26906 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26907
26908         * doc/c-strtod.texi: Mention a couple of restrictions.
26909
26910 2009-01-20  Jim Meyering  <meyering@redhat.com>
26911
26912         gettimeofday: move more declarations out of functions
26913         * lib/gettimeofday.c: Move extern declarations of tzset and
26914         gmtime out of containing functions.  Prompted by Bruno Haible.
26915
26916 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26917
26918         regex: do not depend on obsolete modules.
26919         * modules/regex: Remove memcmp and memmove.
26920
26921 2009-01-19  Bruno Haible  <bruno@clisp.org>
26922
26923         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26924         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26925         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26926         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26927         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26928
26929 2009-01-19  Bruno Haible  <bruno@clisp.org>
26930
26931         * tests/test-link.c: Include <errno.h>.
26932         (main): Exit with code 77 when a hard link cannot be created due to
26933         the file system.
26934         * tests/test-link.sh: Skip test when a hard link cannot be created due
26935         to the file system.
26936         Suggested by Eric Blake.
26937
26938 2009-01-19  Martin Lambers  <marlam@marlam.de>
26939
26940         * modules/link-tests: New file.
26941         * tests/test-link.sh: New file.
26942         * tests/test-link.c: New file.
26943
26944 2009-01-19  Eric Blake  <ebb9@byu.net>
26945
26946         doc: mention another function added in cygwin 1.7.0
26947         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26948         Another new function in cygwin 1.7.
26949
26950 2009-01-19  Bruno Haible  <bruno@clisp.org>
26951
26952         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26953         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26954         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26955         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26956         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26957         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26958         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26959         * m4/md4.m4 (gl_MD4): Likewise.
26960         * m4/md5.m4 (gl_MD5): Likewise.
26961         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26962         * m4/sha1.m4 (gl_SHA1): Likewise.
26963         * m4/sha256.m4 (gl_SHA256): Likewise.
26964         * m4/sha512.m4 (gl_SHA512): Likewise.
26965
26966 2009-01-19  Bruno Haible  <bruno@clisp.org>
26967
26968         * modules/uniname/uniname-tests (Depends-on): Add progname.
26969         * tests/uniname/test-uninames.c: Include progname.h.
26970         (main): Call set_program_name.
26971
26972         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26973         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26974         (main): Call set_program_name.
26975
26976         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26977         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26978         (main): Call set_program_name.
26979
26980         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26981         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26982         (main): Call set_program_name.
26983
26984         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26985         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26986         (main): Call set_program_name.
26987
26988         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26989         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26990         (main): Call set_program_name.
26991
26992         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26993         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26994         (main): Call set_program_name.
26995
26996         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26997         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26998         (main): Call set_program_name.
26999
27000         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27001         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27002         (main): Call set_program_name.
27003
27004 2009-01-19  Eric Blake  <ebb9@byu.net>
27005
27006         test-unistd: test previous patch
27007         * tests/test-unistd.c: Test *_FILENO macros.
27008
27009         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27010         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27011         Guarantee a definition.
27012         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27013         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27014         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27015         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27016         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27017         Likewise.
27018         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27019         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27020         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27021         Likewise.
27022         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27023         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27024         (STDERR_FILENO): Likewise.
27025         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27026         (STDERR_FILENO): Likewise.
27027         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27028         (STDERR_FILENO): Likewise.
27029         Reported by Elbert Pol.
27030
27031 2009-01-19  Eric Blake  <ebb9@byu.net>
27032
27033         doc: mention more functions added in cygwin 1.7.0
27034         * doc/posix-functions/abort.texi (abort): Update wording related
27035         to cygwin.
27036         * doc/posix-functions/daylight.texi (daylight): Likewise.
27037         * doc/posix-functions/optarg.texi (optarg): Likewise.
27038         * doc/posix-functions/optarg.texi (opterr): Likewise.
27039         * doc/posix-functions/optarg.texi (optind): Likewise.
27040         * doc/posix-functions/optarg.texi (optopt): Likewise.
27041         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27042         worked in 1.5.x, and was withdrawn in 1.7.
27043         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27044         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27045         cygwin versions.
27046         * doc/posix-functions/perror.texi (perror): Likewise.
27047         * doc/posix-functions/printf.texi (printf): Likewise.
27048         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27049         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27050         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27051         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27052         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27053         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27054         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27055         Likewise.
27056         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27057         Likewise.
27058         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27059         this function.
27060         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27061         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27062         Likewise.
27063         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27064         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27065         * doc/posix-functions/confstr.texi (confstr): Likewise.
27066         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27067         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27068         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27069         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27070         * doc/posix-functions/fputws.texi (fputws): Likewise.
27071         * doc/posix-functions/fwide.texi (fwide): Likewise.
27072         * doc/posix-functions/getwc.texi (getwc): Likewise.
27073         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27074         * doc/posix-functions/putwc.texi (putwc): Likewise.
27075         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27076         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27077         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27078         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27079         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27080         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27081         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27082         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27083         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27084         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27085         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27086
27087 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27088
27089         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27090         * lib/ioctl.c: Include <sys/ioctl.h>.
27091
27092 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27093
27094         * modules/getdate-tests (Depends-on): Add progname.
27095         * tests/test-getdate.c: Use progname module, to avoid link errors
27096         on non-glibc systems.
27097
27098 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27099
27100         * modules/filenamecat-tests (Depends-on): Add progname.
27101         * modules/fstrcmp-tests (Depends-on): Likewise.
27102
27103         * tests/test-filenamecat.c: Use progname module, to avoid link
27104         errors on non-glibc systems.
27105         * tests/test-fstrcmp.c: Likewise.
27106
27107 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27108
27109         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27110         * lib/gettimeofday.c: Move extern declaration out of function.
27111
27112 2009-01-18  Bruno Haible  <bruno@clisp.org>
27113
27114         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27115         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27116         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27117
27118 2009-01-18  Bruno Haible  <bruno@clisp.org>
27119
27120         * lib/strftime.c (MEMPCPY): Remove unused macro.
27121         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27122
27123 2009-01-18  Martin Lambers  <marlam@marlam.de>
27124
27125         New module 'link'.
27126         * lib/unistd.in.h (link): New declaration.
27127         * lib/link.c: New file.
27128         * m4/link.m4: New file.
27129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27130         HAVE_LINK.
27131         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27132         * modules/link: New file.
27133         * doc/posix-functions/link.texi: Mention the new module.
27134
27135 2009-01-18  Bruno Haible  <bruno@clisp.org>
27136
27137         * tests/test-avltree_list.c (main): Call set_program_name.
27138         * tests/test-avltree_oset.c (main): Likewise.
27139         * tests/test-obstack-printf.c: Include progname.h.
27140         (main): Call set_program_name.
27141         * tests/test-quotearg.c: Include progname.h.
27142         (main): Call set_program_name.
27143         * tests/test-xmemdup0.c: Include progname.h.
27144         (main): Call set_program_name.
27145
27146 2009-01-18  Bruno Haible  <bruno@clisp.org>
27147
27148         New module 'alphasort'.
27149         * lib/dirent.in.h (alphasort): New declaration.
27150         * lib/alphasort.c: New file, from glibc with modifications.
27151         * m4/alphasort.m4: New file.
27152         * modules/alphasort: New file.
27153         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27154         HAVE_ALPHASORT.
27155         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27156         HAVE_ALPHASORT.
27157         * doc/posix-functions/alphasort.texi: Mention the new module and the
27158         portability problems.
27159
27160 2009-01-18  Bruno Haible  <bruno@clisp.org>
27161
27162         New module 'scandir'.
27163         * lib/dirent.in.h (scandir): New declaration.
27164         * lib/scandir.c: New file, from glibc with modifications.
27165         * m4/scandir.m4: New file.
27166         * modules/scandir: New file.
27167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27168         HAVE_SCANDIR.
27169         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27170         HAVE_SCANDIR.
27171         * doc/posix-functions/scandir.texi: Mention the new module and the
27172         portability problems.
27173
27174 2009-01-17  Bruno Haible  <bruno@clisp.org>
27175
27176         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27177         Update documentation.
27178         (func_remove_suffix): Escape all dots in the suffix. Update
27179         documentation.
27180         (func_filter_filelist): Update documentation.
27181         Reported by Ralf Wildenhues.
27182
27183 2009-01-17  Bruno Haible  <bruno@clisp.org>
27184
27185         * modules/dprintf-posix-tests: New file.
27186         * tests/test-dprintf-posix.sh: New file.
27187         * tests/test-dprintf-posix.c: New file.
27188
27189         New modules 'dprintf', 'dprintf-posix'.
27190         * lib/stdio.in.h (dprintf): New declaration.
27191         * lib/dprintf.c: New file.
27192         * m4/dprintf.m4: New file.
27193         * m4/dprintf-posix.m4: New file.
27194         * modules/dprintf: New file.
27195         * modules/dprintf-posix: New file.
27196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27197         HAVE_DPRINTF, REPLACE_DPRINTF.
27198         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27199         HAVE_DPRINTF, REPLACE_DPRINTF.
27200         * doc/posix-functions/dprintf.texi: Mention the new modules.
27201
27202 2009-01-17  Bruno Haible  <bruno@clisp.org>
27203
27204         * modules/vdprintf-posix-tests: New file.
27205         * tests/test-vdprintf-posix.sh: New file.
27206         * tests/test-vdprintf-posix.c: New file.
27207
27208         New modules 'vdprintf', 'vdprintf-posix'.
27209         * lib/stdio.in.h (vdprintf): New declaration.
27210         * lib/vdprintf.c: New file.
27211         * m4/vdprintf.m4: New file.
27212         * m4/vdprintf-posix.m4: New file.
27213         * modules/vdprintf: New file.
27214         * modules/vdprintf-posix: New file.
27215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27216         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27217         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27218         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27219         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27220
27221 2009-01-17  Bruno Haible  <bruno@clisp.org>
27222
27223         Fix replacement of fopen on mingw.
27224         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27225         mingw.
27226
27227 2009-01-17  Bruno Haible  <bruno@clisp.org>
27228
27229         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27230         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27231
27232 2009-01-17  Bruno Haible  <bruno@clisp.org>
27233
27234         Avoid test-fflush2.sh failure on mingw.
27235         * tests/test-fflush2.c: Include binary-io.h.
27236         (main): Put standard input into binary mode.
27237         * modules/fflush-tests (Depends-on): Add binary-io.
27238
27239 2009-01-17  Bruno Haible  <bruno@clisp.org>
27240
27241         * lib/wchar.in.h: In another particular situation, include only the
27242         system's <wchar.h> file.
27243         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27244         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27245         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27246
27247 2009-01-17  Bruno Haible  <bruno@clisp.org>
27248
27249         Support for stripping executables in --enable-relocatable.
27250         * build-aux/install-reloc: Expect one more argument, or an environment
27251         variable RELOC_STRIP_PROG. If set, strip the destination program and
27252         its wrapper.
27253         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27254         RELOC_STRIP_PROG.
27255         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27256         to set RELOCATABLE_STRIP.
27257         * NEWS: Mention the new Makefile requirement.
27258
27259 2009-01-17  Bruno Haible  <bruno@clisp.org>
27260
27261         * build-aux/install-reloc: Remove debugging information left over by
27262         C compiler on MacOS X.
27263
27264 2009-01-17  Bruno Haible  <bruno@clisp.org>
27265
27266         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27267         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27268         _NSGetExecutablePath.
27269
27270 2009-01-16  Jim Meyering  <meyering@redhat.com>
27271
27272         strerror: avoid warnings about discarding "const"
27273         * lib/strerror.c (rpl_strerror): Instead of returning a const
27274         string from each and every "case", use a variable, and add a single
27275         cast after the switch.
27276
27277 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27278
27279         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27280
27281 2009-01-16  Bruno Haible  <bruno@clisp.org>
27282
27283         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27284         array initializer syntax that also works in C++ mode.
27285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27286
27287 2009-01-16  Jim Meyering  <meyering@redhat.com>
27288
27289         poll: suppress a warning
27290         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27291         to ignore "...unsigned expression < 0 is always false" warnings.
27292
27293 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27294
27295         poll: remove declarations of unused variables
27296         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27297         sockbuf and optlen.
27298
27299 2009-01-15  Bruno Haible  <bruno@clisp.org>
27300
27301         Make fflush-after-ungetc POSIX compliant on BSD systems.
27302         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27303         (clear_ungetc_buffer): Implement also for other systems.
27304         (rpl_fflush): On glibc systems, invoke
27305         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27306         clear_ungetc_buffer after fetching the stream's position, not before.
27307
27308 2009-01-15  Bruno Haible  <bruno@clisp.org>
27309
27310         Make fflush-after-ungetc POSIX compliant on glibc systems.
27311         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27312         after ungetc.
27313         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27314         (rpl_fflush): On glibc systems, simply call the system's fflush
27315         function after clearing the ungetc buffer.
27316         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27317         Instead, lseek only to the end of file, then use the system's fseeko
27318         for the rest. On glibc systems, reset the EOF indicator bit.
27319
27320 2009-01-15  Jim Meyering  <meyering@redhat.com>
27321
27322         openmp.m4: revert quote-adding change, for portability to older autoconf
27323         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27324         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27325         Simon Josefsson noticed the problem when using autoconf-2.61.
27326
27327 2009-01-15  Bruno Haible  <bruno@clisp.org>
27328
27329         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27330         * tests/test-fflush2.c (ASSERT): Always fail.
27331         (main): Add two tests for fflush() after ungetc(), taking into account
27332         the Austin Group's clarification.
27333         Suggested by Eric Blake.
27334
27335 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27336
27337         mktime.m4: remove K&R-style function prototypes
27338         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27339         for the Sun C++ compiler.
27340
27341 2009-01-14  Bruno Haible  <bruno@clisp.org>
27342
27343         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27344         while including <wchar.h>.
27345         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27346         the system's <wchar.h> file.
27347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27348
27349 2009-01-14  Bruno Haible  <bruno@clisp.org>
27350
27351         * m4/csharp.m4: Don't mention gettext on the serial number line.
27352         * m4/csharpexec.m4: Likewise.
27353         * m4/eaccess.m4: Likewise.
27354         * m4/javaexec.m4: Likewise.
27355         * m4/sig_atomic_t.m4: Likewise.
27356         * m4/tmpdir.m4: Likewise.
27357         * m4/intldir.m4: Bump gettext version.
27358         * m4/lib-ld.m4: Likewise.
27359
27360 2009-01-14  Bruno Haible  <bruno@clisp.org>
27361
27362         * lib/progname.c (set_program_name): Add more comments.
27363         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27364
27365 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27366
27367         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27368         were sys/stat.h does not define it.
27369
27370 2009-01-14  Jim Meyering  <meyering@redhat.com>
27371
27372         many *.m4 files: improve m4 quoting
27373         99% of this change was performed by running the following commands:
27374         git ls-files | grep '\.m4$' | xargs perl -pi \
27375           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27376           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27377           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27378           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27379         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27380         The remainder were to add Copyright dates, increment serial numbers,
27381         undo some changes in comments, exclude m4/intl.m4, and add quotes
27382         around the "1" in ",1" where the unusual spacing prohibited the
27383         above regexps from doing the job.  For more details, see
27384         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27385         * m4/acl.m4: Modified.
27386         * m4/afs.m4: Likewise.
27387         * m4/alloca.m4: Likewise.
27388         * m4/argp.m4: Likewise.
27389         * m4/argz.m4: Likewise.
27390         * m4/atexit.m4: Likewise.
27391         * m4/bison-i18n.m4: Likewise.
27392         * m4/bison.m4: Likewise.
27393         * m4/byteswap.m4: Likewise.
27394         * m4/c-stack.m4: Likewise.
27395         * m4/c-strtod.m4: Likewise.
27396         * m4/calloc.m4: Likewise.
27397         * m4/canonicalize-lgpl.m4: Likewise.
27398         * m4/chown.m4: Likewise.
27399         * m4/clock_time.m4: Likewise.
27400         * m4/codeset.m4: Likewise.
27401         * m4/copy-file.m4: Likewise.
27402         * m4/csharp.m4: Likewise.
27403         * m4/csharpcomp.m4: Likewise.
27404         * m4/csharpexec.m4: Likewise.
27405         * m4/d-ino.m4: Likewise.
27406         * m4/d-type.m4: Likewise.
27407         * m4/dirfd.m4: Likewise.
27408         * m4/double-slash-root.m4: Likewise.
27409         * m4/eaccess.m4: Likewise.
27410         * m4/eealloc.m4: Likewise.
27411         * m4/environ.m4: Likewise.
27412         * m4/errno_h.m4: Likewise.
27413         * m4/euidaccess.m4: Likewise.
27414         * m4/execute.m4: Likewise.
27415         * m4/fatal-signal.m4: Likewise.
27416         * m4/fchdir.m4: Likewise.
27417         * m4/fcntl_h.m4: Likewise.
27418         * m4/fileblocks.m4: Likewise.
27419         * m4/filenamecat.m4: Likewise.
27420         * m4/findprog.m4: Likewise.
27421         * m4/flexmember.m4: Likewise.
27422         * m4/fnmatch.m4: Likewise.
27423         * m4/fopen.m4: Likewise.
27424         * m4/fpending.m4: Likewise.
27425         * m4/fprintf-posix.m4: Likewise.
27426         * m4/free.m4: Likewise.
27427         * m4/frexp.m4: Likewise.
27428         * m4/frexpl.m4: Likewise.
27429         * m4/fsusage.m4: Likewise.
27430         * m4/ftruncate.m4: Likewise.
27431         * m4/gc-camellia.m4: Likewise.
27432         * m4/gc-random.m4: Likewise.
27433         * m4/gc.m4: Likewise.
27434         * m4/getaddrinfo.m4: Likewise.
27435         * m4/getcwd-abort-bug.m4: Likewise.
27436         * m4/getcwd-path-max.m4: Likewise.
27437         * m4/getdate.m4: Likewise.
27438         * m4/getdomainname.m4: Likewise.
27439         * m4/getgroups.m4: Likewise.
27440         * m4/gethostname.m4: Likewise.
27441         * m4/gethrxtime.m4: Likewise.
27442         * m4/getline.m4: Likewise.
27443         * m4/getloadavg.m4: Likewise.
27444         * m4/getndelim2.m4: Likewise.
27445         * m4/getpass.m4: Likewise.
27446         * m4/gettext.m4: Likewise.
27447         * m4/gettime.m4: Likewise.
27448         * m4/gettimeofday.m4: Likewise.
27449         * m4/gnulib-common.m4: Likewise.
27450         * m4/group-member.m4: Likewise.
27451         * m4/host-os.m4: Likewise.
27452         * m4/iconv.m4: Likewise.
27453         * m4/iconv_open.m4: Likewise.
27454         * m4/inet_ntop.m4: Likewise.
27455         * m4/inet_pton.m4: Likewise.
27456         * m4/inline.m4: Likewise.
27457         * m4/intldir.m4: Likewise.
27458         * m4/intlmacosx.m4: Likewise.
27459         * m4/intmax.m4: Likewise.
27460         * m4/intmax_t.m4: Likewise.
27461         * m4/inttypes.m4: Likewise.
27462         * m4/inttypes_h.m4: Likewise.
27463         * m4/inttypes-pri.m4: Likewise.
27464         * m4/isapipe.m4: Likewise.
27465         * m4/isnand.m4: Likewise.
27466         * m4/isnanf.m4: Likewise.
27467         * m4/isnanl.m4: Likewise.
27468         * m4/javacomp.m4: Likewise.
27469         * m4/javaexec.m4: Likewise.
27470         * m4/jm-winsz1.m4: Likewise.
27471         * m4/jm-winsz2.m4: Likewise.
27472         * m4/lchown.m4: Likewise.
27473         * m4/lcmessage.m4: Likewise.
27474         * m4/ldexpl.m4: Likewise.
27475         * m4/lib-ld.m4: Likewise.
27476         * m4/lib-link.m4: Likewise.
27477         * m4/libsigsegv.m4: Likewise.
27478         * m4/link-follow.m4: Likewise.
27479         * m4/localcharset.m4: Likewise.
27480         * m4/locale-fr.m4: Likewise.
27481         * m4/locale-ja.m4: Likewise.
27482         * m4/locale-tr.m4: Likewise.
27483         * m4/locale-zh.m4: Likewise.
27484         * m4/lock.m4: Likewise.
27485         * m4/longlong.m4: Likewise.
27486         * m4/ls-mntd-fs.m4: Likewise.
27487         * m4/lstat.m4: Likewise.
27488         * m4/malloc.m4: Likewise.
27489         * m4/mathl.m4: Likewise.
27490         * m4/mbrtowc.m4: Likewise.
27491         * m4/mbstate_t.m4: Likewise.
27492         * m4/mbswidth.m4: Likewise.
27493         * m4/memchr.m4: Likewise.
27494         * m4/memcmp.m4: Likewise.
27495         * m4/memcpy.m4: Likewise.
27496         * m4/memmem.m4: Likewise.
27497         * m4/memmove.m4: Likewise.
27498         * m4/mempcpy.m4: Likewise.
27499         * m4/memrchr.m4: Likewise.
27500         * m4/memset.m4: Likewise.
27501         * m4/minmax.m4: Likewise.
27502         * m4/mkdir-slash.m4: Likewise.
27503         * m4/mkdtemp.m4: Likewise.
27504         * m4/mktime.m4: Likewise.
27505         * m4/mmap-anon.m4: Likewise.
27506         * m4/mountlist.m4: Likewise.
27507         * m4/nanosleep.m4: Likewise.
27508         * m4/nls.m4: Likewise.
27509         * m4/nocrash.m4: Likewise.
27510         * m4/open.m4: Likewise.
27511         * m4/openat.m4: Likewise.
27512         * m4/openmp.m4: Likewise.
27513         * m4/pathmax.m4: Likewise.
27514         * m4/perl.m4: Likewise.
27515         * m4/physmem.m4: Likewise.
27516         * m4/pipe.m4: Likewise.
27517         * m4/po.m4: Likewise.
27518         * m4/poll.m4: Likewise.
27519         * m4/posixtm.m4: Likewise.
27520         * m4/posixver.m4: Likewise.
27521         * m4/printf-frexp.m4: Likewise.
27522         * m4/printf-frexpl.m4: Likewise.
27523         * m4/printf-posix.m4: Likewise.
27524         * m4/printf-posix-rpl.m4: Likewise.
27525         * m4/printf.m4: Likewise.
27526         * m4/progtest.m4: Likewise.
27527         * m4/putenv.m4: Likewise.
27528         * m4/readline.m4: Likewise.
27529         * m4/readlink.m4: Likewise.
27530         * m4/readutmp.m4: Likewise.
27531         * m4/realloc.m4: Likewise.
27532         * m4/regex.m4: Likewise.
27533         * m4/relocatable.m4: Likewise.
27534         * m4/relocatable-lib.m4: Likewise.
27535         * m4/rename-dest-slash.m4: Likewise.
27536         * m4/rename.m4: Likewise.
27537         * m4/rmdir-errno.m4: Likewise.
27538         * m4/rmdir.m4: Likewise.
27539         * m4/roundf.m4: Likewise.
27540         * m4/roundl.m4: Likewise.
27541         * m4/rpmatch.m4: Likewise.
27542         * m4/save-cwd.m4: Likewise.
27543         * m4/selinux-selinux-h.m4: Likewise.
27544         * m4/setenv.m4: Likewise.
27545         * m4/settime.m4: Likewise.
27546         * m4/sig2str.m4: Likewise.
27547         * m4/sig_atomic_t.m4: Likewise.
27548         * m4/signalblocking.m4: Likewise.
27549         * m4/signbit.m4: Likewise.
27550         * m4/sigpipe.m4: Likewise.
27551         * m4/sockets.m4: Likewise.
27552         * m4/sockpfaf.m4: Likewise.
27553         * m4/st_dm_mode.m4: Likewise.
27554         * m4/stat-time.m4: Likewise.
27555         * m4/stdbool.m4: Likewise.
27556         * m4/stdint.m4: Likewise.
27557         * m4/stdint_h.m4: Likewise.
27558         * m4/stpcpy.m4: Likewise.
27559         * m4/stpncpy.m4: Likewise.
27560         * m4/strcase.m4: Likewise.
27561         * m4/strchrnul.m4: Likewise.
27562         * m4/strcspn.m4: Likewise.
27563         * m4/strdup.m4: Likewise.
27564         * m4/strftime.m4: Likewise.
27565         * m4/strndup.m4: Likewise.
27566         * m4/strnlen.m4: Likewise.
27567         * m4/strpbrk.m4: Likewise.
27568         * m4/strptime.m4: Likewise.
27569         * m4/strsep.m4: Likewise.
27570         * m4/strtod.m4: Likewise.
27571         * m4/strtoimax.m4: Likewise.
27572         * m4/strtok_r.m4: Likewise.
27573         * m4/strtol.m4: Likewise.
27574         * m4/strtoll.m4: Likewise.
27575         * m4/strtoul.m4: Likewise.
27576         * m4/strtoull.m4: Likewise.
27577         * m4/strtoumax.m4: Likewise.
27578         * m4/strverscmp.m4: Likewise.
27579         * m4/threadlib.m4: Likewise.
27580         * m4/timegm.m4: Likewise.
27581         * m4/tm_gmtoff.m4: Likewise.
27582         * m4/tmpdir.m4: Likewise.
27583         * m4/tmpfile.m4: Likewise.
27584         * m4/tzset.m4: Likewise.
27585         * m4/uintmax_t.m4: Likewise.
27586         * m4/unlinkdir.m4: Likewise.
27587         * m4/unlocked-io.m4: Likewise.
27588         * m4/uptime.m4: Likewise.
27589         * m4/userspec.m4: Likewise.
27590         * m4/utimbuf.m4: Likewise.
27591         * m4/utime.m4: Likewise.
27592         * m4/utimes-null.m4: Likewise.
27593         * m4/utimes.m4: Likewise.
27594         * m4/vararrays.m4: Likewise.
27595         * m4/vasnprintf.m4: Likewise.
27596         * m4/vfprintf-posix.m4: Likewise.
27597         * m4/vprintf-posix.m4: Likewise.
27598         * m4/wait-process.m4: Likewise.
27599         * m4/wchar_t.m4: Likewise.
27600         * m4/wint_t.m4: Likewise.
27601         * m4/write-any-file.m4: Likewise.
27602         * m4/yield.m4: Likewise.
27603
27604 2009-01-13  Bruno Haible  <bruno@clisp.org>
27605
27606         Avoid test-copy-file.sh failures when ACL support insufficient.
27607         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27608         TESTS_ENVIRONMENT.
27609         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27610         Reported by Jim Meyering.
27611
27612 2009-01-13  Bruno Haible  <bruno@clisp.org>
27613
27614         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27615         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27616         * modules/unistdio/u8-printf-parse (Files): Likewise.
27617         * modules/unistdio/u32-printf-parse (Files): Likewise.
27618         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27619
27620 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27621
27622         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27623         and m4/inttypes_h.m4 too.
27624
27625 2009-01-12  Eric Blake  <ebb9@byu.net>
27626
27627         tests: IRIX 6.2 cc can't compile -0.0 into .data
27628         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27629         rather than at compile-time.
27630         * tests/test-floorl.c (minus_zero): Likewise.
27631         * tests/test-frexpl.c (minus_zero): Likewise.
27632         * tests/test-isnan.c (minus_zerol): Likewise.
27633         * tests/test-isnanl.h (minus_zero): Likewise.
27634         * tests/test-ldexpl.c (minus_zero): Likewise.
27635         * tests/test-roundl.c (minus_zero): Likewise.
27636         * tests/test-signbit.c (minus_zerol): Likewise.
27637         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27638         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27639         * tests/test-truncl.c (minus_zero): Likewise.
27640         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27641         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27642         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27643
27644 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27645
27646         regex: fix glibc bug 9697
27647         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27648         handling.
27649
27650 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27651
27652         regex: fix glibc bug 697
27653         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27654         being NULL also if there are no backreferences.
27655
27656 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27657
27658         regex: merge glibc changes
27659         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27660         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27661         re_string_skip_chars, re_string_reconstruct): Likewise.
27662         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27663
27664 2009-01-07  Jim Meyering  <meyering@redhat.com>
27665
27666         poll: filter through cppi
27667         * lib/poll.c: Indent cpp directives to reflect nesting.
27668
27669 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27670
27671         poll: don't return uninitialized
27672         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27673
27674 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27675
27676         avoid compile failure on AIX 6.1
27677         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27678         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27679
27680 2009-01-04  Jim Meyering  <meyering@redhat.com>
27681
27682         remove duplicate inclusion of <stdio.h>
27683         * tests/test-fprintf-posix.c: Likewise.
27684         * tests/test-printf-posix.c: Likewise.
27685         * tests/test-snprintf-posix.c: Likewise.
27686         * tests/test-sprintf-posix.c: Likewise.
27687         * tests/test-vasprintf-posix.c: Likewise.
27688         * tests/test-vfprintf-posix.c: Likewise.
27689         * tests/test-vprintf-posix.c: Likewise.
27690         * tests/test-vsnprintf-posix.c: Likewise.
27691         * tests/test-vsprintf-posix.c: Likewise.
27692
27693 2009-01-03  Jim Meyering  <meyering@redhat.com>
27694
27695         gnulib-tool: fix sed-based filtering
27696         * gnulib-tool (func_filter_filelist): Remove extra backslash
27697         in sed_fff_filter definition.
27698
27699 2009-01-02  Jim Meyering  <meyering@redhat.com>
27700
27701         strftime: avoid compilation failure on Solaris 2.6
27702         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27703         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27704         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27705         be available.  Reported by Tom G. Christensen.  Details in
27706         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27707
27708 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27709             Bruno Haible  <bruno@clisp.org>
27710
27711         Speed up gnulib-tool by doing more string processing through shell
27712         built-ins.
27713         * gnulib-tool (fast_func_append): New variable.
27714         (func_remove_prefix, func_remove_suffix): New functions.
27715         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27716         (func_filter_filelist): New function.
27717         (func_get_dependencies): Use func_remove_suffix instead of sed.
27718         (func_get_automake_snippet): Use func_filter_filelist instead of a
27719         subshell and sed invocation.
27720
27721 2009-01-01  Bruno Haible  <bruno@clisp.org>
27722
27723         Fix a security bug.
27724         * gnulib-tool (func_import, import, update): Don't allow the characters
27725         '"', '$', '`', '\' in macro arguments that become part of commands that
27726         are evaluated.
27727
27728 2009-01-01  Bruno Haible  <bruno@clisp.org>
27729
27730         * gnulib-tool (func_reset_sigpipe): Add more comments.
27731
27732 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27733
27734         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27735         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27736         already know the answer.
27737
27738 2009-01-01  Jim Meyering  <meyering@redhat.com>
27739
27740         * lib/version-etc.c (version_etc_va): Update copyright year.
27741
27742 2008-12-30  Bruno Haible  <bruno@clisp.org>
27743
27744         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27745         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27746         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27747
27748 2008-12-29  Eric Blake  <ebb9@byu.net>
27749
27750         multiarch: avoid autoconf AC_REQUIRE bug
27751         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27752         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27753         2.63 and older.
27754         Reported by Bruno Haible, and analyzed in
27755         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27756
27757 2008-12-29  Bruno Haible  <bruno@clisp.org>
27758
27759         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27760         files in subdirectories correctly.
27761         Reported by Ralf Wildenhues.
27762
27763 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27764
27765         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27766         rather than 'join FILE -', for Solaris join.
27767
27768 2008-12-29  Bruno Haible  <bruno@clisp.org>
27769
27770         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27771         quoting.
27772         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27773         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27774         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27775         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27776         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27777         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27779         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27780         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27781         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27782         * m4/nls.m4 (AM_NLS): Likewise.
27783         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27784         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27785         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27786         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27787         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27788         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27789         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27790         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27791         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27792         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27793         * m4/xsize.m4 (gl_XSIZE): Likewise.
27794         Suggested by Jim Meyering.
27795
27796 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27797
27798         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27799         * lib/parse-duration.c: use a switch instead of cascading if's.
27800
27801 2008-12-29  Eric Blake  <ebb9@byu.net>
27802
27803         wchar.h: supply WEOF on Irix 5.3
27804         * lib/wchar.in.h (wint_t): Also supply WEOF.
27805         * lib/wctype.in.h (wint_t): Likewise.
27806         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27807         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27808         Reported by Tom G. Christensen.
27809
27810 2008-12-26  Bruno Haible  <bruno@clisp.org>
27811
27812         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27813         i486, i586, i686.
27814
27815 2008-12-26  Bruno Haible  <bruno@clisp.org>
27816
27817         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27818
27819 2008-12-26  Bruno Haible  <bruno@clisp.org>
27820
27821         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27822         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27823         not __STDC_CONSTANT_MACROS.
27824         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27825
27826 2008-12-25  Bruno Haible  <bruno@clisp.org>
27827
27828         Add support for universal builds to vasnprintf.
27829         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27830         universal builds, guess no.
27831         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27832         * modules/vasprintf-posix (Depends-on): Likewise.
27833         * modules/fprintf-posix (Depends-on): Likewise.
27834         * modules/vfprintf-posix (Depends-on): Likewise.
27835         * modules/snprintf-posix (Depends-on): Likewise.
27836         * modules/vsnprintf-posix (Depends-on): Likewise.
27837         * modules/sprintf-posix (Depends-on): Likewise.
27838         * modules/vsprintf-posix (Depends-on): Likewise.
27839         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27840         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27841         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27842         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27843         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27844         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27845         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27846
27847         Add support for universal builds to <inttypes.h>.
27848         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27849         _SCNu64_PREFIX): In Apple
27850         universal builds, define directly, using _LP64.
27851         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27852         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27853         * modules/inttypes (Depends-on): Add multiarch.
27854         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27855
27856         Add support for universal builds to <stdint.h>.
27857         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27858         universal builds, define directly, using _LP64.
27859         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27860         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27861         and size_t.
27862         * modules/stdint (Depends-on): Add multiarch.
27863         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27864
27865         New module 'multiarch'.
27866         * modules/multiarch: New file.
27867         * m4/multiarch.m4: New file.
27868
27869 2008-12-25  Bruno Haible  <bruno@clisp.org>
27870
27871         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27872
27873 2008-12-25  Bruno Haible  <bruno@clisp.org>
27874
27875         * modules/btowc (License): Relicense under LGPLv2+.
27876         * modules/mbsinit (License): Likewise.
27877         * modules/mbrtowc (License): Likewise.
27878         * modules/wcrtomb (License): Likewise.
27879         * modules/streq (License): Likewise.
27880         Reported by David Lutterkort <lutter@redhat.com>.
27881
27882 2008-12-23  Bruno Haible  <bruno@clisp.org>
27883
27884         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27885
27886 2008-12-23  Bruno Haible  <bruno@clisp.org>
27887
27888         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27890         GETADDRINFO_LIB, not in LIBS.
27891         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27892         * modules/canon-host (Link): Likewise.
27893         * NEWS: Mention the change.
27894         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27895         GETADDRINFO_LIB.
27896
27897 2008-12-22  Bruno Haible  <bruno@clisp.org>
27898
27899         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27900         * doc/posix-functions/iswalpha_l.texi: Likewise.
27901         * doc/posix-functions/iswblank_l.texi: Likewise.
27902         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27903         * doc/posix-functions/iswctype_l.texi: Likewise.
27904         * doc/posix-functions/iswdigit_l.texi: Likewise.
27905         * doc/posix-functions/iswgraph_l.texi: Likewise.
27906         * doc/posix-functions/iswlower_l.texi: Likewise.
27907         * doc/posix-functions/iswprint_l.texi: Likewise.
27908         * doc/posix-functions/iswpunct_l.texi: Likewise.
27909         * doc/posix-functions/iswspace_l.texi: Likewise.
27910         * doc/posix-functions/iswupper_l.texi: Likewise.
27911         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27912         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27913         * doc/posix-functions/open_wmemstream.texi: Likewise.
27914         * doc/posix-functions/swscanf.texi: Likewise.
27915         * doc/posix-functions/towctrans_l.texi: Likewise.
27916         * doc/posix-functions/towlower.texi: Likewise.
27917         * doc/posix-functions/towlower_l.texi: Likewise.
27918         * doc/posix-functions/towupper.texi: Likewise.
27919         * doc/posix-functions/towupper_l.texi: Likewise.
27920         * doc/posix-functions/vfwprintf.texi: Likewise.
27921         * doc/posix-functions/vfwscanf.texi: Likewise.
27922         * doc/posix-functions/vswscanf.texi: Likewise.
27923         * doc/posix-functions/vwprintf.texi: Likewise.
27924         * doc/posix-functions/vwscanf.texi: Likewise.
27925         * doc/posix-functions/wcpcpy.texi: Likewise.
27926         * doc/posix-functions/wcpncpy.texi: Likewise.
27927         * doc/posix-functions/wcscasecmp.texi: Likewise.
27928         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27929         * doc/posix-functions/wcscoll_l.texi: Likewise.
27930         * doc/posix-functions/wcsdup.texi: Likewise.
27931         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27932         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27933         * doc/posix-functions/wcsnlen.texi: Likewise.
27934         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27935         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27936         * doc/posix-functions/wctrans_l.texi: Likewise.
27937         * doc/posix-functions/wctype_l.texi: Likewise.
27938         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27939         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27940         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27941         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27942         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27943         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27944         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27945         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27946         * doc/glibc-functions/wcschrnul.texi: Likewise.
27947         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27948         * doc/glibc-functions/wcstod_l.texi: Likewise.
27949         * doc/glibc-functions/wcstof_l.texi: Likewise.
27950         * doc/glibc-functions/wcstol_l.texi: Likewise.
27951         * doc/glibc-functions/wcstold_l.texi: Likewise.
27952         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27953         * doc/glibc-functions/wcstoq.texi: Likewise.
27954         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27955         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27956         * doc/glibc-functions/wcstouq.texi: Likewise.
27957         * doc/glibc-functions/wmempcpy.texi: Likewise.
27958
27959 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27960             Eric Blake  <ebb9@byu.net>
27961             Paolo Bonzini  <bonzini@gnu.org>
27962             Bruno Haible  <bruno@clisp.org>
27963
27964         Make c-stack work on Haiku.
27965         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27966         (c_stack_action): Use SA_ONSTACK flag.
27967
27968 2008-12-22  Bruno Haible  <bruno@clisp.org>
27969
27970         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27971
27972 2008-12-22  Bruno Haible  <bruno@clisp.org>
27973
27974         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27975         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27976         being overridden.
27977         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27978         New macros.
27979         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27981         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27982         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27983
27984 2008-12-22  Bruno Haible  <bruno@clisp.org>
27985
27986         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27987         from test code.
27988
27989 2008-12-22  Eric Blake  <ebb9@byu.net>
27990
27991         Avoid gcc warnings on cygwin.
27992         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27993         Avoid unused variable.
27994         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27995         Likewise.
27996
27997 2008-12-22  Bruno Haible  <bruno@clisp.org>
27998
27999         Remove HAVE_MBRTOWC conditionals.
28000         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28001         (mbscasecmp): Assume mbrtowc function.
28002         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28003         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28004         * lib/mbschr.c: Include mbuiter.h unconditionally.
28005         (mbschr): Assume mbrtowc function.
28006         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28007         (mbscspn): Assume mbrtowc function.
28008         * lib/mbslen.c: Include mbuiter.h unconditionally.
28009         (mbslen): Assume mbrtowc function.
28010         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28011         (mbsncasecmp): Assume mbrtowc function.
28012         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28013         (mbsnlen): Assume mbrtowc function.
28014         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28015         (mbspbrk): Assume mbrtowc function.
28016         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28017         (mbspcasecmp): Assume mbrtowc function.
28018         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28019         (mbsrchr): Assume mbrtowc function.
28020         * lib/mbssep.c: Include mbuiter.h unconditionally.
28021         (mbssep): Assume mbrtowc function.
28022         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28023         (mbsspn): Assume mbrtowc function.
28024         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28025         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28026         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28027         (mbstok_r): Assume mbrtowc function.
28028         * lib/propername.c: Include mbuiter.h unconditionally.
28029         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28030         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28031         (trim2): Assume mbrtowc function.
28032         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28033         (mbsnwidth): Assume mbrtowc function.
28034         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28035         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28036         fallback definitions.
28037         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28038
28039 2008-12-22  Bruno Haible  <bruno@clisp.org>
28040
28041         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28042
28043 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28044
28045         * modules/regex: Request emulations for the mb*/wc* functions we need.
28046         * m4/regex.m4: Don't look for those functions here.
28047         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28048
28049 2008-12-22  Bruno Haible  <bruno@clisp.org>
28050
28051         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28052
28053 2008-12-21  Bruno Haible  <bruno@clisp.org>
28054
28055         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28056         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28057         (Include): Remove conditionalization.
28058         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28059         (Include): Remove conditionalization.
28060         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28061         (Include): Remove conditionalization.
28062         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28063         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28064         * NEWS: Mention the change.
28065         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28066         via Sergey Poznyakoff <gray@gnu.org.ua>.
28067
28068 2008-12-21  Bruno Haible  <bruno@clisp.org>
28069
28070         * MODULES.html.sh (Extended multibyte and wide character utilities
28071         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28072         wcrtomb, wcsrtombs.
28073         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28074         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28075         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28076         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28077
28078 2008-12-21  Bruno Haible  <bruno@clisp.org>
28079
28080         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28081
28082 2008-12-21  Bruno Haible  <bruno@clisp.org>
28083
28084         * modules/wcsnrtombs-tests: New file.
28085         * tests/test-wcsnrtombs1.sh: New file.
28086         * tests/test-wcsnrtombs2.sh: New file.
28087         * tests/test-wcsnrtombs3.sh: New file.
28088         * tests/test-wcsnrtombs4.sh: New file.
28089         * tests/test-wcsnrtombs.c: New file.
28090
28091         New module 'wcsnrtombs'.
28092         * lib/wchar.in.h (wcsnrtombs): New declaration.
28093         * lib/wcsnrtombs.c: New file.
28094         * lib/wcsrtombs-state.c: New file.
28095         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28096         (internal_state): Remove variable.
28097         * m4/wcsnrtombs.m4: New file.
28098         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28099         compilation units.
28100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28101         HAVE_WCSNRTOMBS.
28102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28103         HAVE_WCSNRTOMBS.
28104         * modules/wcsnrtombs: New file.
28105         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28106         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28107
28108 2008-12-21  Bruno Haible  <bruno@clisp.org>
28109
28110         * modules/wcsrtombs-tests: New file.
28111         * tests/test-wcsrtombs1.sh: New file.
28112         * tests/test-wcsrtombs2.sh: New file.
28113         * tests/test-wcsrtombs3.sh: New file.
28114         * tests/test-wcsrtombs4.sh: New file.
28115         * tests/test-wcsrtombs.c: New file.
28116
28117         New module 'wcsrtombs'.
28118         * lib/wchar.in.h (wcsrtombs): New declaration.
28119         * lib/wcsrtombs.c: New file.
28120         * m4/wcsrtombs.m4: New file.
28121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28122         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28124         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28125         * modules/wcsrtombs: New file.
28126         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28127         bugs.
28128
28129 2008-12-21  Bruno Haible  <bruno@clisp.org>
28130
28131         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28132         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28133         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28134         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28135         if not correct.
28136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28137         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28138         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28139         m4/locale-zh.m4, m4/codeset.m4.
28140         * doc/posix-functions/wcrtomb.texi: Document the bug.
28141
28142 2008-12-21  Bruno Haible  <bruno@clisp.org>
28143
28144         Work around a btowc() bug on IRIX 6.5.
28145         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28146         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28147         REPLACE_WTOBC if not.
28148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28149         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28150         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28151
28152 2008-12-21  Bruno Haible  <bruno@clisp.org>
28153
28154         * modules/wcrtomb-tests: New file.
28155         * tests/test-wcrtomb.sh: New file.
28156         * tests/test-wcrtomb.c: New file.
28157
28158         New module 'wcrtomb'.
28159         * lib/wchar.in.h (wcrtomb): New declaration.
28160         * lib/wcrtomb.c: New file.
28161         * m4/wcrtomb.m4: New file.
28162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28163         HAVE_WCRTOMB.
28164         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28165         HAVE_WCRTOMB.
28166         * modules/wcrtomb: New file.
28167         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28168
28169 2008-12-21  Bruno Haible  <bruno@clisp.org>
28170
28171         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28172         * modules/mbsrtowcs (Files): Likewise.
28173         * modules/wctob (Files): Likewise.
28174         * modules/c-strcase-tests (Files): Likewise.
28175         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28176         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28177         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28178         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28179         * modules/vasnprintf-posix-tests (Files): Likewise.
28180
28181 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28182
28183         gitlog-to-changelog: pass all command-line arguments to git-log
28184         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28185         it is sometimes convenient to filter the commits in various ways.
28186         gitlog-to-changelog only allows --since to specify a start date,
28187         but git-log itself supports many other filtering mechanisms.
28188         At the moment, I want to filter by branch name.  Rather than
28189         adding a --branch option to gitlog-to-changelog, it seems more
28190         flexible to simply pass all options directly to git-log and let
28191         git do the work.  Notice that this effectively makes --since a
28192         redundant option for gitlog-to-changelog, but removing it would
28193         require current usage to change since calls would then require
28194         an additional '--'.
28195
28196 2008-12-21  Bruno Haible  <bruno@clisp.org>
28197
28198         * modules/mbsnrtowcs-tests: New file.
28199         * tests/test-mbsnrtowcs1.sh: New file.
28200         * tests/test-mbsnrtowcs2.sh: New file.
28201         * tests/test-mbsnrtowcs3.sh: New file.
28202         * tests/test-mbsnrtowcs4.sh: New file.
28203         * tests/test-mbsnrtowcs.c: New file.
28204
28205         New module 'mbsnrtowcs'.
28206         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28207         * lib/mbsnrtowcs.c: New file.
28208         * lib/mbsrtowcs-state.c: New file.
28209         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28210         (internal_state): Remove variable.
28211         * m4/mbsnrtowcs.m4: New file.
28212         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28213         compilation units.
28214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28215         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28216         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28217         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28218         * modules/mbsnrtowcs: New file.
28219         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28220         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28221         portability problem.
28222
28223 2008-12-21  Bruno Haible  <bruno@clisp.org>
28224
28225         Work around mbsrtowcs bug.
28226         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28227         (gl_FUNC_MBSRTOWCS): Invoke it.
28228         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28229         m4/locale-zh.m4.
28230         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28231
28232 2008-12-21  Bruno Haible  <bruno@clisp.org>
28233
28234         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28235
28236 2008-12-21  Bruno Haible  <bruno@clisp.org>
28237
28238         Update doc for AIX.
28239         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28240         16-bit wchar_t type.
28241         * doc/posix-functions/btowc.texi: Likewise.
28242         * doc/posix-functions/fgetwc.texi: Likewise.
28243         * doc/posix-functions/fgetws.texi: Likewise.
28244         * doc/posix-functions/fputwc.texi: Likewise.
28245         * doc/posix-functions/fputws.texi: Likewise.
28246         * doc/posix-functions/fwide.texi: Likewise.
28247         * doc/posix-functions/fwprintf.texi: Likewise.
28248         * doc/posix-functions/fwscanf.texi: Likewise.
28249         * doc/posix-functions/getwchar.texi: Likewise.
28250         * doc/posix-functions/getwc.texi: Likewise.
28251         * doc/posix-functions/iswalnum.texi: Likewise.
28252         * doc/posix-functions/iswalpha.texi: Likewise.
28253         * doc/posix-functions/iswblank.texi: Likewise.
28254         * doc/posix-functions/iswcntrl.texi: Likewise.
28255         * doc/posix-functions/iswctype.texi: Likewise.
28256         * doc/posix-functions/iswdigit.texi: Likewise.
28257         * doc/posix-functions/iswgraph.texi: Likewise.
28258         * doc/posix-functions/iswlower.texi: Likewise.
28259         * doc/posix-functions/iswprint.texi: Likewise.
28260         * doc/posix-functions/iswpunct.texi: Likewise.
28261         * doc/posix-functions/iswspace.texi: Likewise.
28262         * doc/posix-functions/iswupper.texi: Likewise.
28263         * doc/posix-functions/iswxdigit.texi: Likewise.
28264         * doc/posix-functions/mbrtowc.texi: Likewise.
28265         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28266         * doc/posix-functions/mbstowcs.texi: Likewise.
28267         * doc/posix-functions/mbtowc.texi: Likewise.
28268         * doc/posix-functions/putwchar.texi: Likewise.
28269         * doc/posix-functions/putwc.texi: Likewise.
28270         * doc/posix-functions/swprintf.texi: Likewise.
28271         * doc/posix-functions/tolower.texi: Likewise.
28272         * doc/posix-functions/toupper.texi: Likewise.
28273         * doc/posix-functions/towctrans.texi: Likewise.
28274         * doc/posix-functions/ungetwc.texi: Likewise.
28275         * doc/posix-functions/vswprintf.texi: Likewise.
28276         * doc/posix-functions/wcrtomb.texi: Likewise.
28277         * doc/posix-functions/wcscat.texi: Likewise.
28278         * doc/posix-functions/wcschr.texi: Likewise.
28279         * doc/posix-functions/wcscmp.texi: Likewise.
28280         * doc/posix-functions/wcscoll.texi: Likewise.
28281         * doc/posix-functions/wcscpy.texi: Likewise.
28282         * doc/posix-functions/wcscspn.texi: Likewise.
28283         * doc/posix-functions/wcsftime.texi: Likewise.
28284         * doc/posix-functions/wcslen.texi: Likewise.
28285         * doc/posix-functions/wcsncat.texi: Likewise.
28286         * doc/posix-functions/wcsncmp.texi: Likewise.
28287         * doc/posix-functions/wcsncpy.texi: Likewise.
28288         * doc/posix-functions/wcspbrk.texi: Likewise.
28289         * doc/posix-functions/wcsrchr.texi: Likewise.
28290         * doc/posix-functions/wcsrtombs.texi: Likewise.
28291         * doc/posix-functions/wcsspn.texi: Likewise.
28292         * doc/posix-functions/wcsstr.texi: Likewise.
28293         * doc/posix-functions/wcstod.texi: Likewise.
28294         * doc/posix-functions/wcstof.texi: Likewise.
28295         * doc/posix-functions/wcstoimax.texi: Likewise.
28296         * doc/posix-functions/wcstok.texi: Likewise.
28297         * doc/posix-functions/wcstold.texi: Likewise.
28298         * doc/posix-functions/wcstoll.texi: Likewise.
28299         * doc/posix-functions/wcstol.texi: Likewise.
28300         * doc/posix-functions/wcstombs.texi: Likewise.
28301         * doc/posix-functions/wcstoull.texi: Likewise.
28302         * doc/posix-functions/wcstoul.texi: Likewise.
28303         * doc/posix-functions/wcstoumax.texi: Likewise.
28304         * doc/posix-functions/wcswidth.texi: Likewise.
28305         * doc/posix-functions/wcsxfrm.texi: Likewise.
28306         * doc/posix-functions/wctob.texi: Likewise.
28307         * doc/posix-functions/wctomb.texi: Likewise.
28308         * doc/posix-functions/wctrans.texi: Likewise.
28309         * doc/posix-functions/wctype.texi: Likewise.
28310         * doc/posix-functions/wcwidth.texi: Likewise.
28311         * doc/posix-functions/wmemchr.texi: Likewise.
28312         * doc/posix-functions/wmemcmp.texi: Likewise.
28313         * doc/posix-functions/wmemcpy.texi: Likewise.
28314         * doc/posix-functions/wmemmove.texi: Likewise.
28315         * doc/posix-functions/wmemset.texi: Likewise.
28316         * doc/posix-functions/wprintf.texi: Likewise.
28317         * doc/posix-functions/wscanf.texi: Likewise.
28318
28319 2008-12-21  Bruno Haible  <bruno@clisp.org>
28320
28321         Update doc for HP-UX 11.11.
28322         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28323         in HP-UX version 11.00, not in all versions of HP-UX 11.
28324         * doc/posix-functions/fwide.texi: Likewise.
28325         * doc/posix-functions/fwprintf.texi: Likewise.
28326         * doc/posix-functions/fwscanf.texi: Likewise.
28327         * doc/posix-functions/inet_ntop.texi: Likewise.
28328         * doc/posix-functions/inet_pton.texi: Likewise.
28329         * doc/posix-functions/mbrlen.texi: Likewise.
28330         * doc/posix-functions/mbrtowc.texi: Likewise.
28331         * doc/posix-functions/mbsinit.texi: Likewise.
28332         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28333         * doc/posix-functions/swprintf.texi: Likewise.
28334         * doc/posix-functions/swscanf.texi: Likewise.
28335         * doc/posix-functions/towctrans.texi: Likewise.
28336         * doc/posix-functions/vfwprintf.texi: Likewise.
28337         * doc/posix-functions/vswprintf.texi: Likewise.
28338         * doc/posix-functions/vwprintf.texi: Likewise.
28339         * doc/posix-functions/wcrtomb.texi: Likewise.
28340         * doc/posix-functions/wcsrtombs.texi: Likewise.
28341         * doc/posix-functions/wcsstr.texi: Likewise.
28342         * doc/posix-functions/wctob.texi: Likewise.
28343         * doc/posix-functions/wctrans.texi: Likewise.
28344         * doc/posix-functions/wmemchr.texi: Likewise.
28345         * doc/posix-functions/wmemcmp.texi: Likewise.
28346         * doc/posix-functions/wmemcpy.texi: Likewise.
28347         * doc/posix-functions/wmemmove.texi: Likewise.
28348         * doc/posix-functions/wmemset.texi: Likewise.
28349         * doc/posix-functions/wprintf.texi: Likewise.
28350         * doc/posix-functions/wscanf.texi: Likewise.
28351
28352 2008-12-21  Bruno Haible  <bruno@clisp.org>
28353
28354         Work around a portability problem.
28355         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28356         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28357
28358 2008-12-20  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28361         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28362         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28364         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28365
28366         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28367         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28368         set.
28369         (GNULIB_defined_mbstate_t): New macro.
28370         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28371         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28372         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28373         reuses the system's mbrtowc function but works around the bugs.
28374         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28375         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28376         macros.
28377         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28378         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28379         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28380         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28381         REPLACE_MBSINIT if mbsinit needs to be overridden.
28382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28383         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28384         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28385         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28386         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28387         m4/locale-zh.m4.
28388         (Depends): Add mbsinit.
28389         * modules/mbsinit (Depends): Add mbrtowc.
28390         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28391
28392 2008-12-20  Bruno Haible  <bruno@clisp.org>
28393
28394         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28395         so that there are no conversion errors on AIX.
28396         * tests/test-mbsrtowcs.c (main): LIkewise.
28397
28398 2008-12-20  Bruno Haible  <bruno@clisp.org>
28399
28400         Work around wctob bug on Solaris <= 9.
28401         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28402         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28404         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28405         * modules/wctob (Files): Add m4/locale-fr.m4.
28406         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28407
28408 2008-12-20  Bruno Haible  <bruno@clisp.org>
28409
28410         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28411         /dev/null.
28412         * tests/test-select-in.sh: Likewise.
28413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28414
28415 2008-12-20  Bruno Haible  <bruno@clisp.org>
28416
28417         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28418         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28419         Cygwin 1.5.x.
28420
28421 2008-12-20  Bruno Haible  <bruno@clisp.org>
28422
28423         Ensure mbstate_t is defined on HP-UX 11.11.
28424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28425         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28426         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28427         AC_USE_SYSTEM_EXTENSIONS.
28428         * modules/fnmatch (Depends-on): Add extensions.
28429         * modules/mbrlen (Depends-on): Likewise.
28430         * modules/mbrtowc (Depends-on): Likewise.
28431         * modules/mbsinit (Depends-on): Likewise.
28432         * modules/mbsrtowcs (Depends-on): Likewise.
28433         * modules/mbswidth (Depends-on): Likewise.
28434         * modules/quotearg (Depends-on): Likewise.
28435         * modules/strftime (Depends-on): Likewise.
28436
28437 2008-12-20  Bruno Haible  <bruno@clisp.org>
28438
28439         Ensure wctob is declared on IRIX 6.5.
28440         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28441         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28442         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28444         of HAVE_WCTOB.
28445         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28446         HAVE_WCTOB.
28447         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28448
28449 2008-12-19  Bruno Haible  <bruno@clisp.org>
28450
28451         * modules/mbsrtowcs-tests: New file.
28452         * tests/test-mbsrtowcs1.sh: New file.
28453         * tests/test-mbsrtowcs2.sh: New file.
28454         * tests/test-mbsrtowcs3.sh: New file.
28455         * tests/test-mbsrtowcs4.sh: New file.
28456         * tests/test-mbsrtowcs.c: New file.
28457
28458         New module 'mbsrtowcs'.
28459         * lib/wchar.in.h (mbsrtowcs): New declaration.
28460         * lib/mbsrtowcs.c: New file.
28461         * m4/mbsrtowcs.m4: New file.
28462         * modules/mbsrtowcs: New file.
28463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28464         HAVE_MBSRTOWCS.
28465         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28466         HAVE_MBSRTOWCS.
28467         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28468
28469 2008-12-19  Bruno Haible  <bruno@clisp.org>
28470
28471         New module 'mbrlen'.
28472         * lib/wchar.in.h (mbrlen): New declaration.
28473         * lib/mbrlen.c: New file.
28474         * m4/mbrlen.m4: New file.
28475         * modules/mbrlen: New file.
28476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28477         HAVE_MBRLEN.
28478         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28479         HAVE_MBRLEN.
28480         * doc/posix-functions/mbrlen.texi: Document the new module.
28481
28482 2008-12-19  Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28485         * modules/mbrtowc (Depends-on): Add verify.
28486         Suggested by Paul Eggert.
28487
28488 2008-12-18  Bruno Haible  <bruno@clisp.org>
28489
28490         * modules/mbsinit-tests: New file.
28491         * tests/test-mbsinit.sh: New file.
28492         * tests/test-mbsinit.c: New file.
28493
28494 2008-12-18  Bruno Haible  <bruno@clisp.org>
28495
28496         * modules/mbrtowc-tests: New file.
28497         * tests/test-mbrtowc1.sh: New file.
28498         * tests/test-mbrtowc2.sh: New file.
28499         * tests/test-mbrtowc3.sh: New file.
28500         * tests/test-mbrtowc4.sh: New file.
28501         * tests/test-mbrtowc.c: New file.
28502
28503         New module 'mbrtowc'.
28504         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28505         mbsinit and mbrtowc.
28506         (mbrtowc): New declaration.
28507         * lib/mbrtowc.c: New file.
28508         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28509         * modules/mbrtowc: New file.
28510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28511         HAVE_MBRTOWC.
28512         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28513         HAVE_MBRTOWC.
28514         * doc/posix-functions/mbrtowc.texi: Document the new module.
28515
28516 2008-12-18  Bruno Haible  <bruno@clisp.org>
28517
28518         New module 'wctob'.
28519         * lib/wchar.in.h (wctob): New declaration.
28520         * lib/wctob.c: New file.
28521         * m4/wctob.m4: New file.
28522         * modules/wctob: New file.
28523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28524         HAVE_WCTOB.
28525         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28526         * doc/posix-functions/wctob.texi: Document the new module.
28527
28528 2008-12-18  Bruno Haible  <bruno@clisp.org>
28529
28530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28531         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28532
28533 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28534
28535         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28536         G. Christensen" <tgc@jupiterrise.com>.
28537
28538         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28539         G. Christensen" <tgc@jupiterrise.com>.
28540
28541         * lib/flock.c: Need to include string.h.  Reported by "Tom
28542         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28543         <ebb9@byu.net>.
28544
28545 2008-12-18  Bruno Haible  <bruno@clisp.org>
28546
28547         * m4/locale-ja.m4: New file, from GNU gettext.
28548
28549 2008-12-17  Bruno Haible  <bruno@clisp.org>
28550
28551         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28552         Suggested by Eric Blake.
28553
28554 2008-12-17  Bruno Haible  <bruno@clisp.org>
28555
28556         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28557
28558 2008-12-17  Bruno Haible  <bruno@clisp.org>
28559
28560         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28561         * modules/mbsinit (Depends-on): Add verify.
28562         Suggested by Paul Eggert.
28563
28564 2008-12-17  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28567         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28568         gl_FUNC_MBRTOWC.
28569         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28570         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28571         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28572         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28573         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28574         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28575         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28576         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28577         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28578         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28579         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28580         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28581         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28582         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28583         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28584         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28585         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28586         * modules/trim (configure.ac): Likewise.
28587
28588 2008-12-17  Bruno Haible  <bruno@clisp.org>
28589
28590         * modules/btowc-tests: New file.
28591         * tests/test-btowc1.sh: New file.
28592         * tests/test-btowc2.sh: New file.
28593         * tests/test-btowc.c: New file.
28594
28595         New module 'btowc'.
28596         * lib/wchar.in.h (btowc): New declaration.
28597         * lib/btowc.c: New file.
28598         * m4/btowc.m4: New file.
28599         * modules/btowc: New file.
28600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28601         HAVE_BTOWC.
28602         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28603         * doc/posix-functions/btowc.texi: Document the new module.
28604
28605 2008-12-17  Bruno Haible  <bruno@clisp.org>
28606
28607         New module 'mbsinit'.
28608         * lib/wchar.in.h (mbsinit): New declaration.
28609         * lib/mbsinit.c: New file.
28610         * m4/mbsinit.m4: New file.
28611         * modules/mbsinit: New file.
28612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28613         HAVE_MBSINIT.
28614         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28615         HAVE_MBSINIT.
28616         * doc/posix-functions/mbsinit.texi: Document the new module.
28617
28618 2008-12-16  Bruno Haible  <bruno@clisp.org>
28619
28620         * lib/unistd.in.h: Add comment.
28621         * tests/test-environ.c: Don't include <stdlib.h>.
28622
28623 2008-12-16  Bruno Haible  <bruno@clisp.org>
28624
28625         * lib/parse-duration.h (parse_duration): Document return value
28626         convention.
28627         * lib/parse-duration.c: Include specification header first. Add
28628         comments.
28629         (_): Remove macro.
28630         (parse_year_month_day, parse_hour_minute_second): Move side effects
28631         outside of strchr call.
28632         (parse_non_iso8601): Move side effects outside of isspace call.
28633         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28634         call.
28635
28636 2008-12-16  Bruno Haible  <bruno@clisp.org>
28637
28638         * tests/test-parse-duration.sh: Produce no output when the test
28639         succeeds.
28640
28641 2008-12-16  Bruno Haible  <bruno@clisp.org>
28642
28643         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28644         expressions.
28645
28646 2008-12-15  Bruno Haible  <bruno@clisp.org>
28647
28648         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28649         * doc/glibc-functions/flistxattr.texi: Likewise.
28650         * doc/glibc-functions/fopencookie.texi: Likewise.
28651         * doc/glibc-functions/fremovexattr.texi: Likewise.
28652         * doc/glibc-functions/fsetxattr.texi: Likewise.
28653         * doc/glibc-functions/getxattr.texi: Likewise.
28654         * doc/glibc-functions/lgetxattr.texi: Likewise.
28655         * doc/glibc-functions/listxattr.texi: Likewise.
28656         * doc/glibc-functions/llistxattr.texi: Likewise.
28657         * doc/glibc-functions/lremovexattr.texi: Likewise.
28658         * doc/glibc-functions/lsetxattr.texi: Likewise.
28659         * doc/glibc-functions/removexattr.texi: Likewise.
28660         * doc/glibc-functions/setxattr.texi: Likewise.
28661         * doc/posix-functions/open_memstream.texi: Likewise.
28662
28663 2008-12-15  Eric Blake  <ebb9@byu.net>
28664
28665         Update doc for cygwin 1.7.
28666         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28667         functions.
28668         * doc/posix-functions/fchmodat.texi: Likewise.
28669         * doc/posix-functions/fchownat.texi: Likewise.
28670         * doc/posix-functions/fdopendir.texi: Likewise.
28671         * doc/posix-functions/fmemopen.texi: Likewise.
28672         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28673         * doc/posix-functions/fstatat.texi: Likewise.
28674         * doc/posix-functions/futimens.texi: Likewise.
28675         * doc/posix-functions/gai_strerror.texi: Likewise.
28676         * doc/posix-functions/getaddrinfo.texi: Likewise.
28677         * doc/posix-functions/getnameinfo.texi: Likewise.
28678         * doc/posix-functions/if_freenameindex.texi: Likewise.
28679         * doc/posix-functions/if_indextoname.texi: Likewise.
28680         * doc/posix-functions/if_nameindex.texi: Likewise.
28681         * doc/posix-functions/if_nametoindex.texi: Likewise.
28682         * doc/posix-functions/insque.texi: Likewise.
28683         * doc/posix-functions/linkat.texi: Likewise.
28684         * doc/posix-functions/llrint.texi: Likewise.
28685         * doc/posix-functions/llrintf.texi: Likewise.
28686         * doc/posix-functions/llrintl.texi: Likewise.
28687         * doc/posix-functions/lockf.texi: Likewise.
28688         * doc/posix-functions/lrintl.texi: Likewise.
28689         * doc/posix-functions/mkdirat.texi: Likewise.
28690         * doc/posix-functions/mkfifoat.texi: Likewise.
28691         * doc/posix-functions/mknodat.texi: Likewise.
28692         * doc/posix-functions/mq_close.texi: Likewise.
28693         * doc/posix-functions/mq_getattr.texi: Likewise.
28694         * doc/posix-functions/mq_notify.texi: Likewise.
28695         * doc/posix-functions/mq_open.texi: Likewise.
28696         * doc/posix-functions/mq_receive.texi: Likewise.
28697         * doc/posix-functions/mq_send.texi: Likewise.
28698         * doc/posix-functions/mq_setattr.texi: Likewise.
28699         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28700         * doc/posix-functions/mq_timedsend.texi: Likewise.
28701         * doc/posix-functions/mq_unlink.texi: Likewise.
28702         * doc/posix-functions/open_memstream.texi: Likewise.
28703         * doc/posix-functions/openat.texi: Likewise.
28704         * doc/posix-functions/posix_fadvise.texi: Likewise.
28705         * doc/posix-functions/posix_fallocate.texi: Likewise.
28706         * doc/posix-functions/posix_madvise.texi: Likewise.
28707         * doc/posix-functions/posix_memalign.texi: Likewise.
28708         * doc/posix-functions/posix_openpt.texi: Likewise.
28709         * doc/posix-functions/readlinkat.texi: Likewise.
28710         * doc/posix-functions/remque.texi: Likewise.
28711         * doc/posix-functions/renameat.texi: Likewise.
28712         * doc/posix-functions/rintl.texi: Likewise.
28713         * doc/posix-functions/sem_unlink.texi: Likewise.
28714         * doc/posix-functions/shm_open.texi: Likewise.
28715         * doc/posix-functions/shm_unlink.texi: Likewise.
28716         * doc/posix-functions/signgam.texi: Likewise.
28717         * doc/posix-functions/sigset.texi: Likewise.
28718         * doc/posix-functions/stpcpy.texi: Likewise.
28719         * doc/posix-functions/stpncpy.texi: Likewise.
28720         * doc/posix-functions/strerror.texi: Likewise.
28721         * doc/posix-functions/strtod.texi: Likewise.
28722         * doc/posix-functions/symlinkat.texi: Likewise.
28723         * doc/posix-functions/unlinkat.texi: Likewise.
28724         * doc/posix-functions/utimensat.texi: Likewise.
28725         * doc/glibc-functions/bindresvport.texi: Likewise.
28726         * doc/glibc-functions/dn_expand.texi: Likewise.
28727         * doc/glibc-functions/exp10.texi: Likewise.
28728         * doc/glibc-functions/exp10f.texi: Likewise.
28729         * doc/glibc-functions/fgetxattr.texi: Likewise.
28730         * doc/glibc-functions/flistxattr.texi: Likewise.
28731         * doc/glibc-functions/fopencookie.texi: Likewise.
28732         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28733         * doc/glibc-functions/fremovexattr.texi: Likewise.
28734         * doc/glibc-functions/fsetxattr.texi: Likewise.
28735         * doc/glibc-functions/getifaddrs.texi: Likewise.
28736         * doc/glibc-functions/getxattr.texi: Likewise.
28737         * doc/glibc-functions/lgetxattr.texi: Likewise.
28738         * doc/glibc-functions/listxattr.texi: Likewise.
28739         * doc/glibc-functions/llistxattr.texi: Likewise.
28740         * doc/glibc-functions/lremovexattr.texi: Likewise.
28741         * doc/glibc-functions/lsetxattr.texi: Likewise.
28742         * doc/glibc-functions/pow10.texi: Likewise.
28743         * doc/glibc-functions/pow10f.texi: Likewise.
28744         * doc/glibc-functions/rcmd_af.texi: Likewise.
28745         * doc/glibc-functions/removexattr.texi: Likewise.
28746         * doc/glibc-functions/res_init.texi: Likewise.
28747         * doc/glibc-functions/res_mkquery.texi: Likewise.
28748         * doc/glibc-functions/res_query.texi: Likewise.
28749         * doc/glibc-functions/res_querydomain.texi: Likewise.
28750         * doc/glibc-functions/res_send.texi: Likewise.
28751         * doc/glibc-functions/rresvport_af.texi: Likewise.
28752         * doc/glibc-functions/setxattr.texi: Likewise.
28753         * doc/glibc-functions/strcasestr.texi: Likewise.
28754
28755 2008-12-15  Bruno Haible  <bruno@clisp.org>
28756
28757         Fix compilation error on OSF/1 4.0.
28758         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28759         <sys/time.h>, simply delegate to the system header.
28760         Reported by Daniel Richard G. <oss@teragram.com>.
28761
28762 2008-12-15  Bruno Haible  <bruno@clisp.org>
28763
28764         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28765         * doc/posix-functions/fchmodat.texi: Likewise.
28766         * doc/posix-functions/fchownat.texi: Likewise.
28767         * doc/posix-functions/fdopendir.texi: Likewise.
28768         * doc/posix-functions/fstatat.texi: Likewise.
28769         * doc/posix-functions/mkdirat.texi: Likewise.
28770         * doc/posix-functions/unlinkat.texi: Likewise.
28771
28772 2008-12-14  Bruno Haible  <bruno@clisp.org>
28773
28774         Update doc for POSIX:2008.
28775         * doc/posix-functions/faccessat.texi: New file.
28776         * doc/posix-functions/fchmodat.texi: New file.
28777         * doc/posix-functions/fchownat.texi: New file.
28778         * doc/posix-functions/fdopendir.texi: New file.
28779         * doc/posix-functions/fstatat.texi: New file.
28780         * doc/posix-functions/futimens.texi: New file.
28781         * doc/posix-functions/linkat.texi: New file.
28782         * doc/posix-functions/mkdirat.texi: New file.
28783         * doc/posix-functions/mkfifoat.texi: New file.
28784         * doc/posix-functions/mknodat.texi: New file.
28785         * doc/posix-functions/open_wmemstream.texi: New file.
28786         * doc/posix-functions/openat.texi: New file.
28787         * doc/posix-functions/psiginfo.texi: New file.
28788         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28789         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28790         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28791         * doc/posix-functions/readlinkat.texi: New file.
28792         * doc/posix-functions/renameat.texi: New file.
28793         * doc/posix-functions/strerror_l.texi: New file.
28794         * doc/posix-functions/symlinkat.texi: New file.
28795         * doc/posix-functions/unlinkat.texi: New file.
28796         * doc/posix-functions/utimensat.texi: New file.
28797         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28798
28799 2008-12-14  Bruno Haible  <bruno@clisp.org>
28800
28801         Update doc for POSIX:2008.
28802         * doc/posix-functions/alphasort.texi: Renamed from
28803         doc/glibc-functions/alphasort.texi.
28804         * doc/posix-functions/dirfd.texi: Renamed from
28805         doc/glibc-functions/dirfd.texi.
28806         * doc/posix-functions/dprintf.texi: Renamed from
28807         doc/glibc-functions/dprintf.texi.
28808         * doc/posix-functions/duplocale.texi: Renamed from
28809         doc/glibc-functions/duplocale.texi.
28810         * doc/posix-functions/fexecve.texi: Renamed from
28811         doc/glibc-functions/fexecve.texi.
28812         * doc/posix-functions/fmemopen.texi: Renamed from
28813         doc/glibc-functions/fmemopen.texi.
28814         * doc/posix-functions/freelocale.texi: Renamed from
28815         doc/glibc-functions/freelocale.texi.
28816         * doc/posix-functions/getdate_err.texi: Renamed from
28817         doc/glibc-functions/getdate_err.texi.
28818         * doc/posix-functions/isalnum_l.texi: Renamed from
28819         doc/glibc-functions/isalnum_l.texi.
28820         * doc/posix-functions/isalpha_l.texi: Renamed from
28821         doc/glibc-functions/isalpha_l.texi.
28822         * doc/posix-functions/isblank_l.texi: Renamed from
28823         doc/glibc-functions/isblank_l.texi.
28824         * doc/posix-functions/iscntrl_l.texi: Renamed from
28825         doc/glibc-functions/iscntrl_l.texi.
28826         * doc/posix-functions/isdigit_l.texi: Renamed from
28827         doc/glibc-functions/isdigit_l.texi.
28828         * doc/posix-functions/isgraph_l.texi: Renamed from
28829         doc/glibc-functions/isgraph_l.texi.
28830         * doc/posix-functions/islower_l.texi: Renamed from
28831         doc/glibc-functions/islower_l.texi.
28832         * doc/posix-functions/isprint_l.texi: Renamed from
28833         doc/glibc-functions/isprint_l.texi.
28834         * doc/posix-functions/ispunct_l.texi: Renamed from
28835         doc/glibc-functions/ispunct_l.texi.
28836         * doc/posix-functions/isspace_l.texi: Renamed from
28837         doc/glibc-functions/isspace_l.texi.
28838         * doc/posix-functions/isupper_l.texi: Renamed from
28839         doc/glibc-functions/isupper_l.texi.
28840         * doc/posix-functions/iswalnum_l.texi: Renamed from
28841         doc/glibc-functions/iswalnum_l.texi.
28842         * doc/posix-functions/iswalpha_l.texi: Renamed from
28843         doc/glibc-functions/iswalpha_l.texi.
28844         * doc/posix-functions/iswblank_l.texi: Renamed from
28845         doc/glibc-functions/iswblank_l.texi.
28846         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28847         doc/glibc-functions/iswcntrl_l.texi.
28848         * doc/posix-functions/iswctype_l.texi: Renamed from
28849         doc/glibc-functions/iswctype_l.texi.
28850         * doc/posix-functions/iswdigit_l.texi: Renamed from
28851         doc/glibc-functions/iswdigit_l.texi.
28852         * doc/posix-functions/iswgraph_l.texi: Renamed from
28853         doc/glibc-functions/iswgraph_l.texi.
28854         * doc/posix-functions/iswlower_l.texi: Renamed from
28855         doc/glibc-functions/iswlower_l.texi.
28856         * doc/posix-functions/iswprint_l.texi: Renamed from
28857         doc/glibc-functions/iswprint_l.texi.
28858         * doc/posix-functions/iswpunct_l.texi: Renamed from
28859         doc/glibc-functions/iswpunct_l.texi.
28860         * doc/posix-functions/iswspace_l.texi: Renamed from
28861         doc/glibc-functions/iswspace_l.texi.
28862         * doc/posix-functions/iswupper_l.texi: Renamed from
28863         doc/glibc-functions/iswupper_l.texi.
28864         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28865         doc/glibc-functions/iswxdigit_l.texi.
28866         * doc/posix-functions/isxdigit_l.texi: Renamed from
28867         doc/glibc-functions/isxdigit_l.texi.
28868         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28869         doc/glibc-functions/mbsnrtowcs.texi.
28870         * doc/posix-functions/mkdtemp.texi: Renamed from
28871         doc/glibc-functions/mkdtemp.texi.
28872         * doc/posix-functions/newlocale.texi: Renamed from
28873         doc/glibc-functions/newlocale.texi.
28874         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28875         doc/glibc-functions/nl_langinfo_l.texi.
28876         * doc/posix-functions/open_memstream.texi: Renamed from
28877         doc/glibc-functions/open_memstream.texi.
28878         * doc/posix-functions/opterr.texi: Renamed from
28879         doc/glibc-functions/opterr.texi.
28880         * doc/posix-functions/optind.texi: Renamed from
28881         doc/glibc-functions/optind.texi.
28882         * doc/posix-functions/optopt.texi: Renamed from
28883         doc/glibc-functions/optopt.texi.
28884         * doc/posix-functions/psignal.texi: Renamed from
28885         doc/glibc-functions/psignal.texi.
28886         * doc/posix-functions/scandir.texi: Renamed from
28887         doc/glibc-functions/scandir.texi.
28888         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28889         doc/glibc-functions/sched_get_priority_min.texi.
28890         * doc/posix-functions/signgam.texi: Renamed from
28891         doc/glibc-functions/signgam.texi.
28892         * doc/posix-functions/stpcpy.texi: Renamed from
28893         doc/glibc-functions/stpcpy.texi.
28894         * doc/posix-functions/stpncpy.texi: Renamed from
28895         doc/glibc-functions/stpncpy.texi.
28896         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28897         doc/glibc-functions/strcasecmp_l.texi.
28898         * doc/posix-functions/strcoll_l.texi: Renamed from
28899         doc/glibc-functions/strcoll_l.texi.
28900         * doc/posix-functions/strfmon_l.texi: Renamed from
28901         doc/glibc-functions/strfmon_l.texi.
28902         * doc/posix-functions/strftime_l.texi: Renamed from
28903         doc/glibc-functions/strftime_l.texi.
28904         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28905         doc/glibc-functions/strncasecmp_l.texi.
28906         * doc/posix-functions/strndup.texi: Renamed from
28907         doc/glibc-functions/strndup.texi.
28908         * doc/posix-functions/strnlen.texi: Renamed from
28909         doc/glibc-functions/strnlen.texi.
28910         * doc/posix-functions/strsignal.texi: Renamed from
28911         doc/glibc-functions/strsignal.texi.
28912         * doc/posix-functions/strxfrm_l.texi: Renamed from
28913         doc/glibc-functions/strxfrm_l.texi.
28914         * doc/posix-functions/timer_gettime.texi: Renamed from
28915         doc/glibc-functions/timer_gettime.texi.
28916         * doc/posix-functions/tolower_l.texi: Renamed from
28917         doc/glibc-functions/tolower_l.texi.
28918         * doc/posix-functions/toupper_l.texi: Renamed from
28919         doc/glibc-functions/toupper_l.texi.
28920         * doc/posix-functions/towctrans_l.texi: Renamed from
28921         doc/glibc-functions/towctrans_l.texi.
28922         * doc/posix-functions/towlower_l.texi: Renamed from
28923         doc/glibc-functions/towlower_l.texi.
28924         * doc/posix-functions/towupper_l.texi: Renamed from
28925         doc/glibc-functions/towupper_l.texi.
28926         * doc/posix-functions/uselocale.texi: Renamed from
28927         doc/glibc-functions/uselocale.texi.
28928         * doc/posix-functions/vdprintf.texi: Renamed from
28929         doc/glibc-functions/vdprintf.texi.
28930         * doc/posix-functions/wcpcpy.texi:
28931         Renamed from doc/glibc-functions/wcpcpy.texi.
28932         * doc/posix-functions/wcpncpy.texi: Renamed from
28933         doc/glibc-functions/wcpncpy.texi.
28934         * doc/posix-functions/wcscasecmp.texi: Renamed from
28935         doc/glibc-functions/wcscasecmp.texi.
28936         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28937         doc/glibc-functions/wcscasecmp_l.texi.
28938         * doc/posix-functions/wcscoll_l.texi: Renamed from
28939         doc/glibc-functions/wcscoll_l.texi.
28940         * doc/posix-functions/wcsdup.texi: Renamed from
28941         doc/glibc-functions/wcsdup.texi.
28942         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28943         doc/glibc-functions/wcsncasecmp.texi.
28944         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28945         doc/glibc-functions/wcsncasecmp_l.texi.
28946         * doc/posix-functions/wcsnlen.texi: Renamed from
28947         doc/glibc-functions/wcsnlen.texi.
28948         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28949         doc/glibc-functions/wcsnrtombs.texi.
28950         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28951         doc/glibc-functions/wcsxfrm_l.texi.
28952         * doc/posix-functions/wctrans_l.texi: Renamed from
28953         doc/glibc-functions/wctrans_l.texi.
28954         * doc/posix-functions/wctype_l.texi: Renamed from
28955         doc/glibc-functions/wctype_l.texi.
28956         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28957         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28958         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28959         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28960         these subsections.
28961         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28962         Remove sections.
28963
28964 2008-12-14  Bruno Haible  <bruno@clisp.org>
28965
28966         Update doc for POSIX:2008.
28967         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28968
28969 2008-12-14  Bruno Haible  <bruno@clisp.org>
28970
28971         Update doc for POSIX:2008.
28972         * doc/pastposix-functions/bcmp.texi: Renamed from
28973         doc/posix-functions/bcmp.texi.
28974         * doc/pastposix-functions/bcopy.texi: Renamed from
28975         doc/posix-functions/bcopy.texi.
28976         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28977         doc/posix-functions/bsd_signal.texi.
28978         * doc/pastposix-functions/bzero.texi: Renamed from
28979         doc/posix-functions/bzero.texi.
28980         * doc/pastposix-functions/ecvt.texi: Renamed from
28981         doc/posix-functions/ecvt.texi.
28982         * doc/pastposix-functions/fcvt.texi: Renamed from
28983         doc/posix-functions/fcvt.texi.
28984         * doc/pastposix-functions/ftime.texi: Renamed from
28985         doc/posix-functions/ftime.texi.
28986         * doc/pastposix-functions/gcvt.texi: Renamed from
28987         doc/posix-functions/gcvt.texi.
28988         * doc/pastposix-functions/getcontext.texi: Renamed from
28989         doc/posix-functions/getcontext.texi.
28990         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28991         doc/posix-functions/gethostbyaddr.texi.
28992         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28993         doc/posix-functions/gethostbyname.texi.
28994         * doc/pastposix-functions/getwd.texi: Renamed from
28995         doc/posix-functions/getwd.texi.
28996         * doc/pastposix-functions/h_errno.texi: Renamed from
28997         doc/posix-functions/h_errno.texi.
28998         * doc/pastposix-functions/index.texi: Renamed from
28999         doc/posix-functions/index.texi.
29000         * doc/pastposix-functions/makecontext.texi: Renamed from
29001         doc/posix-functions/makecontext.texi.
29002         * doc/pastposix-functions/mktemp.texi: Renamed from
29003         doc/posix-functions/mktemp.texi.
29004         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29005         doc/posix-functions/pthread_attr_getstackaddr.texi.
29006         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29007         doc/posix-functions/pthread_attr_setstackaddr.texi.
29008         * doc/pastposix-functions/rindex.texi: Renamed from
29009         doc/posix-functions/rindex.texi.
29010         * doc/pastposix-functions/scalb.texi: Renamed from
29011         doc/posix-functions/scalb.texi.
29012         * doc/pastposix-functions/setcontext.texi: Renamed from
29013         doc/posix-functions/setcontext.texi.
29014         * doc/pastposix-functions/swapcontext.texi: Renamed from
29015         doc/posix-functions/swapcontext.texi.
29016         * doc/pastposix-functions/ualarm.texi: Renamed from
29017         doc/posix-functions/ualarm.texi.
29018         * doc/pastposix-functions/usleep.texi: Renamed from
29019         doc/posix-functions/usleep.texi.
29020         * doc/pastposix-functions/vfork.texi: Renamed from
29021         doc/posix-functions/vfork.texi.
29022         * doc/pastposix-functions/wcswcs.texi: Renamed from
29023         doc/posix-functions/wcswcs.texi.
29024         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29025         (Function Substitutes): Update.
29026
29027 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29028
29029         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29030         m4/strerror.m4.
29031
29032 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29033             Bruno Haible  <bruno@clisp.org>
29034
29035         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29036
29037 2008-12-13  Bruno Haible  <bruno@clisp.org>
29038
29039         * modules/strtoull (Depends-on): Remove unistd.
29040
29041 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29042
29043         * modules/strtoull (Depends-on): Add stdlib.
29044
29045 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29046
29047         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29048
29049 2008-12-10  Jim Meyering  <meyering@redhat.com>
29050
29051         gl_ASSERT: don't say assertions are disabled when they're not
29052         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29053         "checking whether to enable assertions... no", when they are in
29054         fact enabled.  This is solely a bug in the output of configure.
29055         In spite of saying "no", NDEBUG was not defined in that case.
29056         Also, as noted by Eric Blake, leave assertions enabled upon
29057         --enable-assert=INVALID.
29058
29059 2008-12-10  Bruno Haible  <bruno@clisp.org>
29060
29061         Change MODULES.html to refer to POSIX:2008 where possible.
29062         * MODULES.html.sh (POSIX2008_URL): New variable.
29063         (posix_headers): Remove sys/timeb, ucontext.
29064         (posix2001_headers): New variable.
29065         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29066         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29067         index, makecontext, mktemp, pthread_attr_getstackaddr,
29068         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29069         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29070         (posix2001_functions): New variable.
29071         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29072         otherwise.
29073
29074 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29075
29076         add missing include to parse-duration.c
29077         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29078         * modules/parse-duration (Depends-on): Add xalloc.
29079
29080         fix sed script reading maint.mk
29081         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29082         (syntax-check-rules): Use it.
29083
29084 2008-12-09  Bruno Haible  <bruno@clisp.org>
29085
29086         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29087         MacOS X 10.4/PowerPC.
29088         Reported by Simon Josefsson.
29089
29090 2008-12-08  Jim Meyering  <meyering@redhat.com>
29091
29092         work around mingw's lack of some S_IF definitions
29093         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29094         Reported by Simon Josefsson.
29095
29096 2008-12-08  Bruno Haible  <bruno@clisp.org>
29097
29098         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29099         applied to variables. Needed on MacOS X 10.4/PowerPC.
29100         Reported by Simon Josefsson.
29101
29102 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29103         and Eric Blake  <ebb9@byu.net>
29104
29105         assert: honor --enable-assert
29106         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29107         order to honor --enable-assert, rather than treating it as a
29108         synonym for --disable-assert.
29109
29110 2008-12-08  Jim Meyering  <meyering@redhat.com>
29111
29112         * lib/posixtm.c: Remove now-useless declaration of mktime.
29113
29114         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29115
29116 2008-12-07  Bruno Haible  <bruno@clisp.org>
29117
29118         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29119         test_once): Mark functions as static.
29120         * tests/test-tls.c (test_tls): Likewise.
29121
29122 2008-12-07  Bruno Haible  <bruno@clisp.org>
29123
29124         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29125         iconv_register_autodetect.
29126
29127 2008-12-07  Jim Meyering  <meyering@redhat.com>
29128
29129         posixtm.c: avoid a warning
29130         * lib/posixtm.c (posixtime): Don't initialize tm0.
29131         It's no longer needed to placate gcc4's -Wuninitialized,
29132         and the attempt to placate would elicit a new warning.
29133
29134         unicodeio.c: mark unused parameters
29135         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29136         (fallback_failure_callback): Likewise.
29137
29138 2008-12-07  Bruno Haible  <bruno@clisp.org>
29139
29140         * gnulib-tool (func_create_testdir): When building the tests
29141         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29142         Reported by Simon Josefsson.
29143
29144 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29145
29146         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29147
29148 2008-12-06  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29151         Suggested by Eric Blake.
29152
29153 2008-12-06  Bruno Haible  <bruno@clisp.org>
29154
29155         Fix a c-stack test failure on MacOS X.
29156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29157         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29158         handler for SIGBUS as well.
29159         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29160         install a signal handler for SIGBUS as well.
29161         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29162
29163 2008-12-06  Bruno Haible  <bruno@clisp.org>
29164
29165         Advocacy documentation.
29166         * doc/gnulib-intro.texi (Benefits): New section.
29167         * doc/gnulib.texi: Update.
29168
29169 2008-12-06  Bruno Haible  <bruno@clisp.org>
29170
29171         Document the 'manywarnings' module.
29172         * doc/manywarnings.texi: New file.
29173         * doc/gnulib.texi: Include it.
29174
29175 2008-12-05  Eric Blake  <ebb9@byu.net>
29176
29177         tests: silence some gcc warnings
29178         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29179         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29180         type mismatches.
29181
29182 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29183             Bruno Haible  <bruno@clisp.org>
29184
29185         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29186
29187 2008-11-29  Jim Meyering  <meyering@redhat.com>
29188
29189         unicodeio.c: mark unused parameters
29190         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29191         (fallback_failure_callback): Likewise.
29192
29193         fts: fix a thinko
29194         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29195         (set_stat_type): Return S_IF*-valued "type" directly.
29196         Prompted by James Youngman's spotting a related bug.
29197         Confirmed by further testing through find.
29198
29199         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29200         * lib/fts.c (D_TYPE): Define.
29201         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29202         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29203         (s_ifmt_shift_bits): New function.
29204         (set_stat_type): New function.
29205         (fts_build): When not calling fts_stat, call set_stat_type
29206         to propagate dirent.d_type info to fts_read caller.
29207         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29208         fts_statp->st_mode type information may be valid.
29209
29210 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29211
29212         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29213         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29214         <sds@gnu.org>.
29215
29216 2008-11-20  Bruno Haible  <bruno@clisp.org>
29217
29218         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29219         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29220         INCLUDE_NEXT.
29221         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29222         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29223         * modules/math (Makefile.am): Substitute
29224         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29226
29227 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29228             Bruno Haible  <bruno@clisp.org>
29229
29230         * lib/stdint.in.h: Define all type macros so that their expansion is
29231         a single typedef'ed token. Fixes a compilation failure in Boost which
29232         does "using ::int8_t;".
29233
29234 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29235
29236         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29237         gl_MANYWARN_ALL_GCC.
29238         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29239         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29240         * modules/manywarnings: New file.
29241         * MODULES.html.sh: Mention manywarnings module.
29242
29243 2008-11-18  Bruno Haible  <bruno@clisp.org>
29244
29245         * doc/gnulib-tool.texi (Unit tests): New section.
29246
29247 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29248
29249         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29250         paths like 'lib/po/foo.po'.
29251
29252 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29253
29254         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29255         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29256
29257 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29258
29259         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29260         parameter works.
29261
29262 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29263
29264         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29265
29266 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29267
29268         * modules/parse-duration-tests: New file.
29269         * tests/test-parse-duration.sh: New file.
29270         * tests/test-parse-duration.c: New file.
29271
29272         New module 'parse-duration'.
29273         * lib/parse-duration.h: New file.
29274         * lib/parse-duration.c: New file.
29275         * modules/parse-duration: New file.
29276
29277 2008-11-17  Bruno Haible  <bruno@clisp.org>
29278
29279         * tests/test-select-out.sh: Comment out the first pipe test.
29280         Reported by Simon Josefsson.
29281
29282 2008-11-17  Bruno Haible  <bruno@clisp.org>
29283
29284         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29286         gl_HOSTENT.
29287
29288 2008-11-17  Bruno Haible  <bruno@clisp.org>
29289
29290         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29291         -lnetwork and -lnet. Needed for Haiku and BeOS.
29292
29293 2008-11-16  Bruno Haible  <bruno@clisp.org>
29294
29295         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29296
29297 2008-11-16  Bruno Haible  <bruno@clisp.org>
29298
29299         Avoid test failure on Haiku.
29300         * tests/test-fsync.c: Include <errno.h>.
29301         (main): Don't require that fsync (0) fails.
29302
29303 2008-11-15  Bruno Haible  <bruno@clisp.org>
29304
29305         New module 'hostent'.
29306         * modules/hostent: New file.
29307         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29308
29309 2008-11-15  Bruno Haible  <bruno@clisp.org>
29310
29311         New module 'servent'.
29312         * modules/servent: New file.
29313         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29314
29315 2008-11-15  Bruno Haible  <bruno@clisp.org>
29316
29317         Avoid generating same test program with two different rules.
29318         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29319         test-frexp to test-frexp-nolibm.
29320         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29321         test-frexpl to test-frexpl-nolibm.
29322
29323 2008-11-15  Bruno Haible  <bruno@clisp.org>
29324
29325         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29326         $(FREXPL_LIBM).
29327
29328 2008-11-15  Bruno Haible  <bruno@clisp.org>
29329
29330         * lib/netdb.in.h: Activate the definitions also when the system's
29331         <netdb.h> has 'struct addrinfo'.
29332         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29333         EAI_OVERFLOW or AI_NUMERICSERV.
29334         * doc/posix-headers/netdb.texi: Document the problem.
29335
29336 2008-11-15  Bruno Haible  <bruno@clisp.org>
29337
29338         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29339
29340         Make the 'sched' module work on platforms where <sched.h> exists but
29341         is incomplete (such as Haiku).
29342         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29343         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29344         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29345         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29346         HAVE_STRUCT_SCHED_PARAM.
29347         * modules/sched (Depends-on): Add include_next.
29348         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29349         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29350         * doc/posix-headers/sched.texi: Document the issue.
29351
29352 2008-11-13  Jim Meyering  <meyering@redhat.com>
29353
29354         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29355         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29356         test would fail due to the difference in the Report bugs to ...
29357         line.  The expected address is empty, "<>", while the actual
29358         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29359
29360 2008-11-12  Bruno Haible  <bruno@clisp.org>
29361
29362         lstat: don't compile lstat.c on systems lacking lstat
29363         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29364         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29365         Reported by Daniel P. Berrange via Jim Meyering.
29366
29367 2008-11-12  Jim Meyering  <meyering@redhat.com>
29368
29369         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29370
29371 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29372
29373         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29374         instead.
29375
29376 2008-11-12  Bruno Haible  <bruno@clisp.org>
29377
29378         * lib/unicodeio.c: Include unistr.h.
29379         (utf8_wctomb): Remove function.
29380         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29381
29382 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29383
29384         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29385         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29386         <bruno@clisp.org>.
29387         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29388
29389 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29390
29391         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29392         * doc/gnulib.texi: Add section for warnings.
29393
29394 2008-11-11  Bruno Haible  <bruno@clisp.org>
29395
29396         * lib/sockets.h: Add a comment.
29397
29398 2008-11-11  Karl Berry  <karl@gnu.org>
29399
29400         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29401
29402 2008-11-11  Eric Blake  <ebb9@byu.net>
29403
29404         fdl.texi: avoid git symlinks
29405         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29406
29407 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29408
29409         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29410
29411 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29412
29413         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29414         (gl_WARN_ADD): Substitute $2 if literal.
29415
29416 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29417
29418         * m4/warning.m4: Remove.
29419
29420 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29421
29422         * m4/warnings.m4: Almost complete rewrite. :-)
29423
29424 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29425
29426         * modules/warnings: New module.
29427         * m4/warnings.m4: New file.
29428         * MODULES.html.sh: Mention warnings module.
29429         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29430         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29431
29432 2008-11-10  Eric Blake  <ebb9@byu.net>
29433
29434         fdl.texi: make a symlink to the latest version
29435         * doc/standards.texi: Revert today's earlier change.
29436         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29437         * doc/fdl.texi: ...and replace this with a symlink to the newer
29438         fdl-1.3.texi.
29439
29440 2008-11-10  Bruno Haible  <bruno@clisp.org>
29441
29442         * tests/test-select-fd.c (main): Accept the result file name as fourth
29443         argument.
29444         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29445         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29446
29447 2008-11-10  Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29450         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29451         as autoconf-substituted macros.
29452         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29454         gl_NETDB_H_DEFAULTS. Set these variables.
29455         * modules/netdb (Makefile.am): Substitute these variables.
29456
29457 2008-11-10  Eric Blake  <ebb9@byu.net>
29458
29459         standards.texi: include correct file for FDL 1.3
29460         * doc/standards.texi (GNU Free Documentation License): Change
29461         include file to pull in FDL 1.3, not 1.2.
29462
29463         fdl.texi: revert accidental change to license
29464         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29465
29466 2008-11-10  Bruno Haible  <bruno@clisp.org>
29467
29468         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29469         cross-compiling guesses also when the native compile gives no result.
29470
29471 2008-11-10  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/spawni.c (__spawni): Force variable into the stack.
29474
29475 2008-11-10  Bruno Haible  <bruno@clisp.org>
29476
29477         Add support for Haiku.
29478         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29479         glibc and BeOS, but also on Haiku.
29480         * lib/fpurge.c (fpurge): Likewise.
29481         * lib/freadable.c (freadable): Likewise.
29482         * lib/freadahead.c (freadahead): Likewise.
29483         * lib/freading.c (freading): Likewise.
29484         * lib/freadptr.c (freadptr): Likewise.
29485         * lib/freadseek.c (freadptrinc): Likewise.
29486         * lib/fseeko.c (rpl_fseeko): Likewise.
29487         * lib/fseterr.c (fseterr): Likewise.
29488         * lib/fwritable.c (fwritable): Likewise.
29489         * lib/fwriting.c (fwriting): Likewise.
29490         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29491
29492 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29493
29494         * lib/config.charset: Treat Haiku like BeOS.
29495
29496 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29497
29498         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29499         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29500
29501 2008-11-08  Bruno Haible  <bruno@clisp.org>
29502
29503         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29504         AC_CACHE_CHECK.
29505
29506 2008-11-08  Bruno Haible  <bruno@clisp.org>
29507
29508         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29509
29510 2008-11-08  Bruno Haible  <bruno@clisp.org>
29511
29512         * tests/test-select-fd.c: New file.
29513         * tests/test-select-in.sh: New file.
29514         * tests/test-select-out.sh: New file.
29515         * tests/test-select-stdin.c: New file.
29516         * modules/select-tests (Files): Add the new files.
29517         (Depends-on): Add gettimeofday.
29518         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29519         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29520         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29521
29522 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29523             Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29526
29527 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29528
29529         * build-aux/pmccabe2html: Added support for C++ source files.
29530
29531 2008-11-05  Ben Pfaff  <blp@gnu.org>
29532
29533         Fix lib/close.c build on Windows.
29534         * modules/close (Files): Add lib/w32sock.h.
29535
29536 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29537
29538         Accept Bison's NEWS format.
29539         * build-aux/announce-gen (print_news_deltas): Tweak
29540         $re_prefix.
29541
29542 2008-11-04  Bruno Haible  <bruno@clisp.org>
29543
29544         * modules/random_r (Maintainer): Add glibc.
29545
29546 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29547
29548         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29549         by karl@freefriends.org (Karl Berry).
29550         * doc/alloca.texi: Likewise.
29551         * doc/c-ctype.texi: Likewise.
29552         * doc/c-strcase.texi: Likewise.
29553         * doc/c-strcaseeq.texi: Likewise.
29554         * doc/c-strcasestr.texi: Likewise.
29555         * doc/c-strstr.texi: Likewise.
29556         * doc/c-strtod.texi: Likewise.
29557         * doc/c-strtold.texi: Likewise.
29558         * doc/ctime.texi: Likewise.
29559         * doc/error.texi: Likewise.
29560         * doc/fdl.texi: Likewise.
29561         * doc/gcd.texi: Likewise.
29562         * doc/getdate.texi: Likewise.
29563         * doc/gnulib-intro.texi: Likewise.
29564         * doc/gnulib-tool.texi: Likewise.
29565         * doc/gnulib.texi: Likewise.
29566         * doc/inet_ntoa.texi: Likewise.
29567         * doc/maintain.texi: Likewise.
29568         * doc/make-stds.texi: Likewise.
29569         * doc/quote.texi: Likewise.
29570         * doc/regexprops-generic.texi: Likewise.
29571         * doc/standards.texi: Likewise.
29572         * doc/verify.texi: Likewise.
29573         * doc/visibility.texi: Likewise.
29574         * doc/gnulib.texi (GNU Free Documentation License): Include
29575         fdl-1.3.texi instead of fdl.texi.
29576
29577 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29578
29579         * doc/fdl-1.3.texi: New file, from
29580         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29581         * modules/fdl-1.3: Add.
29582         * MODULES.html.sh: Add fdl-1.3.
29583
29584 2008-11-03  Bruno Haible  <bruno@clisp.org>
29585
29586         Make determination of absolute name of header file work with AIX xlc.
29587         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29588         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29589         preprocessing.
29590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29591         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29592
29593 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29594
29595         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29596         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29597         <ludo@gnu.org>.
29598
29599 2008-11-02  Bruno Haible  <bruno@clisp.org>
29600
29601         Mark 'strpbrk' obsolete.
29602         * modules/strpbrk (Status, Notice): New sections.
29603         * modules/strtok_r (Depends-on): Add strpbrk.
29604
29605 2008-11-02  Bruno Haible  <bruno@clisp.org>
29606
29607         Mark 'strdup' obsolete.
29608         * modules/strdup (Status, Notice): New sections.
29609         * modules/findprog (Depends-on): Add strdup.
29610         * modules/getaddrinfo (Depends-on): Likewise.
29611         * modules/localename (Depends-on): Likewise.
29612         * modules/relocatable-lib (Depends-on): Likewise.
29613         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29614         * modules/relocatable-prog (Depends-on): Likewise.
29615         * modules/trim (Depends-on): Likewise.
29616         * modules/unictype/gen-ctype (Depends-on): Likewise.
29617         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29618
29619 2008-11-02  Bruno Haible  <bruno@clisp.org>
29620
29621         Mark 'strcspn' obsolete.
29622         * modules/strcspn (Status, Notice): New sections.
29623
29624 2008-11-02  Bruno Haible  <bruno@clisp.org>
29625
29626         Mark 'rmdir' obsolete.
29627         * modules/rmdir (Status, Notice): New sections.
29628         * modules/clean-temp (Depends-on): Add rmdir.
29629         * modules/openat (Depends-on): Likewise.
29630
29631 2008-11-02  Bruno Haible  <bruno@clisp.org>
29632
29633         Mark 'raise' obsolete.
29634         * modules/raise (Status, Notice): New sections.
29635         (Include): Specify <signal.h>.
29636         * modules/stdio (Depends-on): Add raise.
29637         * modules/write (Depends-on): Likewise.
29638
29639 2008-11-02  Bruno Haible  <bruno@clisp.org>
29640
29641         Mark 'memset' obsolete.
29642         * modules/memset (Status, Notice): New sections.
29643
29644 2008-11-02  Bruno Haible  <bruno@clisp.org>
29645
29646         Mark 'memmove' obsolete.
29647         * modules/memmove (Status, Notice): New sections.
29648         * modules/argp (Depends-on): Add memmove.
29649         * modules/argz (Depends-on): Likewise.
29650         * modules/canonicalize (Depends-on): Likewise.
29651         * modules/canonicalize-lgpl (Depends-on): Likewise.
29652         * modules/fts (Depends-on): Likewise.
29653         * modules/getcwd (Depends-on): Likewise.
29654         * modules/human (Depends-on): Likewise.
29655         * modules/regex (Depends-on): Likewise.
29656         * modules/striconveh (Depends-on): Likewise.
29657         * modules/trim (Depends-on): Likewise.
29658         * modules/unistr/u8-move (Depends-on): Likewise.
29659         * modules/unistr/u16-move (Depends-on): Likewise.
29660         * modules/unistr/u32-move (Depends-on): Likewise.
29661
29662 2008-11-02  Bruno Haible  <bruno@clisp.org>
29663
29664         Mark 'memcpy' obsolete.
29665         * modules/memcpy (Status, Notice): New sections.
29666
29667 2008-11-02  Bruno Haible  <bruno@clisp.org>
29668
29669         Mark 'memcmp' obsolete.
29670         * modules/memcmp (Status, Notice): New sections.
29671         * modules/argmatch (Depends-on): Add memchr.
29672         * modules/backupfile (Depends-on): Likewise.
29673         * modules/c-strcasestr (Depends-on): Likewise.
29674         * modules/crypto/des (Depends-on): Likewise.
29675         * modules/csharpcomp (Depends-on): Likewise.
29676         * modules/fnmatch (Depends-on): Likewise.
29677         * modules/git-merge-changelog (Depends-on): Likewise.
29678         * modules/isnand (Depends-on): Likewise.
29679         * modules/isnand-nolibm (Depends-on): Likewise.
29680         * modules/isnanf (Depends-on): Likewise.
29681         * modules/isnanf-nolibm (Depends-on): Likewise.
29682         * modules/isnanl (Depends-on): Likewise.
29683         * modules/isnanl-nolibm (Depends-on): Likewise.
29684         * modules/mbchar (Depends-on): Likewise.
29685         * modules/memcoll (Depends-on): Likewise.
29686         * modules/quotearg (Depends-on): Likewise.
29687         * modules/regex (Depends-on): Likewise.
29688         * modules/relocatable-prog (Depends-on): Likewise.
29689         * modules/same (Depends-on): Likewise.
29690         * modules/signbit (Depends-on): Likewise.
29691         * modules/strcasestr-simple (Depends-on): Likewise.
29692         * modules/unictype/gen-ctype (Depends-on): Likewise.
29693         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29694         * modules/uniname/uniname (Depends-on): Likewise.
29695         * modules/unistr/u8-cmp (Depends-on): Likewise.
29696
29697 2008-11-02  Bruno Haible  <bruno@clisp.org>
29698
29699         Mark 'memchr' obsolete.
29700         * modules/memchr (Status, Notice): New sections.
29701         * modules/argp (Depends-on): Add memchr.
29702         * modules/base64 (Depends-on): Likewise.
29703         * modules/c-strcasestr (Depends-on): Likewise.
29704         * modules/chdir-long (Depends-on): Likewise.
29705         * modules/fnmatch (Depends-on): Likewise.
29706         * modules/getsubopt (Depends-on): Likewise.
29707         * modules/git-merge-changelog (Depends-on): Likewise.
29708         * modules/glob (Depends-on): Likewise.
29709         * modules/strcasestr-simple (Depends-on): Likewise.
29710         * modules/strnlen (Depends-on): Likewise.
29711
29712 2008-11-02  Bruno Haible  <bruno@clisp.org>
29713
29714         Mark 'atexit' obsolete.
29715         * modules/atexit (Status, Notice): New sections.
29716         * modules/chdir-long (Depends-on): Add atexit.
29717         * modules/wait-process (Depends-on): Likewise.
29718
29719 2008-11-02  Bruno Haible  <bruno@clisp.org>
29720
29721         * gnulib-tool: New option --with-obsolete.
29722         (func_usage): Document it.
29723         (func_modules_transitive_closure): Drop obsolete dependencies if
29724         incobsolete is not true.
29725         (func_import): Read and save the incobsolete variable to the cache.
29726
29727 2008-11-02  Bruno Haible  <bruno@clisp.org>
29728
29729         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29730         * gnulib-tool: New option --extract-status.
29731         (func_usage): Document it.
29732         (sed_extract_prog): Recognize it.
29733         (func_get_status): New function.
29734
29735 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29736
29737         * modules/sockets (License): Change from LGPL to LGPLv2+.
29738
29739 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29740
29741         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29742
29743 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29744
29745         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29746         Mention times and sys_times.
29747         * modules/sys_times, modules/sys_times-tests: New modules.
29748         * modules/times, modules/times-tests: Likewise
29749         * m4/sys_times_h.m4: New file.
29750         * lib/sys_times.in.h: Likewise
29751         * lib/times.c: Likewise.
29752         * tests/test-sys_times.c: Likewise.
29753         * tests/test-times.c: Likewise.
29754         * doc/posix-headers/sys_times.texi: Update.
29755         * doc/posix-functions/times.texi: Update.
29756
29757 2008-10-28  Jim Meyering  <meyering@redhat.com>
29758
29759         * modules/tempname (Depends-on): Add lstat.
29760
29761         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29762
29763 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29764
29765         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29766         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29767         using idiom used elsewhere in gnulib.
29768
29769 2008-10-27  Jim Meyering  <meyering@redhat.com>
29770
29771         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29772
29773 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29774
29775         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29776         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29777         programs.
29778         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29779
29780 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29781
29782         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29783
29784 2008-10-27  Bruno Haible  <bruno@clisp.org>
29785
29786         * tests/test-lstat.c: Include <stdio.h>.
29787
29788 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29789
29790         * modules/lstat-tests: New module.
29791         * tests/test-lstat.c: New file.
29792
29793 2008-10-26  Jim Meyering  <meyering@redhat.com>
29794
29795         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29796
29797 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29798             Bruno Haible  <bruno@clisp.org>
29799
29800         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29801         * modules/configmake (Include): Add a note that the include must come
29802         after all system headers.
29803         * lib/javaversion.c: Include configmake.h after all other includes.
29804
29805 2008-10-26  Bruno Haible  <bruno@clisp.org>
29806
29807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29808         HAVE_STRUCT_RANDOM_DATA to 1.
29809         (gl_STDLIB_H): Simplify.
29810
29811 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29812
29813         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29814         substitute HAVE_STRUCT_RANDOM_DATA.
29815         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29816         random_data.
29817         * modules/stdlib (Makefile.am): Substitute
29818         HAVE_STRUCT_RANDOM_DATA.
29819
29820 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29821
29822         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29823         * doc/gnulib-intro.texi (Copyright): Likewise.
29824
29825 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29826
29827         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29828         findings.
29829
29830 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29831             Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/unistd.in.h: Include <winsock2.h>.
29834         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29835         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29836         Provide dummy declarations.
29837         (gethostname): Override.
29838         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29839         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29840         gl_PREREQ_SYS_H_WINSOCK2.
29841         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29842         * doc/posix-functions/gethostname.texi: More details.
29843
29844 2008-10-25  Bruno Haible  <bruno@clisp.org>
29845
29846         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29847         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29848         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29849
29850         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29851         here ...
29852         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29854         gl_UNISTD_H_DEFAULTS.
29855
29856 2008-10-25  Eric Blake  <ebb9@byu.net>
29857
29858         signbit: avoid spurious compiler failure
29859         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29860         declarations inside function.
29861
29862 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29863             Bruno Haible  <bruno@clisp.org>
29864
29865         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29866         * modules/random_r (Depends-on): Add stdint.
29867
29868 2008-10-24  Bruno Haible  <bruno@clisp.org>
29869
29870         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29871         Eggert.
29872         * modules/strerror (License): Likewise.
29873
29874 2008-10-24  Jim Meyering  <meyering@redhat.com>
29875
29876         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29877         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29878
29879 2008-10-24  Eric Blake  <ebb9@byu.net>
29880
29881         getgroups: fix compilation when getgroups is available
29882         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29883         but with <config.h> override of getgroups disabled.
29884
29885 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29886
29887         * doc/gnulib.texi (Header files): Add note about C++ problems.
29888         Explained by Bruno Haible <bruno@clisp.org>.
29889
29890 2008-10-23  Bruno Haible  <bruno@clisp.org>
29891
29892         Define a dummy SA_NODEFER macro on Interix.
29893         * lib/signal.in.h (SA_NODEFER): Define fallback.
29894         Reported by Aleksey Cheusov <cheusov@tut.by> via
29895         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29896
29897 2008-10-23  Bruno Haible  <bruno@clisp.org>
29898
29899         * modules/freadahead (License): Change to LGPLv2+.
29900         Suggested by Simon Josefsson.
29901
29902 2008-10-23  Jim Meyering  <meyering@redhat.com>
29903
29904         random_r: new module
29905         * modules/random_r: New file.
29906         * m4/random_r.m4: New file.
29907         * lib/random_r.c: New file, from glibc.
29908         * modules/random_r-tests: New file.
29909         * tests/test-random_r.c: New file.
29910         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29911          Declare.
29912         (RAND_MAX): Define.
29913         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29914         * modules/stdlib: Substitute them, too.
29915         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29916         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29917         * doc/glibc-functions/random_r.texi: Likewise.
29918         * doc/glibc-functions/setstate_r.texi: Likewise.
29919         * doc/glibc-functions/srandom_r.texi: Likewise.
29920         * config/srclist.txt: Mention it.
29921
29922 2008-10-23  David Lutterkort  <lutter@redhat.com>
29923
29924         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29925         link requirement
29926
29927 2008-10-23  Jim Meyering  <meyering@redhat.com>
29928
29929         selinux-h: mark parameters of stub functions as intentionally unused
29930         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29931         * lib/se-context.in.h: Likewise.
29932
29933 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29934
29935         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29936
29937 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29938
29939         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29940
29941 2008-10-22  Eric Blake  <ebb9@byu.net>
29942
29943         glthread/thread: avoid compiler warning
29944         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29945         Add unreachable abort to silence compiler.
29946
29947 2008-10-22  Eric Blake  <ebb9@byu.net>
29948
29949         netdb: also supply struct addrinfo for cygwin 1.5.x
29950         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29951         older cygwin.
29952         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29953         cygwin.
29954         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29955
29956 2008-10-22  Bruno Haible  <bruno@clisp.org>
29957
29958         * users.txt: Update entry about pspp.
29959
29960 2008-10-21  Bruno Haible  <bruno@clisp.org>
29961
29962         Simplification.
29963         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29964         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29965
29966         Simplification.
29967         * lib/ioctl.c (ioctl): Don't undefine.
29968         * lib/socket.c (socket): Don't undefine.
29969
29970         Remove unused module indicator macros.
29971         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29972         GNULIB_$1 as a C macro.
29973
29974         * doc/posix-functions/close.texi: Undo last change.
29975         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29976         Windows platforms.
29977
29978 2008-10-21  Bruno Haible  <bruno@clisp.org>
29979
29980         Add gethostname() declaration to <unistd.h>.
29981         * lib/unistd.in.h (gethostname): New declaration.
29982         * lib/gethostname.c: Include <unistd.h>.
29983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29984         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29986         and HAVE_GETHOSTNAME.
29987         * modules/gethostname (Depends-on): Add unistd.
29988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29989         (Include): Specify <unistd.h>.
29990         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29991         HAVE_GETHOSTNAME.
29992         * tests/test-gethostname.c: Include <unistd.h> first.
29993
29994 2008-10-21  Bruno Haible  <bruno@clisp.org>
29995
29996         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29997         * modules/select-tests (Depends-on): Likewise.
29998         Reported by Simon Josefsson.
29999
30000 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30001
30002         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30003         * lib/accept.c: New file, based on winsock.c.
30004         * lib/bind.c: New file, based on winsock.c.
30005         * lib/connect.c: New file, based on winsock.c.
30006         * lib/getpeername.c: New file, based on winsock.c.
30007         * lib/getsockname.c: New file, based on winsock.c.
30008         * lib/getsockopt.c: New file, based on winsock.c.
30009         * lib/ioctl.c: New file, based on winsock.c.
30010         * lib/listen.c: New file, based on winsock.c.
30011         * lib/recv.c: New file, based on winsock.c.
30012         * lib/recvfrom.c: New file, based on winsock.c.
30013         * lib/send.c: New file, based on winsock.c.
30014         * lib/sendto.c: New file, based on winsock.c.
30015         * lib/setsockopt.c: New file, based on winsock.c.
30016         * lib/shutdown.c: New file, based on winsock.c.
30017         * lib/socket.c: New file, based on winsock.c.
30018         * lib/w32sock.h: New file, based on winsock.c.
30019         * lib/winsock.c: Remove file.
30020         * modules/accept: Likewise.
30021         * modules/bind: Likewise.
30022         * modules/connect: Likewise.
30023         * modules/getpeername: Likewise.
30024         * modules/getsockname: Likewise.
30025         * modules/getsockopt: Likewise.
30026         * modules/ioctl: Likewise.
30027         * modules/listen: Likewise.
30028         * modules/recv: Likewise.
30029         * modules/recvfrom: Likewise.
30030         * modules/send: Likewise.
30031         * modules/sendto: Likewise.
30032         * modules/setsockopt: Likewise.
30033         * modules/shutdown: Likewise.
30034         * modules/socket: Use socket.c instead of winsock.c.
30035         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30036         * doc/posix-functions/accept.texi: Doc fix.
30037         * doc/posix-functions/bind.texi: Doc fix.
30038         * doc/posix-functions/close.texi: Doc fix.
30039         * doc/posix-functions/connect.texi: Doc fix.
30040         * doc/posix-functions/getpeername.texi: Doc fix.
30041         * doc/posix-functions/getsockname.texi: Doc fix.
30042         * doc/posix-functions/getsockopt.texi: Doc fix.
30043         * doc/posix-functions/ioctl.texi: Doc fix.
30044         * doc/posix-functions/listen.texi: Doc fix.
30045         * doc/posix-functions/recv.texi: Doc fix.
30046         * doc/posix-functions/recvfrom.texi: Doc fix.
30047         * doc/posix-functions/send.texi: Doc fix.
30048         * doc/posix-functions/sendto.texi: Doc fix.
30049         * doc/posix-functions/setsockopt.texi: Doc fix.
30050         * doc/posix-functions/shutdown.texi: Doc fix.
30051         * doc/posix-functions/socket.texi: Doc fix.
30052
30053 2008-10-20  Bruno Haible  <bruno@clisp.org>
30054
30055         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30056         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30057         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30058         as an alias for SIGABRT.
30059         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30060         (sigaction): Map it to SIGABRT.
30061         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30062
30063 2008-10-20  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/fts.c: Don't include lstat.h.
30066         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30067
30068         Move the lstat() declaration to <sys/stat.h>.
30069         * lib/lstat.h: Remove file.
30070         * lib/sys_stat.in.h: Add special invocation convention.
30071         (lstat): New declaration.
30072         * lib/lstat.c (orig_lstat): New function.
30073         (rpl_lstat): Use orig_lstat instead of lstat.
30074         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30075         AC_C_INLINE. Set REPLACE_LSTAT.
30076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30077         and REPLACE_LSTAT.
30078         * modules/lstat (Files): Remove lib/lstat.h.
30079         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30080         (Include): Specify <sys/stat.h> instead of lstat.h.
30081         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30082         REPLACE_LSTAT.
30083         * NEWS: Mention the change.
30084
30085 2008-10-20  Bruno Haible  <bruno@clisp.org>
30086
30087         * modules/posix_spawn-tests: New file.
30088         * tests/test-posix_spawn3.c: New file.
30089
30090 2008-10-20  Bruno Haible  <bruno@clisp.org>
30091
30092         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30093         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30094         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30095         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30096         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30097
30098 2008-10-20  Bruno Haible  <bruno@clisp.org>
30099
30100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30101         of posix_spawn on AIX 5.3.
30102
30103 2008-10-20  Bruno Haible  <bruno@clisp.org>
30104
30105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30106
30107 2008-10-20  Bruno Haible  <bruno@clisp.org>
30108
30109         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30110         of AC_LANG_PROGRAM.
30111
30112 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30113
30114         * lib/netdb.in.h: Don't define GNU specific constants until they
30115         are supported or needed.  Reported by Bruno Haible
30116         <bruno@clisp.org>.
30117
30118 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30119
30120         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30121
30122 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30123
30124         * lib/getaddrinfo.h: Remove file.
30125         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30126         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30127         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30128         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30129         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30130         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30131         * tests/test-getaddrinfo.c: Likewise.
30132         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30133         * NEWS: Mention change.
30134
30135 2008-10-19  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30138
30139 2008-10-19  Bruno Haible  <bruno@clisp.org>
30140
30141         * lib/wait-process.c: Include simply <sys/wait.h>.
30142         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30143         WIFSTOPPED): Remove fallback definitions.
30144         * modules/wait-process (Depends-on): Add sys_wait.
30145
30146         New module 'sys_wait'.
30147         * modules/sys_wait: New file.
30148         * lib/sys_wait.in.h: New file, partially copied from
30149         lib/wait-process.c.
30150         * m4/sys_wait_h.m4: New file.
30151         * doc/posix-headers/sys_wait.texi: Mention the new module.
30152
30153 2008-10-19  Bruno Haible  <bruno@clisp.org>
30154
30155         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30156
30157 2008-10-19  Bruno Haible  <bruno@clisp.org>
30158
30159         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30160         * lib/wait-process.c (WAIT_T): Remove type.
30161         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30162         (wait_subprocess): Update.
30163
30164 2008-10-19  Bruno Haible  <bruno@clisp.org>
30165
30166         New module 'atoll'.
30167         * modules/atoll: New file.
30168         * lib/stdlib.in.h (atoll): New declaration.
30169         * lib/atoll.c: New file, from glibc with modifications.
30170         * m4/atoll.m4: New file.
30171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30172         HAVE_ATOLL.
30173         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30174         * doc/posix-functions/atoll.texi: Mention the new module.
30175
30176 2008-10-19  Bruno Haible  <bruno@clisp.org>
30177
30178         Add strtoull() declaration to <stdlib.h>.
30179         * lib/stdlib.in.h (strtoull): New declaration.
30180         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30181         Set HAVE_STRTOULL.
30182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30183         HAVE_STRTOULL.
30184         * modules/strtoull (Depends-on): Add stdlib.
30185         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30186         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30187         HAVE_STRTOULL.
30188
30189 2008-10-19  Bruno Haible  <bruno@clisp.org>
30190
30191         Add strtoll() declaration to <stdlib.h>.
30192         * lib/stdlib.in.h (strtoll): New declaration.
30193         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30194         Set HAVE_STRTOLL.
30195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30196         HAVE_STRTOLL.
30197         * modules/strtoll (Depends-on): Add stdlib.
30198         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30199         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30200
30201 2008-10-19  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/bcopy (Depends-on): Add strings.
30204         (Include): Specify <strings.h>.
30205
30206 2008-10-19  Bruno Haible  <bruno@clisp.org>
30207
30208         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30209
30210 2008-10-19  Bruno Haible  <bruno@clisp.org>
30211
30212         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30213         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30214         mingw.
30215
30216 2008-10-19  Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/atanl.c: Don't include isnanl.h.
30219         * lib/cosl.c: Likewise.
30220         * lib/ldexpl.c: Likewise.
30221         * lib/logl.c: Likewise.
30222         * lib/sinl.c: Likewise.
30223         * lib/sqrtl.c: Likewise.
30224         * lib/tanl.c: Likewise.
30225
30226         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30227         * lib/isnanf.h: Remove file.
30228         * lib/isnand.h: Remove file.
30229         * lib/isnanl.h: Remove file.
30230         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30231         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30232         macros.
30233         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30234         HAVE_ISNANF, don't define it as a C macro.
30235         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30236         HAVE_ISNAND, don't define it as a C macro.
30237         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30238         HAVE_ISNANL, don't define it as a C macro.
30239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30240         HAVE_ISNAN[FDL].
30241         * modules/isnanf (Files): Remove lib/isnanf.h.
30242         (Depends-on): Add math.
30243         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30244         (Include): Specify <math.h> instead of isnanf.h.
30245         * modules/isnand (Files): Remove lib/isnand.h.
30246         (Depends-on): Add math.
30247         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30248         (Include): Specify <math.h> instead of isnand.h.
30249         * modules/isnanl (Files): Remove lib/isnanl.h.
30250         (Depends-on): Add math.
30251         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30252         (Include): Specify <math.h> instead of isnanl.h.
30253         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30254         HAVE_ISNAN[FDL].
30255         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30256         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30257         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30258         * NEWS: Mention the change.
30259
30260 2008-10-18  Bruno Haible  <bruno@clisp.org>
30261
30262         Add getusershell(), setusershell(), endusershell() declarations to
30263         <unistd.h>.
30264         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30265         declarations.
30266         * lib/getusershell.c: Include unistd.h.
30267         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30268         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30269         HAVE_GETUSERSHELL.
30270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30271         and HAVE_GETUSERSHELL.
30272         * modules/getusershell (Depends-on): Add unistd, extensions.
30273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30274         (Include): Specify <unistd.h>.
30275         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30276         HAVE_GETUSERSHELL.
30277
30278 2008-10-18  Bruno Haible  <bruno@clisp.org>
30279
30280         Add a getloadavg() declaration to <stdlib.h>.
30281         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30282         getloadavg declaration.
30283         (getloadavg): New declaration.
30284         * lib/getloadavg.c: Include <stdlib.h> first.
30285         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30286         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30287         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30289         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30290         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30292         (Include): Specify <stdlib.h>.
30293         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30294         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30295
30296 2008-10-18  Bruno Haible  <bruno@clisp.org>
30297
30298         * lib/dirchownmod.c: Don't include lchmod.h.
30299
30300         Move the lchmod() declaration to <sys/stat.h>.
30301         * lib/lchmod.h: Remove file.
30302         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30303         (lchmod): New declaration, moved here from lib/lchown.h.
30304         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30305         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30307         and HAVE_LCHMOD.
30308         * modules/lchmod (Files): Remove lib/lchmod.h.
30309         (Depends-on): Add sys_stat, extensions.
30310         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30311         (Include): Specify <sys/stat.h> instead of lchmod.h.
30312         * modules/sys_stat (Depends-on): Add link-warning.
30313         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30314         definition of GL_LINK_WARNING.
30315         * NEWS: Mention the change.
30316
30317 2008-10-18  Bruno Haible  <bruno@clisp.org>
30318
30319         * lib/fchdir.c: Don't include dirfd.h.
30320         * lib/fts.c: Likewise.
30321         * lib/getcwd.c: Likewise.
30322         * lib/glob.c: Likewise.
30323
30324         Move the dirfd() declaration to <dirent.h>.
30325         * lib/dirfd.h: Remove file.
30326         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30327         (dirfd): New declaration.
30328         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30329         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30330         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30331         HAVE_DECL_DIRFD.
30332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30333         HAVE_DECL_DIRFD.
30334         * modules/dirfd (Files): Remove lib/dirfd.h.
30335         (Depends-on): Add dirent, extensions.
30336         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30337         (Include): Specify <dirent.h> instead of dirfd.h.
30338         * modules/dirent (Depends-on): Add link-warning.
30339         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30340         definition of GL_LINK_WARNING.
30341         * NEWS: Mention the change.
30342
30343 2008-10-18  Bruno Haible  <bruno@clisp.org>
30344
30345         Move the euidaccess() declaration to <unistd.h>.
30346         * lib/euidaccess.h: Remove file.
30347         * lib/unistd.in.h (euidaccess): New declaration.
30348         * lib/euidaccess.c: Don't include euidaccess.h.
30349         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30350         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30352         and HAVE_EUIDACCESS.
30353         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30354         (Depends-on): Add unistd.
30355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30356         (Include): Specify <unistd.h> instead of euidaccess.h.
30357         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30358         HAVE_EUIDACCESS.
30359         * NEWS: Mention the change.
30360
30361 2008-10-18  Bruno Haible  <bruno@clisp.org>
30362
30363         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30364
30365         Move the getdomainname() declaration to <unistd.h>.
30366         * lib/getdomainname.h: Remove file.
30367         * lib/unistd.in.h (getdomainname): New declaration.
30368         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30369         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30370         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30371         HAVE_GETDOMAINNAME.
30372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30373         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30374         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30375         (Depends-on): Add unistd, extensions.
30376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30377         (Includes): Specify <unistd.h> instead of getdomainname.h.
30378         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30379         HAVE_GETDOMAINNAME.
30380         * NEWS: Mention the change.
30381
30382 2008-10-18  Bruno Haible  <bruno@clisp.org>
30383
30384         * modules/dirent: New file.
30385         * m4/dirent_h.m4: New file.
30386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30387         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30388         * modules/fchdir (Files): Remove lib/dirent.in.h.
30389         (Depends-on): Add dirent.
30390         (Makefile.am): Move rules to modules/dirent.
30391         * doc/posix-headers/dirent.texi: Mention the new module.
30392
30393 2008-10-18  Bruno Haible  <bruno@clisp.org>
30394
30395         Avoid -Wunused-parameter warnings in public gnulib header files.
30396         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30397         macro.
30398         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30399
30400 2008-10-18  Bruno Haible  <bruno@clisp.org>
30401
30402         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30403         * doc/glibc-functions/error.texi: Mention the module 'error'.
30404         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30405         * doc/glibc-functions/getdomainname.texi: Mention the module
30406         'getdomainname'.
30407         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30408         * doc/glibc-functions/getpagesize.texi: Mention the module
30409         'getpagesize'.
30410         * doc/glibc-functions/getusershell.texi: Mention the module
30411         'getusershell'.
30412         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30413         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30414         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30415         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30416         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30417         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30418         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30419         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30420         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30421         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30422         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30423         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30424         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30425         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30426
30427 2008-10-17  Bruno Haible  <bruno@clisp.org>
30428
30429         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30430         HP-UX and IRIX, use -0.0L.
30431         * tests/test-ceill.c (minus_zero): Likewise.
30432         * tests/test-floorl.c (minus_zero): Likewise.
30433         * tests/test-frexpl.c (minus_zero): Likewise.
30434         * tests/test-isnan.c (minus_zerol): Likewise.
30435         * tests/test-isnanl.h (minus_zero): Likewise.
30436         * tests/test-ldexpl.c (minus_zero): Likewise.
30437         * tests/test-roundl.c (minus_zero): Likewise.
30438         * tests/test-signbit.c (minus_zerol): Likewise.
30439         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30440         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30441         * tests/test-truncl.c (minus_zero): Likewise.
30442         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30443         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30444         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30445         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30446
30447 2008-10-17  Bruno Haible  <bruno@clisp.org>
30448
30449         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30450         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30451         that it gets activated only for gcc >= 3.0.
30452         * lib/dirent.in.h: Likewise.
30453         * lib/errno.in.h: Likewise.
30454         * lib/fcntl.in.h: Likewise.
30455         * lib/float.in.h: Likewise.
30456         * lib/iconv.in.h: Likewise.
30457         * lib/inttypes.in.h: Likewise.
30458         * lib/locale.in.h: Likewise.
30459         * lib/math.in.h: Likewise.
30460         * lib/netdb.in.h: Likewise.
30461         * lib/netinet_in.in.h: Likewise.
30462         * lib/search.in.h: Likewise.
30463         * lib/signal.in.h: Likewise.
30464         * lib/spawn.in.h: Likewise.
30465         * lib/stdarg.in.h: Likewise.
30466         * lib/stdint.in.h: Likewise.
30467         * lib/stdio.in.h: Likewise.
30468         * lib/stdlib.in.h: Likewise.
30469         * lib/string.in.h: Likewise.
30470         * lib/strings.in.h: Likewise.
30471         * lib/sys_file.in.h: Likewise.
30472         * lib/sys_ioctl.in.h: Likewise.
30473         * lib/sys_select.in.h: Likewise.
30474         * lib/sys_socket.in.h: Likewise.
30475         * lib/sys_stat.in.h: Likewise.
30476         * lib/sys_time.in.h: Likewise.
30477         * lib/sysexits.in.h: Likewise.
30478         * lib/time.in.h: Likewise.
30479         * lib/unistd.in.h: Likewise.
30480         * lib/wchar.in.h: Likewise.
30481         * lib/wctype.in.h: Likewise.
30482         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30483
30484 2008-10-17  Jim Meyering  <meyering@redhat.com>
30485
30486         ignore-value: don't depend on inline module
30487         * modules/ignore-value (Depends-on): Remove 'inline'.
30488         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30489         Suggestion from Bruno Haible.
30490
30491 2008-10-17  Bruno Haible  <bruno@clisp.org>
30492
30493         New implementation of condition variables for Win32.
30494         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30495         (gl_linked_waitqueue_t): New type.
30496         (gl_cond_t): Use it.
30497         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30498         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30499         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30500         (glthread_cond_init_func, glthread_cond_wait_func,
30501         glthread_cond_timedwait_func, glthread_cond_signal_func,
30502         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30503         Reimplemented on the basis of gl_linked_waitqueue_t.
30504         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30505         gl_waitqueue_t.
30506         (gl_rwlock_t): Update.
30507         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30508
30509 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30510
30511         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30512         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30513
30514 2008-10-17  Jim Meyering  <meyering@redhat.com>
30515
30516         ignore-value: new module
30517         * modules/ignore-value: New file.
30518         * lib/ignore-value.h: New file.
30519         * MODULES.html.sh (Compiler warning management): New section,
30520         just for this module.  More to come.
30521
30522 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30523
30524         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30525         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30526         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30527
30528 2008-10-16  Jim Meyering  <meyering@redhat.com>
30529
30530         openat-die.c: avoid 'no previous prototype' warning
30531         * lib/openat-die.c: Include "openat.h".
30532         Reported by Reuben Thomas <rrt@sc3d.org>.
30533
30534 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30535
30536         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30537         * lib/netdb.in.h: Fix typo.
30538         Reported by Bruno Haible  <bruno@clisp.org>
30539
30540         * lib/netdb.in.h: Include sys/socket.h for platforms without
30541         netdb.h, to get structures like hostent on MinGW.
30542         * modules/netdb (Depends-on): Add sys_socket.
30543
30544 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30545
30546         * modules/netdb, modules/netdb-tests: New file.
30547         * m4/netdb_h.m4: New file.
30548         * lib/netdb.in.h: Add, currently just an empty file pending
30549         definitions.
30550         * tests/test-netdb.c: New file.
30551         * doc/posix-headers/netdb.texi: Mention that we replace it if
30552         needed.
30553         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30554         netdb.
30555
30556 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30557
30558         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30559         with code.
30560
30561 2008-10-13  Bruno Haible  <bruno@clisp.org>
30562
30563         * lib/glthread/cond.c (glthread_cond_wait_func,
30564         glthread_cond_timedwait_func): Add a comment.
30565
30566 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30567
30568         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30569         * tests/test-select.c: Likewise,
30570
30571 2008-10-13  Bruno Haible  <bruno@clisp.org>
30572
30573         * lib/glthread/cond.c (glthread_cond_wait_func,
30574         glthread_cond_timedwait_func): Fix variable name.
30575         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30576
30577 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30578
30579         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30581         struct sockaddr.sa_len.
30582         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30583
30584 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30585
30586         * build-aux/pmccabe2html: Add css and css_url parameters.
30587
30588 2008-10-12  Bruno Haible  <bruno@clisp.org>
30589
30590         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30591         calling aclx_get.
30592         Reported by Rainer Tammer <tammer@tammer.net>.
30593
30594 2008-10-12  Bruno Haible  <bruno@clisp.org>
30595
30596         Use msvcrt aware primitives for creation/termination of Win32 threads.
30597         * lib/glthread/thread.c: Include <process.h>.
30598         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30599         (wrapper_func): Update signature.
30600         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30601
30602 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30603             Bruno Haible  <bruno@clisp.org>
30604
30605         Provide a Win32 implementation of the 'cond' module.
30606         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30607         * lib/glthread/cond.c (glthread_cond_init_func,
30608         glthread_cond_wait_func, glthread_cond_timedwait_func,
30609         glthread_cond_signal_func, glthread_cond_broadcast_func,
30610         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30611         * modules/cond (Dependencies): Add gettimeofday.
30612
30613 2008-10-11  Bruno Haible  <bruno@clisp.org>
30614
30615         Make sleep work on older versions of mingw.
30616         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30617         only whether it exists.
30618         * doc/posix-functions/sleep.texi: Mention the problem with older
30619         versions of mingw.
30620
30621 2008-10-11  Bruno Haible  <bruno@clisp.org>
30622
30623         New module 'shutdown'.
30624         * modules/shutdown: New file.
30625         * lib/sys_socket.in.h (shutdown): New declaration.
30626         * lib/winsock.c (shutdown): New function.
30627         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30628         GNULIB_SHUTDOWN.
30629         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30630         * doc/posix-functions/shutdown.texi: Document the new module.
30631
30632 2008-10-11  Jim Meyering  <meyering@redhat.com>
30633
30634         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30635
30636 2008-10-11  Bruno Haible  <bruno@clisp.org>
30637
30638         New module 'fclose'.
30639         * modules/fclose: New file.
30640         * lib/stdio.in.h (fclose): New declaration.
30641         * lib/fclose.c: New file.
30642         * m4/fclose.m4: New file.
30643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30644         REPLACE_FCLOSE.
30645         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30646         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30647         REPLACE_FCLOSE.
30648         * modules/close (Depends-on): fclose.
30649         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30650
30651 2008-10-11  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30654         set errno and don't call _close.
30655
30656 2008-10-10  Bruno Haible  <bruno@clisp.org>
30657
30658         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30659         ACL, not afterwards. Fixes test failure on Cygwin.
30660
30661 2008-10-09  Ben Pfaff  <blp@gnu.org>
30662
30663         * build-aux/announce-gen: Fix gnulib version related part of usage
30664         message.  Die with a useful error message if no tarballs are
30665         found.
30666
30667 2008-10-10  Jim Meyering  <meyering@redhat.com>
30668
30669         bootstrap: use git's --depth=N option only if it's supported
30670         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30671         recognize the --depth option.  Reported by Pádraig Brady.
30672
30673 2008-10-09  Bruno Haible  <bruno@clisp.org>
30674
30675         New module 'ioctl'.
30676         * modules/ioctl: New file.
30677         * lib/sys_socket.in.h (ioctl): Remove declaration.
30678         * lib/winsock.c: Include <sys/ioctl.h>.
30679         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30680         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30681         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30682         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30683         * doc/posix-functions/ioctl.texi: Mention the new module.
30684
30685 2008-10-09  Bruno Haible  <bruno@clisp.org>
30686
30687         New module 'sys_ioctl'.
30688         * lib/sys_ioctl.in.h: New file.
30689         * m4/sys_ioctl_h.m4: New file.
30690         * modules/sys_ioctl: New file.
30691         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30692
30693 2008-10-09  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30696         * lib/winsock.c: Include <stdarg.h>.
30697         (rpl_ioctl): Change to second argument 'int' and then varargs.
30698
30699 2008-10-09  Bruno Haible  <bruno@clisp.org>
30700
30701         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30702         when the sys_socket module is present and the system has <winsock2.h>.
30703
30704 2008-10-09  Bruno Haible  <bruno@clisp.org>
30705
30706         * doc/posix-functions/close.texi: Mention module 'close' instead of
30707         module 'sys_socket'.
30708
30709 2008-10-09  Bruno Haible  <bruno@clisp.org>
30710
30711         * doc/glibc-headers/sys_ioctl.texi: New file.
30712         * doc/gnulib.texi: Include it.
30713
30714 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30715             Bruno Haible  <bruno@clisp.org>
30716
30717         Combine the two replacements of 'close'.
30718         * lib/sys_socket.in.h (close): Define to a reminder to include
30719         <unistd.h>.
30720         (_gl_close_fd_maybe_socket): New declaration.
30721         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30722         * lib/winsock.c (close): Remove undefinition.
30723         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30724         needed for the gnulib module 'close'.
30725         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30726         define to an error symbol or to a warning, if suitable.
30727         * lib/close.c: Include <sys/socket.h>.
30728         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30729         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30730         UNISTD_H_HAVE_WINSOCK2_H.
30731         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30733         UNISTD_H_HAVE_WINSOCK2_H.
30734         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30735         (configure.ac): Set a module indicator.
30736         (Makefile.am): Substitute GNULIB_CLOSE.
30737         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30738         * modules/poll-tests (Depends-on): Add close.
30739         * modules/select-tests (Depends-on): Likewise.
30740
30741 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30742             Bruno Haible  <bruno@clisp.org>
30743
30744         New module 'close'.
30745         * modules/close: New file.
30746         * lib/unistd.in.h (close): Move declaration out of the
30747         FCHDIR_REPLACEMENT scope.
30748         (_gl_unregister_fd): New declaration.
30749         * lib/close.c: New file.
30750         * lib/fchdir.c (rpl_close): Remove function.
30751         * m4/close.m4: New file.
30752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30753         close.
30754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30755         REPLACE_CLOSE.
30756         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30757         REPLACE_CLOSE.
30758         * modules/fchdir (Depends-on): Add close.
30759
30760 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30761             Bruno Haible  <bruno@clisp.org>
30762
30763         * lib/fcntl.in.h (open): Simplify conditionals.
30764         (_gl_register_fd): New declaration.
30765         * lib/fchdir.c (rpl_open): Remove function.
30766         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30767         also.
30768         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30770         open.
30771
30772 2008-10-09  Jim Meyering  <meyering@redhat.com>
30773
30774         GNUmakefile: use the more name-space-friendly "_version"
30775         * top/GNUmakefile (_dummy): Update.
30776         (_version): Rename from "version".
30777
30778 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30779             Bruno Haible  <bruno@clisp.org>
30780
30781         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30782         rpl_close.
30783         (_gl_register_fd): New function, extracted from rpl_open.
30784         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30785         (rpl_open, rpl_opendir): Use _gl_register_fd.
30786
30787 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30788
30789         Fix organization of 'open' replacement.
30790         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30791         (gl_FUNC_OPEN): Use it.
30792         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30793
30794 2008-10-08  Bruno Haible  <bruno@clisp.org>
30795
30796         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30797
30798 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30799
30800         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30801         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30802         listen).
30803
30804 2008-10-08  Eric Blake  <ebb9@byu.net>
30805
30806         GNUmakefile: add 'make version' target
30807         * top/GNUmakefile (_curr-ver): Split version update rules...
30808         (version): ...into a target.
30809
30810 2008-10-07  Bruno Haible  <bruno@clisp.org>
30811
30812         Use a more portable replacement expression for -0.0L.
30813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30814         instead of -0.0L. Fix m4 quotation.
30815
30816         * tests/test-signbit.c: Include <float.h>.
30817         (minus_zero): New variable.
30818         (test_signbitl): Use minus_zero instead of -zero.
30819         * modules/signbit-tests (Depends-on): Add float.
30820
30821         * tests/test-ceill.c: Include <float.h>.
30822         (zero): Remove variable.
30823         (minus_zero): New variable.
30824         (main): Use minus_zero instead of -zero.
30825         * modules/ceill-tests (Depends-on): Add float.
30826
30827         * tests/test-floorl.c: Include <float.h>.
30828         (zero): Remove variable.
30829         (minus_zero): New variable.
30830         (main): Use minus_zero instead of -zero.
30831         * modules/floorl-tests (Depends-on): Add float.
30832
30833         * tests/test-roundl.c: Include <float.h>.
30834         (zero): Remove variable.
30835         (minus_zero): New variable.
30836         (main): Use minus_zero instead of -zero.
30837         * modules/roundl-tests (Depends-on): Add float.
30838
30839         * tests/test-truncl.c: Include <float.h>.
30840         (zero): Remove variable.
30841         (minus_zero): New variable.
30842         (main): Use minus_zero instead of -zero.
30843         * modules/truncl-tests (Depends-on): Add float.
30844
30845         * tests/test-frexpl.c (zero): Remove variable.
30846         (minus_zero): New variable.
30847         (main): Use minus_zero instead of -zero.
30848         * modules/frexpl-tests (Depends-on): Add float.
30849
30850         * tests/test-isnan.c (zerol): Remove variable.
30851         (minus_zerol): New variable.
30852         (test_long_double): Use minus_zerol instead of -zerol.
30853         * modules/isnan-tests (Depends-on): Add float.
30854
30855         * tests/test-isnanl.h (zero): Remove variable.
30856         (minus_zero): New variable.
30857         (main): Use minus_zero instead of -zero.
30858         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30859         * modules/isnanl-tests (Depends-on): Add float.
30860
30861         * tests/test-ldexpl.c (zero): Remove variable.
30862         (minus_zero): New variable.
30863         (main): Use minus_zero instead of -zero.
30864         * modules/ldexpl-tests (Depends-on): Add float.
30865
30866         * tests/test-snprintf-posix.h (zerol): Remove variable.
30867         (minus_zerol): New variable.
30868         (test_function): Use minus_zerol instead of -zerol.
30869         * modules/snprintf-posix-tests (Depends-on): Add float.
30870         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30871
30872         * tests/test-sprintf-posix.h (zerol): Remove variable.
30873         (minus_zerol): New variable.
30874         (test_function): Use minus_zerol instead of -zerol.
30875         * modules/sprintf-posix-tests (Depends-on): Add float.
30876         * modules/vsprintf-posix-tests (Depends-on): Add float.
30877
30878         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30879         (minus_zerol): New variable.
30880         (test_function): Use minus_zerol instead of -zerol.
30881         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30882
30883         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30884         (minus_zerol): New variable.
30885         (test_function): Use minus_zerol instead of -zerol.
30886         * modules/vasprintf-posix-tests (Depends-on): Add float.
30887
30888 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30889
30890         * MODULES.html.sh (Support for building documentation): Mention
30891         pmccabe2html.  Sort entries.
30892
30893         Add pmccabe2html module, from gnupdf.
30894         * build-aux/pmccabe.css: New file.
30895         * build-aux/pmccabe2html: New file.
30896         * m4/pmccabe2html.m4: New file.
30897         * modules/pmccabe2html: New file.
30898
30899 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30900
30901         flock: new module
30902         * MODULES.html.sh: Add to list of modules.
30903         * lib/flock.c: flock implementation for Windows and Unix systems
30904         which have fcntl.
30905         * doc/glibc-functions/flock.texi: Update documentation.
30906         * lib/sys_file.in.h: <sys/file.h> header file.
30907         * m4/flock.m4: M4 macros.
30908         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30909         * modules/flock: flock module.
30910         * modules/flock-tests: flock tests module.
30911         * modules/sys_file: sys/file.h module.
30912         * tests/test-flock.c: test suite for flock.
30913
30914 2008-10-06  Jim Meyering  <meyering@redhat.com>
30915
30916         bootstrap: check for LT_INIT more portably still ;-)
30917         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30918         Spotted by Bruno Haible.
30919
30920 2008-10-06  Eric Blake  <ebb9@byu.net>
30921
30922         test-signbit: avoid tripping Irix cc bug on -0.0L
30923         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30924         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30925         entire testsuite consistent and avoids an Irix 6.2 bug.
30926
30927 2008-10-05  Bruno Haible  <bruno@clisp.org>
30928             Jim Meyering  <jim@meyering.net>
30929
30930         Add an option for ignoring EPIPE during close_stdout.
30931         * lib/closeout.h: Include <stdbool.h>.
30932         (close_stdout_set_ignore_EPIPE): New declaration.
30933         * lib/closeout.c: Include <stdbool.h>.
30934         (ignore_EPIPE): New variable.
30935         (close_stdout_set_ignore_EPIPE): New function.
30936         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30937         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30938         failure.
30939         * modules/closeout (Depends-on): Add stdbool.
30940
30941 2008-10-05  Bruno Haible  <bruno@clisp.org>
30942
30943         * modules/accept: New file.
30944         * modules/bind: New file.
30945         * modules/connect: New file.
30946         * modules/getpeername: New file.
30947         * modules/getsockname: New file.
30948         * modules/getsockopt: New file.
30949         * modules/listen: New file.
30950         * modules/recv: New file.
30951         * modules/recvfrom: New file.
30952         * modules/send: New file.
30953         * modules/sendto: New file.
30954         * modules/setsockopt: New file.
30955         * modules/socket: New file.
30956         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30957         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30958         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30959         the particular module is requested. Add a link warning when the
30960         particular module is not requested.
30961         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30962         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30963         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30964         the particular module is requested.
30965         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30966         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30967         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30968         * modules/sys_socket (Depends-on): Add link-warning.
30969         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30970         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30971         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30972         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30973         GL_LINK_WARNING.
30974         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30975         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30976         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30977         * doc/posix-functions/getpeername.texi: Mention the new module
30978         'getpeername'.
30979         * doc/posix-functions/getsockname.texi: Mention the new module
30980         'getsockname'.
30981         * doc/posix-functions/getsockopt.texi: Mention the new module
30982         'getsockopt'.
30983         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30984         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30985         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30986         * doc/posix-functions/send.texi: Mention the new module 'send'.
30987         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30988         * doc/posix-functions/setsockopt.texi: Mention the new module
30989         'setsockopt'.
30990         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30991         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30992         listen, connect, accept.
30993         * modules/select-tests (Depends-on): Likewise.
30994
30995 2008-10-05  Bruno Haible  <bruno@clisp.org>
30996
30997         * lib/winsock.c (strerror): Remove unused #undef.
30998         (rpl_close): Remove unused local variable.
30999
31000         * modules/sys_socket (Depends-on); Add errno.
31001
31002 2008-10-05  Bruno Haible  <bruno@clisp.org>
31003
31004         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31005         (select): Add a link warning when the 'select' module is not used.
31006         * modules/sys_select (Depends-on): Add link-warning.
31007         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31008         Suggested by Paolo Bonzini.
31009
31010 2008-10-05  Jim Meyering  <meyering@redhat.com>
31011
31012         bootstrap: check for LT_INIT more portably
31013         * build-aux/bootstrap: Avoid using grep -E, since it's not
31014         portable enough.  Suggestion from Bruno Haible.
31015
31016 2008-10-05  Bruno Haible  <bruno@clisp.org>
31017
31018         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31019         as being fixed by gnulib.
31020
31021 2008-10-05  Bruno Haible  <bruno@clisp.org>
31022
31023         * modules/select-tests: New file, mostly copied from
31024         modules/sys_select-tests.
31025         * tests/test-select.c: New file, mostly copied from
31026         tests/test-sys_select.c.
31027         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31028         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31029         (Makefile.am): Remove test_sys_select_LDADD.
31030
31031         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31032         to an undefined symbol, for an error message.
31033         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31034         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31035         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31036         winsock-select.c here.
31037         * modules/sys_select (Files): Remove lib/winsock-select.c.
31038         (Depends-on): Remove alloca.
31039         (Makefile.am): Substitute GNULIB_SELECT.
31040         * modules/select: New file.
31041         * doc/posix-functions/select.texi: Update.
31042
31043 2008-10-05  Bruno Haible  <bruno@clisp.org>
31044
31045         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31046         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31047         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31048         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31049         getdtablesize.
31050         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31051         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31052
31053 2008-10-05  Bruno Haible  <bruno@clisp.org>
31054
31055         * modules/getdtablesize-tests: New file.
31056         * tests/test-getdtablesize.c: New file.
31057
31058         New module 'getdtablesize'.
31059         * lib/unistd.in.h (getdtablesize): New declaration.
31060         * lib/getdtablesize.c: New file.
31061         * m4/getdtablesize.m4: New file.
31062         * modules/getdtablesize: New file.
31063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31064         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31065         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31066         HAVE_GETDTABLESIZE.
31067         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31068
31069 2008-10-05  Bruno Haible  <bruno@clisp.org>
31070
31071         * modules/sched (Makefile.am): Fix typo.
31072         Reported by Simon Josefsson.
31073
31074 2008-10-05  Jim Meyering  <meyering@redhat.com>
31075
31076         bootstrap: check for LT_INIT, too
31077         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31078         are deprecated.  Suggestion from Ralf Wildenhues.
31079
31080 2008-10-05  Bruno Haible  <bruno@clisp.org>
31081
31082         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31083         overriding them by ours.
31084         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31085
31086 2008-10-05  Jim Meyering  <meyering@redhat.com>
31087
31088         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31089         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31090         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31091
31092 2008-10-04  Bruno Haible  <bruno@clisp.org>
31093
31094         * modules/dup2 (License): Change to LGPLv2+.
31095         * modules/sleep (License): Likewise.
31096         * modules/perror (License): Likewise.
31097         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31098         Blake.
31099         * modules/signal (License): Likewise.
31100         * modules/sigprocmask (License): Likewise.
31101         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31102         Meyering.
31103
31104 2008-10-04  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31107         Reported by Rainer Tammer <tammer@tammer.net>.
31108
31109 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31110             Bruno Haible  <bruno@clisp.org>
31111
31112         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31113         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31114         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31115
31116 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31117
31118         filevercmp: new module
31119         * lib/filevercmp.h: New function filevercmp comparing version strings.
31120         * lib/filevercmp.c: Implementation of filevercmp function.
31121         * modules/filevercmp: Module metadata.
31122         * tests/test-filevercmp.c: Unit test for new module.
31123         * modules/filevercmp-tests: Unit test metadata.
31124         * MODULES.html.sh: Add filevercmp module.
31125
31126 2008-10-03  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/c-ctype.h: Add comment.
31129         Reported by Jim Meyering.
31130
31131 2008-10-02  Bruno Haible  <bruno@clisp.org>
31132
31133         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31134
31135 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31136
31137         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31138         name of bootstrap.conf accordingly.
31139
31140 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31141
31142         * build-aux/bootstrap: Install git-merge-changelog configuration
31143         items into .gitconfig if needed.
31144
31145 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31146
31147         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31148         git repository, and initialize/update it accordingly.
31149
31150 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31151
31152         * modules/fsync-tests: New file.
31153         * tests/test-fsync.c: New file.
31154
31155         New module 'fsync'.
31156         * lib/fsync.c: New file.
31157         * m4/fsync.m4: New file.
31158         * modules/fsync: New file.
31159         * lib/unistd.in.h (fsync): New declaration.
31160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31161         GNULIB_FSYNC and HAVE_FSYNC.
31162         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31163         * MODULES.html.sh (posix_functions): Add fsync.
31164         * doc/posix-functions/fsync.texi: Mention the new module.
31165
31166 2008-10-02  Jim Meyering  <meyering@redhat.com>
31167
31168         fts.c: sync with similar code from coreutils' remove.c
31169         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31170         Guard also with "#if defined __linux__", since for now at least,
31171         this code is Linux-kernel-specific.
31172
31173 2008-10-02  Jim Meyering  <meyering@redhat.com>
31174
31175         fts: bug fixes
31176         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31177         Include <sys/vfs.h>, not <sys/statfs.h>.
31178
31179         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31180         Include <sys/vfs.h>, not <sys/statfs.h>.
31181
31182 2008-10-01  Bruno Haible  <bruno@clisp.org>
31183
31184         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31186         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31187         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31188         * doc/posix-functions/posix_spawnp.texi: Likewise.
31189         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31190         whether posix_spawn actually works.
31191         * m4/pipe.m4 (gl_PIPE): Likewise.
31192         * modules/execute (Files): Add m4/posix_spawn.m4.
31193         * modules/pipe (Files): Add m4/posix_spawn.m4.
31194         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31195
31196 2008-10-01  Jim Meyering  <meyering@redhat.com>
31197
31198         remove trailing spaces
31199         * NEWS: Likewise.
31200         * lib/poll.c (poll): Likewise.
31201         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31202         * lib/winsock.c (rpl_close): Likewise.
31203         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31204         * modules/yield: Likewise.
31205         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31206         * tests/test-sys_select.c (connect_to_socket): Likewise.
31207
31208         fts.c: adjust a new interface to be more generally useful
31209         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31210         (fts_build): Adjust caller.
31211
31212 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31213
31214         * modules/cond-tests: New file.
31215         * tests/test-cond.c: New file.
31216
31217 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31218             Bruno Haible  <bruno@clisp.org>
31219
31220         * modules/cond (Dependencies): Add errno, time.
31221         * lib/glthread/cond.h: Include <time.h>.
31222         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31223         across platforms.
31224
31225 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31226             Bruno Haible  <bruno@clisp.org>
31227
31228         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31229
31230 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31231             Bruno Haible  <bruno@clisp.org>
31232
31233         * modules/tls-tests (Depends-on): Add thread, yield.
31234         (configure.ac): Remove all checks.
31235         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31236         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31237         gl_thread_self): Remove definitions. Include glthread/thread.h and
31238         glthread/yield.h instead.
31239         (test_tls): Pass an additional NULL argument to gl_thread_join.
31240
31241 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31242             Bruno Haible  <bruno@clisp.org>
31243
31244         * modules/lock-tests (Depends-on): Add thread, yield.
31245         (configure.ac): Remove all checks.
31246         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31247         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31248         gl_thread_self): Remove definitions. Include glthread/thread.h and
31249         glthread/yield.h instead.
31250         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31251         additional NULL argument to gl_thread_join.
31252
31253 2008-09-30  Bruno Haible  <bruno@clisp.org>
31254
31255         Fix the Win32 implementation of the 'thread' module.
31256         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31257         pointer type.
31258         (gl_thread_self): Invoke gl_thread_self_func.
31259         (gl_thread_self_func): New declaration.
31260         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31261         (do_init_self_key, init_self_key): New functions.
31262         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31263         Remove some fields.
31264         (running_threads, running_lock): Remove variables.
31265         (get_current_thread_handle): New function.
31266         (gl_thread_self_func, wrapper_func, glthread_create_func,
31267         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31268         simplified.
31269
31270 2008-09-30  Bruno Haible  <bruno@clisp.org>
31271
31272         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31273         files.
31274
31275 2008-09-30  Jim Meyering  <meyering@redhat.com>
31276
31277         fts.m4: correct the test for statfs.f_type
31278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31279         when checking for statfs.f_type.
31280
31281 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31282
31283         tests: avoid some compiler warnings
31284         * tests/test-memchr.c (main): Pass NULL indirectly.
31285         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31286
31287 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
31288
31289         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31290         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31291         exactly specified dayshifts.
31292         (dayshift): New rule.
31293         (rel): Add dayshift.
31294         (relative_time_table) [tomorrow, yesterday, today, now]:
31295         Use tDAY_SHIFT in place of tDAY_UNIT.
31296         * tests/test-getdate.c: Add tests for now-disallowed countable
31297         dayshifts, e.g., "4 yesterday ago".
31298
31299 2008-09-29  Bruno Haible  <bruno@clisp.org>
31300
31301         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31302         * tests/test-posix_spawn1.in.sh: Renamed from
31303         tests/test-posix_spawn.in.sh.
31304         * tests/test-posix_spawn2.c: New file.
31305         * tests/test-posix_spawn2.in.sh: New file.
31306         * modules/posix_spawnp-tests (Files): Update.
31307         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31308
31309 2008-09-29  Bruno Haible  <bruno@clisp.org>
31310
31311         Propagate effects of putenv/setenv/unsetenv to child processes.
31312         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31313         * lib/pipe.c (create_pipe): Likewise.
31314
31315 2008-09-29  Bruno Haible  <bruno@clisp.org>
31316
31317         Enable use of shell scripts as executables in mingw.
31318         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31319         run the program as a shell script.
31320         * lib/pipe.c (create_pipe): Likewise.
31321         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31322         resulting array.
31323
31324 2008-09-29  Eric Blake  <ebb9@byu.net>
31325
31326         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31327
31328 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31329
31330         * doc/posix-functions/accept.texi: Update mingw problems.
31331         * doc/posix-functions/bind.texi: Update mingw problems.
31332         * doc/posix-functions/close.texi: Update mingw problems.
31333         * doc/posix-functions/connect.texi: Update mingw problems.
31334         * doc/posix-functions/getpeername.texi: Update mingw problems.
31335         * doc/posix-functions/getsockname.texi: Update mingw problems.
31336         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31337         * doc/posix-functions/ioctl.texi: Update mingw problems.
31338         * doc/posix-functions/listen.texi: Update mingw problems.
31339         * doc/posix-functions/recv.texi: Update mingw problems.
31340         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31341         * doc/posix-functions/select.texi: Update mingw problems.
31342         * doc/posix-functions/send.texi: Update mingw problems.
31343         * doc/posix-functions/sendto.texi: Update mingw problems.
31344         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31345         * doc/posix-functions/socket.texi: Update mingw problems.
31346
31347 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31348             Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/sys_select.in.h: Include sys/time.h.
31351         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31352         * modules/sys_select: Depend on sys_time.
31353         * tests/test-sys_select.c: Test that sys/select.h defines struct
31354         timeval fully.
31355
31356 2008-09-29  Bruno Haible  <bruno@clisp.org>
31357
31358         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31359         * lib/sys_select.in.h: Likewise.
31360
31361 2008-09-29  Bruno Haible  <bruno@clisp.org>
31362
31363         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31364
31365 2008-09-29  Bruno Haible  <bruno@clisp.org>
31366
31367         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31368         Set LIBSOCKET instead of augmenting LIBS.
31369         * modules/sockets (Link): New section.
31370         * modules/sockets-tests (test_sockets_LDADD): New variable.
31371         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31372         * modules/poll-tests (test_poll_LDADD): New variable.
31373         * NEWS: Document the change.
31374
31375 2008-09-29  Bruno Haible  <bruno@clisp.org>
31376
31377         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31378         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31379         ARPA_INET_H directly.
31380         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31381
31382 2008-09-28  Bruno Haible  <bruno@clisp.org>
31383
31384         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31385         from gl_HEADER_SYS_SOCKET.
31386         (gl_HEADER_SYS_SOCKET): Invoke it.
31387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31388
31389 2008-09-28  Bruno Haible  <bruno@clisp.org>
31390
31391         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31392         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31393         Needed on OSF/1 4.0.
31394
31395 2008-09-28  Bruno Haible  <bruno@clisp.org>
31396
31397         Override open more carefully.
31398         * lib/open.c (orig_open): New function.
31399         (rpl_open): Use orig_open instead of open.
31400         * lib/fcntl.in.h: Add special invocation convention.
31401         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31402         (gl_FUNC_OPEN): Invoke it.
31403
31404         Override freopen more carefully.
31405         * lib/freopen.c (orig_freopen): New function.
31406         (rpl_freopen): Use orig_freopen instead of freopen.
31407         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31408         (gl_FUNC_FREOPEN): Invoke it.
31409
31410         Override fopen more carefully.
31411         * lib/fopen.c (orig_fopen): New function.
31412         (rpl_fopen): Use orig_fopen instead of fopen.
31413         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31414         (gl_FUNC_FOPEN): Invoke it.
31415         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31416
31417 2008-09-28  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31420         SIGPIPE.
31421
31422 2008-09-28  Bruno Haible  <bruno@clisp.org>
31423
31424         * tests/test-sigaction.c (handler, main): Disable the check whether
31425         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31426         glibc systems with LinuxThreads.
31427
31428 2008-09-28  Bruno Haible  <bruno@clisp.org>
31429
31430         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31431
31432         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31433         with AIX xlc.
31434         * lib/fcntl.in.h (open): Likewise.
31435         Reported by Rainer Tammer <tammer@tammer.net>.
31436
31437 2008-09-28  Bruno Haible  <bruno@clisp.org>
31438
31439         * modules/posix_spawnp-tests: New file.
31440         * tests/test-posix_spawn.c: New file.
31441         * tests/test-posix_spawn.in.sh: New file.
31442
31443         New module 'posix_spawnp'.
31444         * modules/posix_spawnp: New file.
31445         * lib/spawnp.c: New file, from GNU libc with modifications.
31446         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31447
31448         New module 'posix_spawn'.
31449         * modules/posix_spawn: New file.
31450         * lib/spawn.c: New file, from GNU libc with modifications.
31451         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31452
31453         New module 'posix_spawnattr_destroy'.
31454         * modules/posix_spawnattr_destroy: New file.
31455         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31456         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31457         module.
31458
31459         New module 'posix_spawnattr_setsigmask'.
31460         * modules/posix_spawnattr_setsigmask: New file.
31461         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31462         modifications.
31463         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31464         new module.
31465
31466         New module 'posix_spawnattr_getsigmask'.
31467         * modules/posix_spawnattr_getsigmask: New file.
31468         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31469         modifications.
31470         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31471         new module.
31472
31473         New module 'posix_spawnattr_setsigdefault'.
31474         * modules/posix_spawnattr_setsigdefault: New file.
31475         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31476         modifications.
31477         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31478         new module.
31479
31480         New module 'posix_spawnattr_getsigdefault'.
31481         * modules/posix_spawnattr_getsigdefault: New file.
31482         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31483         modifications.
31484         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31485         new module.
31486
31487         New module 'posix_spawnattr_setschedpolicy'.
31488         * modules/posix_spawnattr_setschedpolicy: New file.
31489         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31490         modifications.
31491         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31492         new module.
31493
31494         New module 'posix_spawnattr_getschedpolicy'.
31495         * modules/posix_spawnattr_getschedpolicy: New file.
31496         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31497         modifications.
31498         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31499         new module.
31500
31501         New module 'posix_spawnattr_setschedparam'.
31502         * modules/posix_spawnattr_setschedparam: New file.
31503         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31504         modifications.
31505         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31506         new module.
31507
31508         New module 'posix_spawnattr_getschedparam'.
31509         * modules/posix_spawnattr_getschedparam: New file.
31510         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31511         modifications.
31512         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31513         new module.
31514
31515         New module 'posix_spawnattr_setpgroup'.
31516         * modules/posix_spawnattr_setpgroup: New file.
31517         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31518         modifications.
31519         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31520         module.
31521
31522         New module 'posix_spawnattr_getpgroup'.
31523         * modules/posix_spawnattr_getpgroup: New file.
31524         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31525         modifications.
31526         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31527         module.
31528
31529         New module 'posix_spawnattr_setflags'.
31530         * modules/posix_spawnattr_setflags: New file.
31531         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31532         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31533         module.
31534
31535         New module 'posix_spawnattr_getflags'.
31536         * modules/posix_spawnattr_getflags: New file.
31537         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31538         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31539         module.
31540
31541         New module 'posix_spawnattr_init'.
31542         * modules/posix_spawnattr_init: New file.
31543         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31544         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31545         module.
31546
31547         New module 'posix_spawn_file_actions_destroy'.
31548         * modules/posix_spawn_file_actions_destroy: New file.
31549         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31550         modifications.
31551         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31552         the new module.
31553
31554         New module 'posix_spawn_file_actions_addopen'.
31555         * modules/posix_spawn_file_actions_addopen: New file.
31556         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31557         modifications.
31558         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31559         the new module.
31560
31561         New module 'posix_spawn_file_actions_adddup2'.
31562         * modules/posix_spawn_file_actions_adddup2: New file.
31563         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31564         modifications.
31565         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31566         the new module.
31567
31568         New module 'posix_spawn_file_actions_addclose'.
31569         * modules/posix_spawn_file_actions_addclose: New file.
31570         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31571         modifications.
31572         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31573         the new module.
31574
31575         New module 'posix_spawn_file_actions_init'.
31576         * modules/posix_spawn_file_actions_init: New file.
31577         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31578         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31579         new module.
31580
31581         New module 'posix_spawn-internal'.
31582         * modules/posix_spawn-internal: New file.
31583         * lib/spawn_int.h: New file, from GNU libc with modifications.
31584         * lib/spawni.c: New file, from GNU libc with modifications.
31585         * m4/posix_spawn.m4: New file.
31586
31587         New module 'spawn'.
31588         * modules/spawn: New file.
31589         * lib/spawn.in.h: New file, from GNU libc with modifications.
31590         * m4/spawn_h.m4: New file.
31591         * doc/posix-headers/spawn.texi: Mention the new module.
31592
31593 2008-09-28  Bruno Haible  <bruno@clisp.org>
31594
31595         * modules/sched-tests: New file.
31596         * tests/test-sched.c: New file.
31597
31598         New module 'sched'.
31599         * modules/sched: New file.
31600         * lib/sched.in.h: New file.
31601         * m4/sched_h.m4: New file.
31602         * doc/posix-headers/sched.texi: Mention the new module.
31603
31604 2008-09-27  Eric Blake  <ebb9@byu.net>
31605
31606         Fix previous patch, and tweak references to $0.
31607         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31608         (func_version, func_gnulib_dir): Don't call this program
31609         gnulib-tool.
31610         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31611         with using $0 in function.
31612         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31613         (func_fatal_error): Reuse the name the user invoked us with.
31614
31615 2008-09-27  Bruno Haible  <bruno@clisp.org>
31616
31617         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31618         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31619         (gl_ICONV_H): Not here.
31620         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31621         instead of assigning ICONV_H directly.
31622
31623         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31625         WCHAR_H directly.
31626
31627 2008-09-27  Bruno Haible  <bruno@clisp.org>
31628
31629         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31630         * modules/arpa_inet (Depends-on): Add link-warning.
31631         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31632         * modules/unistd (Makefile.am): Likewise.
31633
31634 2008-09-26  Bruno Haible  <bruno@clisp.org>
31635
31636         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31637         variables.
31638         (func_version): Essentially copied from gnulib-tool.
31639         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31640         func_readlink): Copied from gnulib-tool.
31641
31642 2008-09-26  Bruno Haible  <bruno@clisp.org>
31643
31644         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31645         invoking git-version-gen.
31646
31647 2008-09-26  Bruno Haible  <bruno@clisp.org>
31648
31649         * posix-modules: Update to directory names changed on 2008-01-19.
31650         Remove commas in output before splitting into words. No more need to
31651         avoid 'ftruncate' since 2007-02-19.
31652
31653 2008-09-26  Bruno Haible  <bruno@clisp.org>
31654
31655         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31656
31657 2008-09-26  Bruno Haible  <bruno@clisp.org>
31658
31659         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31660         * modules/fwriteerror (Depends-on): Add errno.
31661
31662 2008-09-26  Bruno Haible  <bruno@clisp.org>
31663
31664         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31665         * tests/test-vc-list-files-cvs.sh: Likewise.
31666
31667 2008-09-26  Bruno Haible  <bruno@clisp.org>
31668
31669         * doc/posix-headers/sys_resource.texi: Reorder items.
31670
31671 2008-09-26  Jim Meyering  <meyering@redhat.com>
31672
31673         fts: tweak inode comparison function
31674         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31675         inode numbers, as documented.
31676
31677         fts: sort dirent entries on inode number before traversing
31678         This avoids a quadratic, seek-related performance penalty when
31679         operating on a directory containing many entries (measurable at 10k;
31680         3.5 hours at 2 million entries with a cold cache) on certain types
31681         of file systems, including ext3 and ext4, but not tmpfs.
31682         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31683         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31684         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31685         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31686         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31687         (fts_build): Set the stat.st_ino member from D_INO.
31688         If it is likely to be useful, sort dirent entries on inode number.
31689
31690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31691         and the struct statfs.f_type member.
31692         * modules/fts (Depends-on): Add d-ino.
31693
31694 2008-09-26  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/sigpipe-die (Depends-on): Add sigpipe.
31697
31698         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31699         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31700         and GNULIB_STDIO_H_SIGPIPE are set.
31701         * lib/stdio-write.c: New file.
31702         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31703         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31704         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31705         REPLACE_STDIO_WRITE_FUNCS.
31706         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31707         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31708         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31709         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31710         * modules/stdio (Files): Add lib/stdio-write.c.
31711         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31712         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31713         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31714         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31715         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31716         REPLACE_FPRINTF_POSIX.
31717         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31718         REPLACE_PRINTF_POSIX.
31719         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31720         REPLACE_VFPRINTF_POSIX.
31721         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31722         REPLACE_VPRINTF_POSIX.
31723         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31724         SIGPIPE issue.
31725         * doc/posix-functions/fputc.texi: Likewise.
31726         * doc/posix-functions/fputs.texi: Likewise.
31727         * doc/posix-functions/fwrite.texi: Likewise.
31728         * doc/posix-functions/printf.texi: Likewise.
31729         * doc/posix-functions/putc.texi: Likewise.
31730         * doc/posix-functions/putchar.texi: Likewise.
31731         * doc/posix-functions/puts.texi: Likewise.
31732         * doc/posix-functions/vfprintf.texi: Likewise.
31733         * doc/posix-functions/vprintf.texi: Likewise.
31734
31735         * modules/safe-write (Depends-on): Add write.
31736
31737         * modules/sigpipe-tests: New file.
31738         * tests/test-sigpipe.c: New file.
31739         * tests/test-sigpipe.sh: New file.
31740
31741         * modules/write: New file.
31742         * lib/unistd.in.h: Include <sys/types.h>.
31743         (write): New declaration.
31744         * lib/write.c: New file.
31745         * m4/write.m4: New file.
31746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31747         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31748         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31749         GNULIB_WRITE, REPLACE_WRITE.
31750         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31751         and the SIGPIPE issue.
31752
31753         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31754         (raise): New declaration.
31755         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31756         (ext_signal): New function.
31757         (rpl_raise): New function.
31758         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31759         GNULIB_SIGNAL_H_SIGPIPE.
31760         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31761         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31762
31763         * modules/sigpipe: New file.
31764         * m4/sigpipe.m4: New file.
31765
31766 2008-09-25  Derek Price  <derek@ximbiot.com>
31767             Bruno Haible  <bruno@clisp.org>
31768
31769         * gnulib-tool (func_import): Report all license incompatibilities, not
31770         just the first one.
31771
31772 2008-09-25  Bruno Haible  <bruno@clisp.org>
31773
31774         * gnulib-tool (func_import): When computing the edits, consider not
31775         only the Makefile.ams that exist but also those that will be generated.
31776
31777 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31778
31779         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31780         fixes gnulib-tool --test warning about duplicate dependency.
31781
31782 2008-09-25  Bruno Haible  <bruno@clisp.org>
31783
31784         * gnulib-tool: Don't ask the user to perform edits in the generated
31785         Makefile.ams.
31786         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31787         apply to the Makefile.am being generated.
31788         (func_emit_tests_Makefile_am): Execute edits that apply to the
31789         Makefile.am being generated.
31790         (func_import): Setup list of Makefile.am edits before emitting the
31791         Makefile.ams, not at the end.
31792         (func_create_testdir): Update.
31793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31794
31795 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31796
31797         * gnulib-tool (func_import): Store the --tests-base option in the
31798         comment in gnulib-cache.m4.
31799
31800 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31801
31802         * NEWS: Document increased portability that sys_select now provides.
31803
31804         * lib/sys_select.in.h: Install select wrapper.
31805         * lib/sys_socket.in.h: Use more descriptive name when there is no
31806         select wrapper.
31807         * lib/winsock-select.c: New.
31808         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31809         Require gl_HEADER_SYS_SOCKET.
31810         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31811         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31812         * tests/test-sys_select.c: Add functional tests.
31813
31814 2008-09-24  Eric Blake  <ebb9@byu.net>
31815
31816         open, fopen: close fd leak in last patch
31817         * lib/open.c (rpl_open): Close fd before returning error.
31818         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31819         * doc/posix-functions/open.texi (open): Document that Irix also
31820         has the bug.
31821         * doc/posix-functions/fopen.texi (fopen): Likewise.
31822         Reported by Paolo Bonzini.
31823
31824 2008-09-24  Bruno Haible  <bruno@clisp.org>
31825
31826         Ensure that a filename ending in a slash cannot be used to access a
31827         non-directory.
31828         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31829         to check whether it's really a directory.
31830         * lib/fopen.c: Include fcntl.h, unistd.h.
31831         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31832         and fdopen().
31833         * modules/fopen (Depends-on): Add unistd.
31834         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31835         * tests/test-fopen.c (main): Likewise.
31836         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31837         * doc/posix-functions/fopen.texi: Likewise.
31838         Reported by Eric Blake.
31839
31840 2008-09-23  Eric Blake  <ebb9@byu.net>
31841
31842         c-stack: avoid compiler optimizations when provoking overflow
31843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31844         recursion harder to optimize, to ensure a stack overflow occurs.
31845         * tests/test-c-stack.c (recurse): Likewise.
31846         Borrowed from libsigsegv.
31847
31848         c-stack: work around Irix sigaltstack bug
31849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31850         whether sigaltstack uses wrong end of stack_t (copied in part from
31851         libsigsegv).
31852         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31853         Irix bug, without requiring an over-allocation.
31854         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31855         bug.
31856
31857         fopen: document mingw bug on directories
31858         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31859         not allowing a stream visiting a directory, even though reading
31860         from such a stream is not portable.
31861
31862 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31863
31864         * lib/poll.c: Rewrite.
31865         * modules/poll: Depend on alloca.
31866
31867 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31868
31869         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31870         instead define prototypes for a full set of wrappers.  Ensure
31871         that Cygwin does not use the compatibility code, which is only
31872         for MinGW.
31873         * lib/winsock.c: New.
31874         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31875         * modules/sys_socket: Add lib/winsock.c.
31876
31877         * modules/poll-tests: Add errno and perror.
31878         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31879
31880 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31881
31882         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31883
31884 2008-09-23  Bruno Haible  <bruno@clisp.org>
31885
31886         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31887         * doc/glibc-functions/*: Likewise.
31888
31889 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31890
31891         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31892         success.
31893
31894 2008-09-22  Eric Blake  <ebb9@byu.net>
31895             Bruno Haible  <bruno@clisp.org>
31896
31897         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31898         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31899         supply %A but mishandle pseudo-NaN.
31900         Reported by Simon Josefsson.
31901
31902 2008-09-21  Bruno Haible  <bruno@clisp.org>
31903
31904         * tests/test-lock.c (main): Tweak skip message.
31905         * tests/test-tls.c (main): Likewise.
31906
31907 2008-09-21  Bruno Haible  <bruno@clisp.org>
31908
31909         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31910         whether 'struct sigaction' has sa_sigaction here...
31911         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31912         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31913
31914 2008-09-21  Bruno Haible  <bruno@clisp.org>
31915
31916         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31917         section.
31918         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31919         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31920         the new section.
31921         (Support for obsolete systems lacking POSIX:2001): New section.
31922         (String handling <string.h>): Move strdup to the new section.
31923         Suggested by Simon Josefsson and Paolo Bonzini.
31924
31925 2008-09-21  Bruno Haible  <bruno@clisp.org>
31926
31927         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31928         exponents in %e and %g results on 'long double'. Needed for mingw's
31929         improved *printf functions.
31930         * tests/test-vasprintf-posix.c (test_function): Likewise.
31931         * tests/test-snprintf-posix.h (test_function): Likewise.
31932         * tests/test-sprintf-posix.h (test_function): Likewise.
31933         Reported by Eric Blake.
31934
31935 2008-09-21  Bruno Haible  <bruno@clisp.org>
31936
31937         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31938         * tests/test-sprintf-posix.h (test_function): Likewise.
31939
31940 2008-09-21  Bruno Haible  <bruno@clisp.org>
31941
31942         * modules/getpass (Depends-on): Add strdup-posix.
31943
31944         New module 'strdup-posix'.
31945         * modules/strdup-posix: New file.
31946         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31947         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31949         REPLACE_STRDUP.
31950         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31951         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31953         strdup-posix.
31954
31955         * modules/strdup (Depends-on): Remove malloc-posix.
31956
31957 2008-09-20  Bruno Haible  <bruno@clisp.org>
31958
31959         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31960         Wildenhues.
31961
31962 2008-09-20  Bruno Haible  <bruno@clisp.org>
31963
31964         Ensure that wint_t gets defined on IRIX 5.3.
31965         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31966         * lib/wctype.in.h (wint_t): Likewise.
31967         (__wctype_wint_t): Remove type.
31968         (isw*): Use wint_t instead of __wctype_wint_t.
31969         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31970         * modules/wchar (Files): Add m4/wint_t.m4.
31971         (Makefile.am): Substitute HAVE_WINT_T.
31972         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31973         * tests/test-wctype.c: Check that wint_t is defined.
31974         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31975         * doc/posix-headers/wctype.texi: Likewise.
31976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31977
31978 2008-09-18  Bruno Haible  <bruno@clisp.org>
31979
31980         * gnulib-tool (func_exit): Update comment.
31981
31982 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31983
31984         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31985         assumes strdup exists and does not depend on strdup to return
31986         ENOMEM on out of memory conditions.
31987
31988 2008-09-18  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
31991         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31992         digits for the exponent.
31993
31994 2008-09-18  Jim Meyering  <meyering@redhat.com>
31995             Bruno Haible  <bruno@clisp.org>
31996
31997         * lib/vasnprintf.c (decimal_point_char): Define also if
31998         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31999
32000 2008-09-16  Bruno Haible  <bruno@clisp.org>
32001         and Eric Blake  <ebb9@byu.net>
32002
32003         vasnprintf: support Irix 5.3
32004         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32005         that mishandle long double infinity.
32006         Reported by Tom G. Christensen.
32007
32008 2008-09-16  Bruno Haible  <bruno@clisp.org>
32009
32010         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32011         Solaris 9.
32012         * doc/glibc-functions/alphasort.texi: Likewise.
32013         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32014
32015 2008-09-16  Jim Meyering  <meyering@redhat.com>
32016
32017         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32018         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32019         a umask modification leak out of a subshell.  Otherwise, the
32020         opensolaris /bin/sh would be accepted and thus cause unwarranted
32021         failures in the coreutils test suite.
32022
32023 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32024
32025         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32026         to succeed.
32027
32028 2008-09-16  Jim Meyering  <meyering@redhat.com>
32029
32030         avoid spurious test failure when library is built without ACL support
32031         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32032         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32033         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32034         * tests/test-copy-acl.sh: Likewise.
32035
32036 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32037
32038         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32039         based on character occurrence counts.
32040
32041 2008-09-15  Eric Blake  <ebb9@byu.net>
32042
32043         tests: avoid some compiler warnings
32044         * tests/test-memchr.c (main): Pass NULL indirectly.
32045         * tests/test-closein.c (main): Avoid unused variable.
32046
32047 2008-09-15  Bruno Haible  <bruno@clisp.org>
32048
32049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32050         are missing on OpenBSD 4.0 individually.
32051         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32052
32053 2008-09-15  Bruno Haible  <bruno@clisp.org>
32054
32055         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32056         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32057         * doc/posix-functions/perror.texi: Likewise.
32058         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32059         is missing.
32060         Reported by Eric Blake.
32061
32062         * lib/errno.in.h: Use replacement values >= 2000.
32063         Reported by Eric Blake.
32064
32065 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32066
32067         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32068         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32069         limit.
32070         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32071         compareseq was aborted.
32072
32073 2008-09-14  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32076         yvec_edit_count.
32077         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32078         (fstrcmp_bounded): Simplify result computation accordingly.
32079
32080 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32081
32082         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32083         (fstrcmp): Define in terms of fstrcmp_bounded.
32084         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32085         lower_bound argument.
32086         Return quickly if the result is certainly < lower_bound.
32087         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32088
32089 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32090
32091         * lib/diffseq.h (EARLY_ABORT): New macro.
32092         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32093         evaluates to true.
32094
32095 2008-09-14  Bruno Haible  <bruno@clisp.org>
32096
32097         * modules/perror-tests: New file.
32098         * tests/test-perror.sh: New file.
32099         * tests/test-perror.c: New file.
32100
32101         New module 'perror'.
32102         * lib/stdio.in.h (perror): New declaration.
32103         * lib/perror.c: New file.
32104         * m4/perror.m4: New file.
32105         * modules/perror: New file.
32106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32107         * doc/posix-functions/perror.texi: Mention the perror module.
32108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32109         REPLACE_PERROR.
32110         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32111         REPLACE_PERROR.
32112
32113 2008-09-14  Bruno Haible  <bruno@clisp.org>
32114
32115         * modules/stdio (Makefile.am): Reorder to match the order in
32116         lib/stdio.in.h.
32117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32118
32119 2008-09-13  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32122
32123 2008-09-13  Bruno Haible  <bruno@clisp.org>
32124
32125         Extend strerror to cover the added errno values.
32126         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32127         (rpl_strerror): Provide error messages for the added errno values and
32128         for the WSA* values.
32129         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32130         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32131         strerror.
32132         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32133         * modules/strerror (Depends-on): Add errno.
32134         * doc/posix-functions/strerror.texi: Document the change.
32135         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32136         and EOVERFLOW.
32137
32138 2008-09-13  Bruno Haible  <bruno@clisp.org>
32139
32140         * modules/EOVERFLOW: Remove file.
32141         * m4/eoverflow.m4: Remove file.
32142         * modules/EOVERFLOW-tests: Remove file.
32143         * tests/test-EOVERFLOW.c: Remove file.
32144         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32145         * modules/ftell (Depends-on): Likewise.
32146         * modules/getdelim (Depends-on): Likewise.
32147         * modules/getugroups (Depends-on): Likewise.
32148         * modules/poll (Depends-on): Likewise.
32149         * modules/snprintf (Depends-on): Likewise.
32150         * modules/sprintf-posix (Depends-on): Likewise.
32151         * modules/vasnprintf (Depends-on): Likewise.
32152         * modules/vasprintf (Depends-on): Likewise.
32153         * modules/vfprintf-posix (Depends-on): Likewise.
32154         * modules/vsnprintf (Depends-on): Likewise.
32155         * modules/vsprintf-posix (Depends-on): Likewise.
32156         * modules/xvasprintf (Depends-on): Likewise.
32157         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32158         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32159         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32160         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32161         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32162         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32163         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32164         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32165         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32166         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32167         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32168         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32170         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32171         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32172         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32173         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32174         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32175         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32176         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32177         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32178         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32179         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32180         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32181         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32182         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32183         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32184         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32185         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32186         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32187         * MODULES.html.sh: Remove EOVERFLOW.
32188         * NEWS: Mention the change.
32189
32190 2008-09-13  Bruno Haible  <bruno@clisp.org>
32191
32192         * modules/errno-tests: New file.
32193         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32194
32195         * lib/errno.in.h: New file.
32196         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32197         * modules/errno: New file.
32198         * doc/posix-headers/errno.texi: Update documentation.
32199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32200
32201 2008-09-13  Bruno Haible  <bruno@clisp.org>
32202
32203         * tests/test-poll.c: Use #if for native Windows, rather than testing
32204         __MSVCRT__.
32205
32206 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32207             Bruno Haible  <bruno@clisp.org>
32208
32209         * lib/glob.c: Don't include <pwd.h> on native Windows.
32210         (WINDOWS32): New macro.
32211         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32212
32213 2008-09-13  Bruno Haible  <bruno@clisp.org>
32214
32215         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32216         (ETIMEDOUT): Remove macro.
32217         (glthread_cond_timedwait_multithreaded): New declaration.
32218         (glthread_cond_timedwait): Use it.
32219         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32220         (glthread_cond_timedwait_multithreaded): New function.
32221
32222 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32223
32224         * modules/poll-tests: Do not check for io.h.
32225         * tests/test-poll.c: Check for __MSVCRT__ instead.
32226
32227 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32228
32229         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32230         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32231         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32232
32233 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32234
32235         * modules/poll-tests: New.
32236         * tests/test-poll.c: New.
32237
32238 2008-09-12  Eric Blake  <ebb9@byu.net>
32239
32240         frexp: test for NetBSD failure on -0.0
32241         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32242         not all, bugs from NetBSD 3.0 have been fixed.
32243         * doc/posix-functions/frexp.texi (frexp): Document bug.
32244         Reported by Thomas Klausner.
32245
32246         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32247         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32248         literal -0.0.
32249         Reported by Jonathan C. Patschke <jp@centtech.com>.
32250
32251 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32252
32253         * lib/glthread/cond.h: Use dummy implementation also if
32254         USE_WIN32_THREADS.
32255
32256 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32257
32258         * modules/fnmatch-posix (License): Change to LGPLv2+.
32259         * modules/fnmatch-gnu (License): Likewise.
32260
32261 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32262
32263         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32264
32265 2008-09-11  Jim Meyering  <meyering@redhat.com>
32266
32267         * users.txt: Add gtk-vnc.
32268
32269 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32270
32271         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32272         rotate amounts.
32273
32274         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32275         required for 16-bit and 8-bit rotates.
32276         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32277         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32278         UINT8_MAX instead of hard-coded constants.
32279         Suggested by Paul Eggert.
32280
32281 2008-09-07  Bruno Haible  <bruno@clisp.org>
32282
32283         * tests/test-striconveh.c (main): Check behaviour when converting from
32284         UTF-7.
32285
32286         Make striconveh work better with stateful encodings.
32287         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32288         that iconv does not increment the inptr when returning -1/EINVAL.
32289
32290 2008-09-07  Bruno Haible  <bruno@clisp.org>
32291
32292         * build-aux/config.rpath: Update according to libtool-2.2.6.
32293         * build-aux/config.libpath: Likewise.
32294
32295 2008-09-06  Bruno Haible  <bruno@clisp.org>
32296
32297         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32298         * lib/freadptr.c (freadptr): Likewise.
32299         * lib/freadseek.c (freadptrinc): Likewise.
32300         Reported by Simon Josefsson.
32301
32302 2008-09-06  Bruno Haible  <bruno@clisp.org>
32303
32304         * modules/freadptr (License): Change to LGPLv2+.
32305         * modules/freadseek (License): Likewise.
32306         Suggested by Eric Blake.
32307
32308         * modules/memchr2 (License): Change to LGPLv2+.
32309         Approved by Eric Blake.
32310
32311 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32312             Bruno Haible  <bruno@clisp.org>
32313
32314         Make gnulib-tool work with native 'sed' on AIX.
32315         * gnulib-tool (sed_noop): New variable.
32316         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32317         func_add_or_update, func_create_testdir): Use it to initialize sed
32318         script variables.
32319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32320
32321 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32322             Bruno Haible  <bruno@clisp.org>
32323
32324         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32325         also works after #include directives.
32326
32327 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
32328
32329         getdate.y: reject an out-of-range timezone value
32330         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32331         the range [-24...+24].  When specified with only one or two digits,
32332         * tests/test-getdate.c: Tests for the fix.
32333         * doc/getdate.texi: Document this change.
32334
32335 2008-09-03  Bruno Haible  <bruno@clisp.org>
32336
32337         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32338
32339 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32340
32341         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32342         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32343         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32344         Blake <ebb9@byu.net>.
32345
32346         * tests/test-bitrotate.c: Add more test vectors.
32347
32348 2008-09-02  Eric Blake  <ebb9@byu.net>
32349
32350         vasnprintf-posix: handle large precision via %.*d
32351         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32352         when handling it ourselves.
32353         * tests/test-vasnprintf-posix.c (test_function): Add test.
32354         * tests/test-snprintf-posix.h (test_function): Likewise.
32355         * tests/test-sprintf-posix.h (test_function): Likewise.
32356         * tests/test-vasprintf-posix.c (test_function): Likewise.
32357         Reported by Alain Guibert.
32358
32359 2008-09-01  Eric Blake  <ebb9@byu.net>
32360
32361         c-stack: make configure-time check more robust
32362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32363         successful sigaction call.
32364         Reported by Tom G. Christensen.
32365
32366 2008-09-01  Bruno Haible  <bruno@clisp.org>
32367
32368         New module 'findprog-lgpl'.
32369         * modules/findprog-lgpl: New file.
32370         * lib/findprog-lgpl.c: New file.
32371         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32372         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32373         to decide whether to use strdup or xstrdup, concatenated_filename or
32374         xconcatenated_filename.
32375
32376 2008-09-01  Bruno Haible  <bruno@clisp.org>
32377
32378         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32379         'xconcat-filename' (GPL).
32380         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32381         (License): Change to LGPLv2+.
32382         * modules/xconcat-filename: New file.
32383         * lib/concat-filename.h (concatenated_filename): Change specification.
32384         (xconcatenated_filename): New declaration.
32385         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32386         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32387         memory situations.
32388         * lib/xconcat-filename.c: New file.
32389         * NEWS: Mention the change.
32390         * lib/findprog.c: Include concat-filename.h, not filename.h.
32391         (find_in_path): Use xconcatenated_filename instead of
32392         concatenated_filename.
32393         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32394         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32395         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32396         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32397         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32398         instead of concatenated_filename.
32399         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32400         (execute_java_class): Use xconcatenated_filename instead of
32401         concatenated_filename.
32402         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32403         * modules/javacomp (Depends-on): Likewise.
32404         * modules/javaexec (Depends-on): Likewise.
32405
32406 2008-09-01  Bruno Haible  <bruno@clisp.org>
32407
32408         Split module 'filename' into 'filename' and 'concat-filename'.
32409         * modules/filename: Keep only lib/filename.h.
32410         (License): Change to LGPLv2+.
32411         * modules/concat-filename: New file, extracted from modules/filename.
32412         * lib/filename.h (concatenated_filename): Remove declaration.
32413         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32414         * lib/concat-filename.c: Include concat-filename.h.
32415         * NEWS: Mention the change.
32416
32417 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32418
32419         * lib/bitrotate.h (rotl8, rotr8): Add.
32420
32421         * modules/bitrotate (configure.ac): Need
32422         AC_REQUIRE([AC_C_INLINE]).
32423         (Description): Mention stdint.h.  Reported by Bruno Haible
32424         <bruno@clisp.org>.
32425
32426         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32427         Paolo Bonzini <bonzini@gnu.org>.
32428
32429 2008-08-31  Bruno Haible  <bruno@clisp.org>
32430
32431         Assume Solaris specific bi-arch conventions on Solaris systems.
32432         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32433         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32435         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32436         like acl_libdirstem.
32437         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32438         acl_libdirstem.
32439         * NEWS: Mention the change.
32440         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32441
32442 2008-08-31  Jim Meyering  <meyering@redhat.com>
32443
32444         * lib/strftime.h: Add comments describing the two added arguments.
32445
32446         remove duplicate #include directives
32447         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32448         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32449
32450 2008-08-31  Bruno Haible  <bruno@clisp.org>
32451
32452         New module 'sigpipe-die'.
32453         * modules/sigpipe-die: New file.
32454         * lib/sigpipe-die.h: New file.
32455         * lib/sigpipe-die.c: New file.
32456         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32457
32458 2008-08-31  Bruno Haible  <bruno@clisp.org>
32459
32460         Don't override previously installed signal handlers.
32461         * lib/fatal-signal.c (saved_sigactions): New variable.
32462         (uninstall_handlers): Reset the signal to the saved handler, not
32463         to SIG_DFL (except when ignored).
32464         (install_handlers): Save the previous handlers.
32465
32466 2008-08-30  Bruno Haible  <bruno@clisp.org>
32467
32468         * gnulib-tool (func_reset_sigpipe): New function.
32469         (func_get_automake_snippet, func_modules_transitive_closure,
32470         func_import): Invoke it before a join command that reads from stdin,
32471         to avoid "echo: write error: Broken pipe" error messages on stderr.
32472         Reported by Sam Steingold <sds@gnu.org>.
32473
32474 2008-08-30  Bruno Haible  <bruno@clisp.org>
32475
32476         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32477         Code copied from m4/open.m4.
32478         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32479         access and the filename ends in a slash. Code copied from lib/open.c.
32480         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32481         * tests/test-fopen.c (main): Check against bug with trailing slash.
32482
32483 2008-08-29  Bruno Haible  <bruno@clisp.org>
32484
32485         Avoid some "gcc -pedantic" warnings.
32486         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32487         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32488         * lib/dirent.in.h: Likewise.
32489         * lib/fcntl.in.h: Likewise.
32490         * lib/float.in.h: Likewise.
32491         * lib/iconv.in.h: Likewise.
32492         * lib/inttypes.in.h: Likewise.
32493         * lib/locale.in.h: Likewise.
32494         * lib/math.in.h: Likewise.
32495         * lib/netinet_in.in.h: Likewise.
32496         * lib/search.in.h: Likewise.
32497         * lib/signal.in.h: Likewise.
32498         * lib/stdarg.in.h: Likewise.
32499         * lib/stdint.in.h: Likewise.
32500         * lib/stdio.in.h: Likewise.
32501         * lib/stdlib.in.h: Likewise.
32502         * lib/string.in.h: Likewise.
32503         * lib/strings.in.h: Likewise.
32504         * lib/sys_select.in.h: Likewise.
32505         * lib/sys_socket.in.h: Likewise.
32506         * lib/sys_stat.in.h: Likewise.
32507         * lib/sys_time.in.h: Likewise.
32508         * lib/sysexits.in.h: Likewise.
32509         * lib/time.in.h: Likewise.
32510         * lib/unistd.in.h: Likewise.
32511         * lib/wchar.in.h: Likewise.
32512         * lib/wctype.in.h: Likewise.
32513         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32514         * modules/fchdir (Makefile.am): Likewise.
32515         * modules/fcntl (Makefile.am): Likewise.
32516         * modules/float (Makefile.am): Likewise.
32517         * modules/iconv_open (Makefile.am): Likewise.
32518         * modules/inttypes (Makefile.am): Likewise.
32519         * modules/locale (Makefile.am): Likewise.
32520         * modules/math (Makefile.am): Likewise.
32521         * modules/netinet_in (Makefile.am): Likewise.
32522         * modules/search (Makefile.am): Likewise.
32523         * modules/signal (Makefile.am): Likewise.
32524         * modules/stdarg (Makefile.am): Likewise.
32525         * modules/stdint (Makefile.am): Likewise.
32526         * modules/stdio (Makefile.am): Likewise.
32527         * modules/stdlib (Makefile.am): Likewise.
32528         * modules/string (Makefile.am): Likewise.
32529         * modules/strings (Makefile.am): Likewise.
32530         * modules/sys_select (Makefile.am): Likewise.
32531         * modules/sys_socket (Makefile.am): Likewise.
32532         * modules/sys_stat (Makefile.am): Likewise.
32533         * modules/sys_time (Makefile.am): Likewise.
32534         * modules/sysexits (Makefile.am): Likewise.
32535         * modules/time (Makefile.am): Likewise.
32536         * modules/unistd (Makefile.am): Likewise.
32537         * modules/wchar (Makefile.am): Likewise.
32538         * modules/wctype (Makefile.am): Likewise.
32539         Reported by Reuben Thomas <rrt@sc3d.org>.
32540
32541 2008-08-29  Bruno Haible  <bruno@clisp.org>
32542
32543         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32544         any more.
32545
32546 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32547
32548         * MODULES.html.sh (Misc): Add bitrotate.
32549
32550         * modules/bitrotate: New file.
32551
32552         * lib/bitrotate.h: New file.
32553
32554         * modules/bitrotate-tests: New file.
32555
32556         * tests/test-bitrotate.c: New file.
32557
32558         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32559         on the bitrotate module.
32560
32561         * lib/arctwo.c: Use new bitrotate module.
32562
32563 2008-08-29  Jim Meyering  <meyering@redhat.com>
32564
32565         bootstrap: merge changes from coreutils
32566         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32567         of copied files.  Remove a kludge, now that this is fixed.
32568         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32569         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32570         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32571
32572 2008-08-29  Bruno Haible  <bruno@clisp.org>
32573
32574         * MODULES.html.sh: Remove --cvs-urls option.
32575
32576 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32577
32578         maint.mk: adjust to file name change
32579         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32580
32581 2008-08-28  Jim Meyering  <meyering@redhat.com>
32582
32583         * modules/getndelim2 (License): Relicense to LGPLv2+.
32584         Approved by Richard Stallman for the version of 1995, and by
32585         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32586
32587 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32588
32589         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32590         dummy if one is not available.  Do not touch them if
32591         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32592         (getc_maybe_unlocked): New.
32593         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32594
32595 2008-08-26  Eric Blake  <ebb9@byu.net>
32596
32597         doc/INSTALL: resync from autoconf
32598         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32599         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32600         moving...
32601         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32602         * INSTALL: Regenerate.
32603         * INSTALL.ISO: New file.
32604         * INSTALL.UTF-8: Likewise.
32605
32606 2008-08-26  Jim Meyering  <meyering@redhat.com>
32607
32608         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32609         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32610         these definitions conditional, so that they may be overridden, too.
32611
32612 2008-08-26  Bruno Haible  <bruno@clisp.org>
32613
32614         Generate INSTALL file variants with prettier quotes.
32615         * doc/Makefile (INSTALL_PRELUDE): New macro.
32616         (INSTALL): Use it.
32617         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32618
32619 2008-08-26  Bruno Haible  <bruno@clisp.org>
32620
32621         Run makeinfo in an English locale.
32622         * doc/Makefile (MAKEINFO): New variable.
32623
32624 2008-08-26  Bruno Haible  <bruno@clisp.org>
32625
32626         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32627         Suggested by Eric Blake.
32628
32629 2008-08-25  Bruno Haible  <bruno@clisp.org>
32630
32631         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32632
32633 2008-08-25  Eric Blake  <ebb9@byu.net>
32634
32635         c-stack: test that stack overflow can be caught
32636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32637         that platform allows handling stack overflow; at least OS/2 EMX
32638         has sigaltstack, but crashes before transferring control to
32639         handler on stack overflow.
32640         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32641         check for HAVE_STACK_OVERFLOW_HANDLING.
32642         Reported by Elbert Pol.
32643
32644 2008-08-25  Bruno Haible  <bruno@clisp.org>
32645
32646         * doc/posix-functions/strftime.texi: Fix description of strftime
32647         module.
32648
32649 2008-08-24  Bruno Haible  <bruno@clisp.org>
32650
32651         * tests/uniwidth/test-uc_width2.c: New file.
32652         * tests/uniwidth/test-uc_width2.sh: New file.
32653         * modules/uniwidth/width-tests (Files): Add the new files.
32654         (TESTS): Add uniwidth/test-uc_width2.sh.
32655         (TESTS_ENVIRONMENT): New variable.
32656         (check_PROGRAMS): Add test-uc_width2.
32657         (test_uc_width2_SOURCES): New variable.
32658
32659         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32660         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32661         not 0x00AB.
32662         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32663
32664 2008-08-22  Eric Blake  <ebb9@byu.net>
32665
32666         test-lock, test-tls: mention why a test is skipped
32667         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32668         skipped.
32669         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32670
32671         count-one-bits: relax license
32672         * modules/count-one-bits (License): Relicense to LGPLv2+.
32673         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32674
32675 2008-08-22  Andreas Schwab  <schwab@suse.de>
32676
32677         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32678         Remove spurious space in assignment.
32679
32680 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32681
32682         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32683         Paul Eggert <eggert@CS.UCLA.EDU>.
32684
32685 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32686
32687         * modules/gettext: Add m4/threadlib.m4.
32688
32689 2008-08-19  Eric Blake  <ebb9@byu.net>
32690
32691         test-c-stack: fix compilation failure on FreeBSD 5.0
32692         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32693         headers before <sys/resource.h>.
32694         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32695         the bug.
32696         Reported by Nelson H. F. Beebe.
32697
32698         strverscmp: migrate from "strverscmp.h" to <string.h>
32699         * modules/string (Makefile.am): Add new hooks.
32700         * modules/strverscmp (Files): Remove strverscmp.h.
32701         (Depends-on): Add string.
32702         (configure.ac): Add indicator.
32703         (Include): Mention new header.
32704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32705         defaults.
32706         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32707         results.
32708         * lib/strverscmp.h: Delete.
32709         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32710         * tests/test-strverscmp.c (includes): Adjust client.
32711         * lib/check-version.c (includes): Likewise.
32712         * NEWS: Document the change.
32713
32714         strverscmp: add unit test
32715         * modules/strverscmp-tests: New file.
32716         * tests/test-strverscmp.c: Likewise.
32717
32718 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32719
32720         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32721         regarding Windows crypto stuff, from Mono.
32722
32723 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32724
32725         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32726         if present, for intel RND.  Return error on failures.
32727
32728 2008-08-18  Ben Pfaff  <blp@gnu.org>
32729
32730         gitlog-to-changelog: give better diagnostic for failed pipe-open
32731         * build-aux/gitlog-to-changelog: Improve error message: suggest
32732         that the version of Git may be too old.
32733
32734 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32735
32736         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32737         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32738
32739 2008-08-18  Bruno Haible  <bruno@clisp.org>
32740
32741         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32742         pthread_in_use().
32743
32744 2008-08-18  Bruno Haible  <bruno@clisp.org>
32745
32746         * lib/glthread/threadlib.c: Include <pthread.h>.
32747
32748 2008-08-18  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32751         glthread_recursive_lock_* macros.
32752         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32753         Fix syntax error.
32754
32755 2008-08-18  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/glthread/thread.c: Avoid forcing a context switch right after
32758         thread creation.
32759
32760 2008-08-17  Bruno Haible  <bruno@clisp.org>
32761
32762         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32763         * lib/glthread/thread.h: Provide Win32 specific implementation.
32764         * modules/thread (Files): Add lib/glthread/thread.c.
32765         (Depends-on): Add lock.
32766         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32767
32768 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32769
32770         New module 'yield'.
32771         * modules/yield: New file.
32772         * lib/glthread/yield.h: New file.
32773         * m4/yield.m4: New file.
32774         * MODULES.html.sh (Multithreading): Add yield.
32775
32776 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32777
32778         New module 'thread'.
32779         * modules/thread: New file.
32780         * lib/glthread/thread.h: New file.
32781         * m4/thread.m4: New file.
32782         * MODULES.html.sh (Multithreading): Add thread.
32783
32784 2008-08-17  Bruno Haible  <bruno@clisp.org>
32785
32786         * lib/glthread/lock.h: Include <stdlib.h> always.
32787         * lib/glthread/tls.h: Likewise.
32788         * lib/glthread/cond.h: Likewise.
32789
32790 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32791
32792         New module 'cond'.
32793         * modules/cond: New file.
32794         * lib/glthread/cond.h: New file.
32795         * lib/glthread/cond.c: New file.
32796         * m4/cond.m4: New file.
32797         * MODULES.html.sh (Multithreading): Add cond.
32798
32799 2008-08-16  Eric Blake  <ebb9@byu.net>
32800
32801         c-stack: fix regression on Irix 5.3 from 2008-06-21
32802         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32803         sa_sigaction...
32804         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32805         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32806         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32807         * modules/signal (Makefile.am): Use the value.
32808         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32809         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32810         * doc/posix-headers/signal.texi (signal.h): Document this
32811         portability issue.
32812         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32813         Reported by Tom G. Christensen.
32814
32815 2008-08-17  Bruno Haible  <bruno@clisp.org>
32816
32817         New module 'threadlib'.
32818         * modules/threadlib: New file.
32819         * lib/glthread/threadlib.c: New file, extracted from
32820         lib/glthread/lock.c.
32821         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32822         functions.
32823         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32824         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32825         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32826         macros.
32827         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32828         (gl_DISABLE_THREADS): Remove macro.
32829         * modules/lock (Files): Remove build-aux/config.rpath.
32830         (Depends-on): Remove havelib. Add threadlib.
32831         (configure.ac-early): Remove section.
32832         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32833         * modules/tls (Depends-on): Remove lock. Add threadlib.
32834         (Link): New section, copied from threadlib.
32835         * MODULES.html.sh (Multithreading): Add threadlib.
32836
32837 2008-08-14  Bruno Haible  <bruno@clisp.org>
32838
32839         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32840         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32841         glthread_rwlock_unlock, glthread_rwlock_destroy,
32842         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32843         glthread_recursive_lock_destroy): Define as macros always.
32844         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32845         glthread_lock_lock.
32846         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32847         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32848         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32849         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32850         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32851         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32852         (glthread_recursive_lock_lock_func): Renamed from
32853         glthread_recursive_lock_lock.
32854         (glthread_recursive_lock_unlock_func): Renamed from
32855         glthread_recursive_lock_unlock.
32856         (glthread_recursive_lock_destroy_func): Renamed from
32857         glthread_recursive_lock_destroy.
32858
32859 2008-08-14  Bruno Haible  <bruno@clisp.org>
32860
32861         * lib/glthread/lock.h: Renamed from lib/lock.h.
32862         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32863         * lib/glthread/tls.h: Renamed from lib/tls.h.
32864         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32865         * lib/fstrcmp.c: Update includes.
32866         * lib/strsignal.c: Update includes.
32867         * modules/lock (Files, Makefile.am): Update.
32868         (Include): Change to "glthread/lock.h".
32869         * modules/tls (Files, Makefile.am): Update.
32870         (Include): Change to "glthread/tls.h".
32871         * tests/test-lock.c: Update includes.
32872         * tests/test-tls.c: Update includes.
32873         * NEWS: Mention the renamed header files.
32874
32875 2008-08-11  Jim Meyering  <meyering@redhat.com>
32876
32877         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32878
32879 2008-08-11  Eric Blake  <ebb9@byu.net>
32880
32881         test-c-stack: avoid C99-ism
32882         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32883         before statement.
32884         Reported by Alain Guibert.
32885
32886 2008-08-10  Jim Meyering  <meyering@redhat.com>
32887
32888         ensure that return value of uinttostr et al are not ignored
32889         * lib/inttostr.h (__GNUC_PREREQ): Define.
32890         (__attribute_warn_unused_result__): Define.
32891         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32892
32893 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32894
32895         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32896         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32897
32898 2008-08-07  Jim Meyering  <meyering@redhat.com>
32899
32900         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32901
32902         * modules/mkstemp (License): Relicense under LGPLv2+.
32903         * modules/tempname (License): Likewise.
32904
32905 2008-08-06  Bruno Haible  <bruno@clisp.org>
32906
32907         * lib/poll.c (poll): Further micro-optimization.
32908
32909 2008-08-06  Jim Meyering  <meyering@redhat.com>
32910
32911         inet_pton.c: use locale-independent tolower
32912         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32913         (inet_pton6): Use c_tolower rather than tolower.
32914         * modules/inet_pton (Depends-on): Add c-ctype.
32915
32916 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32917
32918         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32919         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32920
32921 2008-08-06  Jim Meyering  <meyering@redhat.com>
32922
32923         * modules/inet_pton (License): Relicense under LGPLv2+.
32924
32925 2008-08-03  Bruno Haible  <bruno@clisp.org>
32926
32927         Additional non-aborting API for lock and tls.
32928         * lib/lock.h: Include <errno.h>.
32929         (glthread_lock_init): New macro/function.
32930         (gl_lock_init): Define as wrapper around glthread_lock_init.
32931         (glthread_lock_lock): New macro/function.
32932         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32933         (glthread_lock_unlock): New macro/function.
32934         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32935         (glthread_lock_destroy): New macro/function.
32936         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32937         (glthread_rwlock_init): New macro/function.
32938         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32939         (glthread_rwlock_rdlock): New macro/function.
32940         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32941         (glthread_rwlock_wrlock): New macro/function.
32942         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32943         (glthread_rwlock_unlock): New macro/function.
32944         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32945         (glthread_rwlock_destroy): New macro/function.
32946         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32947         (glthread_recursive_lock_init): New macro/function.
32948         (gl_recursive_lock_init): Define as wrapper around
32949         glthread_recursive_lock_init.
32950         (glthread_recursive_lock_lock): New macro/function.
32951         (gl_recursive_lock_lock): Define as wrapper around
32952         glthread_recursive_lock_lock.
32953         (glthread_recursive_lock_unlock): New macro/function.
32954         (gl_recursive_lock_unlock): Define as wrapper around
32955         glthread_recursive_lock_unlock.
32956         (glthread_recursive_lock_destroy): New macro/function.
32957         (gl_recursive_lock_destroy): Define as wrapper around
32958         glthread_recursive_lock_destroy.
32959         (glthread_once): New macro/function.
32960         (gl_once): Define as wrapper around glthread_once.
32961         Update function declarations.
32962         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32963         glthread_rwlock_init. Return error code.
32964         (glthread_rwlock_rdlock_multithreaded): Renamed from
32965         glthread_rwlock_rdlock. Return error code.
32966         (glthread_rwlock_wrlock_multithreaded): Renamed from
32967         glthread_rwlock_wrlock. Return error code.
32968         (glthread_rwlock_unlock_multithreaded): Renamed from
32969         glthread_rwlock_unlock. Return error code.
32970         (glthread_rwlock_destroy_multithreaded): Renamed from
32971         glthread_rwlock_destroy. Return error code.
32972         (glthread_recursive_lock_init_multithreaded): Renamed from
32973         glthread_recursive_lock_init. Return error code.
32974         (glthread_recursive_lock_lock_multithreaded): Renamed from
32975         glthread_recursive_lock_lock. Return error code.
32976         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32977         glthread_recursive_lock_unlock. Return error code.
32978         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32979         glthread_recursive_lock_destroy. Return error code.
32980         (glthread_once_call): Make static.
32981         (glthread_once_multithreaded): Renamed from glthread_once.
32982         * lib/tls.h: Include <errno.h>.
32983         (glthread_tls_key_init): New macro/function.
32984         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32985         (glthread_tls_set): New macro/function.
32986         (gl_tls_set): Define as wrapper around glthread_tls_set.
32987         (glthread_tls_key_destroy): New macro/function.
32988         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32989         Update function declarations.
32990         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32991         glthread_tls_get.
32992         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32993
32994 2008-08-04  Eric Blake  <ebb9@byu.net>
32995
32996         gnumakefile: use space, not TAB, outside of targets
32997         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32998
32999 2008-08-02  Jim Meyering  <meyering@redhat.com>
33000
33001         getdate.y: avoid locale-dependent date parsing failure
33002         In Turkish locales, getdate would fail to recognize keywords
33003         containing a lowercase "i".  The solution is not to rely on
33004         locale-sensitive case-conversion.
33005         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33006         (lookup_word): Use c_toupper in place of toupper.
33007         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33008         Reported by Vefa Bicakci <bicave@superonline.com> in
33009         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33010         * modules/getdate (Depends-on): Add c-ctype.
33011
33012 2008-08-02  Bruno Haible  <bruno@clisp.org>
33013
33014         * gnulib-tool (func_import): When updating or creating a .gitignore
33015         file, prepend each added line with a slash, and ignore leading slashes
33016         from the existing lines.
33017         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33018
33019 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33020
33021         Portability fix for GNU make 3.79.1.
33022         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33023         versions do not understand.
33024
33025 2008-08-01  Bruno Haible  <bruno@clisp.org>
33026
33027         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33028         * tests/test-isnanf.h (zero): New variable.
33029         (main): Avoid literal -0.0f.
33030         * tests/test-isnand.h (zero): New variable.
33031         (main): Avoid literal -0.0.
33032         * tests/test-isnanl.h (zero): New variable.
33033         (main): Avoid literal -0.0L.
33034         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33035         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33036         -0.0, -0.0L.
33037         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33038         (test_signbitd): Avoid literal -0.0.
33039         (test_signbitl): Avoid literal -0.0L.
33040         * tests/test-ceilf1.c (zero): New variable.
33041         (main): Avoid literal -0.0f.
33042         * tests/test-ceill.c (zero): New variable.
33043         (main): Avoid literal -0.0L.
33044         * tests/test-floorf1.c (zero): New variable.
33045         (main): Avoid literal -0.0f.
33046         * tests/test-floorl.c (zero): New variable.
33047         (main): Avoid literal -0.0L.
33048         * tests/test-roundf1.c (zero): New variable.
33049         (main): Avoid literal -0.0f.
33050         * tests/test-round1.c (zero): New variable.
33051         (main): Avoid literal -0.0.
33052         * tests/test-roundl.c (zero): New variable.
33053         (main): Avoid literal -0.0L.
33054         * tests/test-truncf1.c (zero): New variable.
33055         (main): Avoid literal -0.0f.
33056         * tests/test-trunc1.c (zero): New variable.
33057         (main): Avoid literal -0.0.
33058         * tests/test-truncl.c (zero): New variable.
33059         (main): Avoid literal -0.0L.
33060         * tests/test-frexp.c (zero): New variable.
33061         (main): Avoid literal -0.0.
33062         * tests/test-frexpl.c (zero): New variable.
33063         (main): Avoid literal -0.0L.
33064         * tests/test-ldexpl.c (zero): New variable.
33065         (main): Avoid literal -0.0L.
33066         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33067         (zerod, zerol): New variables.
33068         (test_function): Avoid literals -0.0, -0.0L.
33069         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33070         (zerod, zerol): New variables.
33071         (test_function): Avoid literals -0.0, -0.0L.
33072         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33073         (zerod, zerol): New variables.
33074         (test_function): Avoid literals -0.0, -0.0L.
33075         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33076         (zerod, zerol): New variables.
33077         (test_function): Avoid literals -0.0, -0.0L.
33078         * tests/test-strtod.c (zero): New variable.
33079         (main): Avoid literal -0.0.
33080         Reported by Jonathan C. Patschke <jp@centtech.com>.
33081
33082 2008-07-31  Jim Meyering  <meyering@redhat.com>
33083
33084         sha256.h: correct definition of SHA224_DIGEST_SIZE
33085         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33086         Reported by Paulie Pena IV <paulie4@gmail.com>.
33087         Define as 224 / 8, rather than as a literal.
33088         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33089         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33090         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33091
33092 2008-07-31  Bruno Haible  <bruno@clisp.org>
33093
33094         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33095         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33096         Reported by Jonathan Patschke <jp@centtech.com>.
33097
33098 2008-07-31  Bruno Haible  <bruno@clisp.org>
33099
33100         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33101         Reported by Paolo Bonzini <bonzini@gnu.org>.
33102
33103 2008-07-30  Eric Blake  <ebb9@byu.net>
33104
33105         test-strtod: allow compilation without -lm
33106         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33107         Reported by Dennis Clarke <blastwave@gmail.com>.
33108
33109 2008-07-28  Jim Meyering  <meyering@redhat.com>
33110
33111         bootstrap: work also when there are no .po files in po/
33112         * build-aux/bootstrap (update_po_files): Complete the change
33113         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33114
33115 2008-07-27  Jim Meyering  <meyering@redhat.com>
33116
33117         * users.txt: Add zile.
33118
33119 2008-07-26  Ben Pfaff  <blp@gnu.org>
33120
33121         Add missing dependencies on new m4/exponent[fdl].m4 files.
33122         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33123         * modules/isnand-nolibm: Add m4/exponentd.m4.
33124         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33125         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33126         m4/isnan[fdl].m4, because the macros actually used moved.
33127         Reported by Jim Meyering.
33128
33129 2008-07-14  Ben Pfaff  <blp@gnu.org>
33130
33131         Add isinf module.
33132         * lib/isinf.c: New file.
33133         * lib/math.in.h: Define isinf macro if we have decided to replace
33134         it.
33135         * m4/isinf.m4: New file.
33136         * m4/math_h.m4: Initialize and substitute variables for isinf
33137         module.
33138         * modules/isinf: New file.
33139         * modules/isinf-tests: New file.
33140         * modules/math: Add substitutions for new module.
33141         * tests/test-isinf.c: New file.
33142         * doc/posix-functions/isinf.texi: Mention new module.
33143         * MODULES.html.sh: Mention new module.
33144
33145 2008-07-14  Ben Pfaff  <blp@gnu.org>
33146
33147         Factor out some macros for use by additional modules.
33148         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33149         exponentf.m4.
33150         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33151         exponentd.m4.
33152         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33153         file exponentl.m4.
33154         * m4/exponentf.m4: New file.
33155         * m4/exponentd.m4: New file.
33156         * m4/exponentl.m4: New file.
33157         * modules/isnanf: Use new file m4/exponentf.m4.
33158         * modules/isnand: Use new file m4/exponentd.m4.
33159         * modules/isnanl: Use new file m4/exponentl.m4.
33160
33161 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33162
33163         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33164         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33165         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33166         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33167
33168         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33169         readlink on platforms without PATH_MAX.
33170
33171 2008-07-21  Eric Blake  <ebb9@byu.net>
33172
33173         Warn, not fail, on stale version.
33174         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33175
33176         Don't allow installation with stale devel version number.
33177         * top/GNUmakefile (_is-install-target): New macro.
33178         (_curr-ver): Forbid installation with stale version number.
33179
33180 2008-07-20  Bruno Haible  <bruno@clisp.org>
33181
33182         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33183         TESTS_ENVIRONMENT.
33184         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33185
33186 2008-07-20  Bruno Haible  <bruno@clisp.org>
33187
33188         * lib/c-stack.h (c_stack_action): Add documentation.
33189         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33190
33191 2008-07-20  Bruno Haible  <bruno@clisp.org>
33192
33193         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33194         * modules/readlink (License): Likewise.
33195
33196 2008-07-17  Eric Blake  <ebb9@byu.net>
33197
33198         * modules/c-stack (Link): Fix typo.
33199
33200         Make c-stack use libsigsegv, when available.
33201         * modules/c-stack (Depends-on): Add libsigsegv.
33202         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33203         needed.
33204         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33205         (segv_handler, overflow_handler, c_stack_action)
33206         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33207         implementation when libsigsegv is available, but only when using
33208         the library is necessary.
33209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33210         comment, explaining why XSI check fails on Linux.
33211         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33212         * tests/test-c-stack2.sh: Tweak skip message.
33213         * NEWS: Document new link-time requirements.
33214
33215 2008-07-16  Eric Blake  <ebb9@byu.net>
33216
33217         c-stack: Expose false positives when not using libsigsegv.
33218         * modules/c-stack-tests (Files): Expand test.
33219         * tests/test-c-stack.c (main): Add means to conditionally trigger
33220         non-overflow SIGSEGV.
33221         * tests/test-c-stack2.sh: New file.
33222
33223 2008-07-14  Bruno Haible  <bruno@clisp.org>
33224
33225         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33226         Reported by Eric Blake.
33227
33228 2008-07-14  Sam Steingold  <sds@gnu.org>
33229             Bruno Haible  <bruno@clisp.org>
33230
33231         New module libsigsegv.
33232         * modules/libsigsegv: New file.
33233         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33234         modifications.
33235         * MODULES.html.sh (Signal handling): New section.
33236
33237 2008-07-14  Bruno Haible  <bruno@clisp.org>
33238
33239         * modules/unictype/ctype-* (Description): Add the word "function".
33240         Improves the resulting doc in MODULES.html.
33241
33242 2008-07-12  Ben Pfaff  <blp@gnu.org>
33243
33244         Add longlong module.
33245         * modules/longlong: New file.
33246
33247 2008-07-12  Bruno Haible  <bruno@clisp.org>
33248
33249         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33250         to empty.
33251
33252 2008-07-10  Ben Pfaff  <blp@gnu.org>
33253
33254         Add isnan module.
33255         * doc/posix-functions/isnan.texi: Mention new module.
33256         * lib/math.in.h: Define isnan macro if we have decided to replace
33257         it.
33258         * m4/isnan.m4: New file.
33259         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33260         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33261         also.
33262         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33263         redundancy.
33264         * m4/math_h.m4: Initialize and substitute variables for isnan
33265         module.
33266         * modules/isnan: New file.
33267         * modules/isnan-tests: New file.
33268         * modules/math: Add substitutions for new module.
33269         * tests/test-isnan.c: New file.
33270         * MODULES.html.sh: Mention new module.
33271
33272 2008-07-10  Ben Pfaff  <blp@gnu.org>
33273
33274         Add isnanf module.
33275         * lib/isnanf.m4: New file.
33276         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33277         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33278         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33279         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33280         * modules/isnanf: New file.
33281         * modules/isnanf-tests: New file.
33282         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33283         files.
33284         * tests/test-isnanf-nolibm.c: factored most of its contents into
33285         new file tests/test-isnanf.h.
33286         * tests/test-isnanf.h: New file.
33287         * tests/test-isnanf.c: New file.
33288         * MODULES.html.sh: Mention new module.
33289         * doc/glibc-functions/isnanf.texi: Mention new module.
33290
33291 2008-07-10  Ben Pfaff  <blp@gnu.org>
33292
33293         Add isnand module.
33294         * lib/isnand.h: New file.
33295         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33296         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33297         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33298         functionality also.
33299         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33300         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33301         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33302         * modules/isnand: New file.
33303         * modules/isnand-tests: New file.
33304         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33305         files.
33306         * tests/test-isnand-nolibm.c: factored most of its contents into
33307         new file tests/test-isnand.h.
33308         * tests/test-isnand.h: New file.
33309         * tests/test-isnand.c: New file.
33310         * MODULES.html.sh: Mention new module.
33311
33312 2008-07-10  Ben Pfaff  <blp@gnu.org>
33313
33314         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33315         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33316         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33317         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33318         * modules/isnanf-nolibm: Update references to renamed files.
33319         * modules/isnand-nolibm: Likewise.
33320         * modules/isnanf-nolibm-tests: Likewise.
33321         * modules/isnand-nolibm-tests: Likewise.
33322         * lib/frexp.c: Likewise.
33323         * lib/isfinite.c: Likewise.
33324         * lib/signbitd.c: Likewise.
33325         * lib/signbitf.c: Likewise.
33326         * lib/vasnprintf.c: Likewise.
33327         * tests/test-ceilf1.c: Likewise.
33328         * tests/test-ceilf2.c: Likewise.
33329         * tests/test-floorf1.c: Likewise.
33330         * tests/test-floorf2.c: Likewise.
33331         * tests/test-frexp.c: Likewise.
33332         * tests/test-round1.c: Likewise.
33333         * tests/test-round2.c: Likewise.
33334         * tests/test-roundf1.c: Likewise.
33335         * tests/test-strtod.c: Likewise.
33336         * tests/test-trunc1.c: Likewise.
33337         * tests/test-trunc2.c: Likewise.
33338         * tests/test-truncf1.c: Likewise.
33339         * tests/test-truncf2.c: Likewise.
33340         * NEWS: Mention the renamed header files.
33341
33342 2008-07-11  Jim Meyering  <meyering@redhat.com>
33343
33344         vc-list-files: make the last-resort awk code more portable
33345         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33346         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33347         does not support it.
33348
33349 2008-07-10  Eric Blake  <ebb9@byu.net>
33350
33351         Work with tar's bootstrap.
33352         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33353         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33354         an m4 comment.
33355
33356 2008-07-09  Jim Meyering  <meyering@redhat.com>
33357
33358         posix-shell.m4: fix typo that made this test malfunction
33359         * m4/posix-shell.m4: Remove capitalization in variable name.
33360
33361 2008-07-08  Bruno Haible  <bruno@clisp.org>
33362
33363         * m4/onceonly.m4: Update comments.
33364         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33365
33366 2008-07-04  Jim Meyering  <meyering@redhat.com>
33367
33368         * users.txt: Add vc-dwim.
33369         (bison, coreutils): Use the gitweb URL.
33370
33371 2008-07-03  Jim Meyering  <meyering@redhat.com>
33372
33373         * users.txt: Add libffcall.  From Sam Steingold.
33374
33375 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
33376
33377         getdate.y: do not ignore TZ with relative day, month or year offset
33378         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33379         relative-date-handling, since otherwise, the latter would clobber the
33380         sole output (an updated Start value) of the tz-handling block.
33381         * tests/test-getdate.c: Tests for the fix
33382
33383 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33384
33385         Recognize 'foo_LIBRARIES += libgnu.a'.
33386         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33387         makefile snippet has already specified an installation location,
33388         also using '+='.
33389
33390 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
33391
33392         getdate.y: factor out common actions
33393         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33394         Use them in place of open-coded actions.
33395
33396 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33397
33398         Add self-test for getdate module.
33399         * modules/getdate-tests: New file.
33400         * tests/test-getdate.c: New file.
33401
33402 2008-06-29  Bruno Haible  <bruno@clisp.org>
33403
33404         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33405         .gitignore.
33406         Reported by Sylvain Beucler <beuc@beuc.net>.
33407
33408 2008-06-29  Bruno Haible  <bruno@clisp.org>
33409
33410         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33411         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33412
33413 2008-06-29  Bruno Haible  <bruno@clisp.org>
33414
33415         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33416         EXTRA_DIST.
33417         Reported by Sylvain Beucler <beuc@beuc.net>.
33418
33419 2008-06-26  Jim Meyering  <meyering@redhat.com>
33420
33421         make several modules depend on the "open" module
33422         This provides slightly increased consistency when opening-for-write
33423         the name of a non-directory spelled with a trailing slash.
33424         * modules/chdir-safer: Likewise.
33425         * modules/chown: Likewise.
33426         * modules/clean-temp: Likewise.
33427         * modules/copy-file: Likewise.
33428         * modules/fchdir: Likewise.
33429         * modules/fcntl-safer: Likewise.
33430         * modules/pipe: Likewise.
33431         * modules/utime: Likewise.
33432         Prompted by Eric Blake and Bruno Haible.
33433
33434 2008-06-24  Andreas Schwab  <schwab@suse.de>
33435
33436         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33437         literals can be used as initializers for global variables.
33438
33439 2008-06-23  Eric Blake  <ebb9@byu.net>
33440
33441         Make gnulib-cache.m4 easier to diff.
33442         * gnulib-tool (func_import): Allow newlines when reading cached
33443         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33444
33445 2008-06-23  Bruno Haible  <bruno@clisp.org>
33446
33447         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33448         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33449         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33450         m4/signalblocking.m4.
33451         (gl_PREREQ_SIGACTION): Don't invoke it.
33452         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33453         gl_PREREQ_SIG_HANDLER_H.
33454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33455         Don't check for sigaction here.
33456
33457 2008-06-23  Bruno Haible  <bruno@clisp.org>
33458
33459         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33460         (install_handlers): Don't set the SA_RESETHAND flag.
33461
33462 2008-06-23  Bruno Haible  <bruno@clisp.org>
33463
33464         * m4/sigaction.m4: Comment fixes.
33465         * lib/signal.in.h: Likewise.
33466
33467 2008-06-23  Eric Blake  <ebb9@byu.net>
33468
33469         Fix typo.
33470         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33471
33472         Avoid SA_ namespace.
33473         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33474         Reported by Ralf Wildenhues.
33475
33476         Avoid test failure due to SA_RESTORER.
33477         * tests/test-sigaction.c (SA_MASK): New macro.
33478         (main): Avoid failing due to extension flags being set.
33479         Reported by Jim Meyering.
33480
33481         Revert use of sig-handler.h in sigprocmask.c.
33482         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33483         it requires the existence of struct sigaction.
33484         * lib/sigprocmask.c (handler_t): Restore typedef.
33485         (rpl_signal, old_handlers): Use local type.
33486
33487 2008-06-22  Bruno Haible  <bruno@clisp.org>
33488
33489         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33490         conditionally.
33491         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33492
33493 2008-06-22  Bruno Haible  <bruno@clisp.org>
33494
33495         * doc/posix-functions/siginterrupt.texi: Move note.
33496
33497         * lib/signal.in.h (SA_RESTART): New macro.
33498         * lib/sigaction.c: Update comment.
33499
33500         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33501
33502         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33503         (gl_PREREQ_SIGPROCMASK): Invoke it.
33504         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33505
33506         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33507
33508         * lib/sigprocmask.c: Update a comment.
33509
33510 2008-06-21  Eric Blake  <ebb9@byu.net>
33511
33512         Use sigaction module rather than signal().
33513         * modules/c-stack (Depends-on): Add sigaction.
33514         * modules/fatal-signal (Depends-on): Likewise.
33515         * modules/nanosleep (Depends-on): Likewise.
33516         * modules/sigprocmask (Files): Add sig-handler.h.
33517         * modules/sigaction (Files): Likewise.
33518         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33519         Eggert.
33520         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33521         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33522         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33523         (init_fatal_signals): Likewise.
33524         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33525         (siginterrupt): Delete fallback.
33526         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33527         instead.
33528         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33529         siginterrupt.
33530
33531         New module sigaction, for mingw.
33532         * modules/sigaction: New module...
33533         * modules/sigaction-tests: ...and its test.
33534         * m4/sigaction.m4: New file.
33535         * lib/sigaction.c: Likewise.
33536         * tests/test-sigaction.c: Likewise.
33537         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33538         * modules/signal (Makefile.am): Likewise.
33539         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33540         needed.
33541         * doc/posix-headers/signal.texi (signal.h): Mention provided
33542         types.
33543         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33544         that sigaction is preferable.
33545         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33546         module.
33547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33548         sigaction.
33549
33550         Improve robustness of sigprocmask by overriding signal.
33551         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33552         is in use.
33553         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33554         (SIGKILL, SIGSTOP): Provide fallbacks.
33555         (rpl_signal): Implement.
33556         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33557         signal can be called inside handlers.
33558
33559         Fix nanosleep module on mingw.
33560         * modules/nanosleep (Depends-on): Add sys_select.
33561         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33562
33563         Fix licensing of sigprocmask.
33564         * modules/raise (License): Relicense as LGPL.
33565
33566 2008-06-21  Bruno Haible  <bruno@clisp.org>
33567
33568         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33569         result if it contains question marks.
33570         Reported by Michael Geng <linux@michaelgeng.de>.
33571
33572 2008-06-19  Bruno Haible  <bruno@clisp.org>
33573
33574         Fix CVS-ism.
33575         * doc/gnulib.texi: Include updated-stamp.texi.
33576         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33577         (updated-stamp.texi): New rule.
33578         (gnulib.info): Depend on it.
33579         * doc/.gitignore: Add updated-stamp.texi.
33580         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33581
33582 2008-06-19  Bruno Haible  <bruno@clisp.org>
33583
33584         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33585         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33586
33587 2008-06-19  Eric Blake  <ebb9@byu.net>
33588
33589         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33590         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33591         Reported by Stepan Kasal.
33592
33593 2008-06-18  Bruno Haible  <bruno@clisp.org>
33594
33595         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33596         Reported by Eric Blake.
33597
33598 2008-06-18  Eric Blake  <ebb9@byu.net>
33599
33600         Work around cygwin 1.5.25 strsignal bug.
33601         * tests/test-strsignal.c: Allow for const char *.
33602         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33603
33604 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33605
33606         * users.txt: Update URL to article and add author/date
33607         information.
33608
33609 2008-06-17  Bruno Haible  <bruno@clisp.org>
33610
33611         New macro gl_DISABLE_THREADS.
33612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33613         if the user did not pass --enable-threads or --disable-threads option.
33614         (gl_DISABLE_THREADS): New macro.
33615         Reported by Eric Blake <ebb9@byu.net>.
33616
33617 2008-06-17  Bruno Haible  <bruno@clisp.org>
33618
33619         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33620         when the macro ignores it.
33621         Based on a patch by Eric Blake <ebb9@byu.net>.
33622
33623 2008-06-17  Bruno Haible  <bruno@clisp.org>
33624
33625         * modules/tls (License): Change to LGPLv2+.
33626         Reported by Eric Blake.
33627
33628 2008-06-17  Eric Blake  <ebb9@byu.net>
33629
33630         Simplify c-stack prerequisites.
33631         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33633         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33634         check.
33635         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33636         <sys/resource.h>.
33637
33638         Move c-stack test into testsuite.
33639         * modules/c-stack-tests: New file.
33640         * lib/c-stack.c [DEBUG]: Move test program...
33641         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33642         fail test if sigaltstack is lacking.
33643         * tests/test-c-stack.sh: New driver file.
33644
33645 2008-06-16  Eric Blake  <ebb9@byu.net>
33646
33647         Use raise module consistently.
33648         * modules/fatal-signal (Depends-on): Add raise.
33649         * modules/sigprocmask (Depends-on): Likewise.
33650         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33651         * lib/sigprocmask.c (sigprocmask): Likewise.
33652         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33653         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33654
33655         Fix compliance bug in sigpending.
33656         * lib/sigprocmask.c (sigpending): Return pending array via
33657         parameter, not return value.
33658
33659 2008-06-14  Eric Blake  <ebb9@byu.net>
33660
33661         Improve obstack-printf test code.
33662         * tests/test-obstack-printf.c (test_function): Fix comment, and
33663         simplify usage of obstack_* in macros.  Add a test for coverage.
33664         Reported by Bruno Haible.
33665
33666 2008-06-14  Bruno Haible  <bruno@clisp.org>
33667
33668         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33669         array size as a constant, not as a const variable.
33670         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33671         AC_USE_SYSTEM_EXTENSIONS.
33672         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33673         Test whether the obstack_printf function actually exists.
33674         * modules/obstack-printf (Depends-on): Add extensions.
33675         (Include): Remove obstack.h.
33676         * modules/obstack-printf-posix (Depends-on): Add extensions.
33677         (Include): Remove obstack.h.
33678
33679 2008-06-13  Eric Blake  <ebb9@byu.net>
33680
33681         Add obstack-printf and obstack-printf-posix modules.
33682         * modules/obstack-printf: New file.
33683         * modules/obstack-printf-posix: Likewise.
33684         * MODULES.html.sh (Misc): Mention them.
33685         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33686         Likewise.
33687         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33688         Likewise.
33689         * modules/stdio (Makefile.am): Accomodate new modules.
33690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33691         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33692         Declare.
33693         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33694         functions.
33695         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33696         (gl_REPLACE_OBSTACK_PRINTF): New macros
33697         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33698         * tests/test-obstack-printf.c: New file.
33699         * modules/obstack-printf-tests: Likewise.
33700         * modules/obstack-printf-posix-tests: Likewise.
33701
33702 2008-06-11  Bruno Haible  <bruno@clisp.org>
33703
33704         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33705         * lib/open.c: Include errno.h.
33706         (open): Fail when attempting to write to a file that has a trailing
33707         slash.
33708         * tests/test-open.c (main): Test against trailing slash bug.
33709         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33710
33711 2008-06-10  Bruno Haible  <bruno@clisp.org>
33712
33713         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33714         for $? to work inside the trap command, with various /bin/sh-s.
33715         * tests/test-vc-list-files-cvs.sh: Likewise.
33716
33717 2008-06-10  Bruno Haible  <bruno@clisp.org>
33718
33719         * lib/acl-internal.h: Don't include gettext.h here.
33720         * lib/set-mode-acl.c: Include gettext.h here.
33721         * lib/copy-acl.c: Likewise.
33722
33723 2008-06-10  Bruno Haible  <bruno@clisp.org>
33724
33725         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33726         * lib/wait-process.c (wait_subprocess): Likewise.
33727         * lib/execute.h (execute): Add termsigp argument.
33728         * lib/execute.c (execute): Likewise.
33729         * lib/csharpcomp.c (compile_csharp_using_pnet,
33730         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33731         * lib/csharpexec.c (execute_csharp_using_pnet,
33732         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33733         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33734         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33735         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33736         is_jikes_present): Update.
33737         * lib/javaexec.c (execute_java_class): Update.
33738         * lib/javaversion.c (execute_and_read_line): Update.
33739         * NEWS: Document the changes.
33740         Reported by Eric Blake.
33741
33742 2008-06-10  Eric Blake  <ebb9@byu.net>
33743
33744         Add missing include.
33745         * tests/test-strstr.c (includes): Add <signal.h>.
33746         * tests/test-strcasestr.c (includes): Likewise.
33747         * tests/test-memmem.c (includes): Likewise.
33748
33749 2008-06-10  Bruno Haible  <bruno@clisp.org>
33750
33751         * lib/wait-process.c (wait_subprocess): Add an assertion.
33752
33753 2008-06-10  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33756
33757 2008-06-10  Bruno Haible  <bruno@clisp.org>
33758
33759         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33760         using alarm().
33761         * tests/test-strcasestr.c (main): Likewise.
33762         * tests/test-strstr.c (main): Likewise.
33763
33764 2008-06-09  Bruno Haible  <bruno@clisp.org>
33765
33766         Work around the Solaris 10 ACE ACLs ABI change.
33767         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33768         declare if ACL_NO_TRIVIAL is present.
33769         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33770         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33771         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33772         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33773         define if ACL_NO_TRIVIAL is present.
33774         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33775         and use the current ABI.
33776         (file_has_acl): Use same #if condition as elsewhere.
33777         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33778         in use, and use the current ABI.
33779         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33780         Reported by Jim Meyering.
33781
33782 2008-06-09  Eric Blake  <ebb9@byu.net>
33783
33784         Work around environments that (stupidly) ignore SIGALRM.
33785         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33786         before using alarm().
33787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33789         Reported by Ian Beckwith <ianb@erislabs.net>.
33790
33791         Produce autobuild blurb earlier in log.
33792         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33793
33794 2008-06-09  Jim Meyering  <meyering@redhat.com>
33795         and Ondřej Vašík  <ovasik@redhat.com>
33796
33797         utimens.c: correct kernel bug work-around
33798         Ondřej Vašík found that the invalid return value of 280 indicates
33799         failure, not success, and the kernel bug we're trying to work
33800         around affects not just the utimensat call, but also the fallback
33801         futimens call.
33802         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33803         not success.
33804         [HAVE_FUTIMENS]: Use the same work-around, here.
33805
33806 2008-06-09  Jim Meyering  <meyering@redhat.com>
33807
33808         add more guards around definition of ACE_-related code
33809         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33810         ALLOW and ACE_OWNER are also defined.
33811
33812 2008-06-08  Bruno Haible  <bruno@clisp.org>
33813
33814         * lib/acl-internal.h: Add me as co-author.
33815         * lib/file-has-acl.c: Likewise.
33816         * lib/set-mode-acl.c: Likewise.
33817         * lib/copy-acl.c: Likewise.
33818
33819 2008-06-08  Bruno Haible  <bruno@clisp.org>
33820
33821         Add support for AIX ACLs.
33822         * lib/acl-internal.h (acl_nontrivial): New declaration.
33823         * lib/file-has-acl.c (acl_nontrivial): New function.
33824         (file_has_acl): Add implementation using AIX 4 ACL API.
33825         * lib/set-mode-acl.c (qset_acl): Likewise.
33826         * lib/copy-acl.c (qcopy_acl): Likewise.
33827
33828 2008-06-08  Bruno Haible  <bruno@clisp.org>
33829
33830         Add support for HP-UX ACLs.
33831         * lib/acl-internal.h (acl_nontrivial): New declaration.
33832         * lib/file-has-acl.c (acl_nontrivial): New function.
33833         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33834         * lib/set-mode-acl.c (qset_acl): Likewise.
33835         * lib/copy-acl.c (qcopy_acl): Likewise.
33836
33837 2008-06-08  Bruno Haible  <bruno@clisp.org>
33838
33839         Add support for Cygwin ACLs.
33840         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33841         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33842         the chmod_or_fchmod call.
33843         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33844
33845 2008-06-08  Bruno Haible  <bruno@clisp.org>
33846
33847         Fix bug with setuid modes in Solaris 10+ code.
33848         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33849         succeeded, when the mode contains some special bits.
33850
33851 2008-06-08  Bruno Haible  <bruno@clisp.org>
33852
33853         Add support for Solaris 7..10 ACLs.
33854         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33855         declarations.
33856         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33857         functions.
33858         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33859         * lib/set-mode-acl.c (qset_acl): Likewise.
33860         * lib/copy-acl.c (qcopy_acl): Likewise.
33861
33862 2008-06-08  Bruno Haible  <bruno@clisp.org>
33863
33864         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33865         declaration.
33866         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33867         (acl_access_nontrivial): Remove MacOS X case.
33868         (file_has_acl): Use acl_extended_nontrivial.
33869         * lib/copy-acl.c (qcopy_acl): Likewise.
33870
33871 2008-06-08  Bruno Haible  <bruno@clisp.org>
33872
33873         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33874
33875 2008-06-08  Jim Meyering  <meyering@redhat.com>
33876
33877         * modules/acl (Maintainer): Add Bruno Haible.
33878
33879 2008-06-07  Bruno Haible  <bruno@clisp.org>
33880
33881         Improve support for Tru64 ACLs.
33882         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33883         ACL on OSF/1.
33884
33885 2008-06-07  Bruno Haible  <bruno@clisp.org>
33886
33887         Add support for MacOS X ACLs.
33888         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33889         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33890         * lib/set-mode-acl.c (qset_acl): Likewise.
33891         * lib/copy-acl.c (qcopy_acl): Likewise.
33892
33893 2008-06-07  Bruno Haible  <bruno@clisp.org>
33894
33895         Fix memory leak introduced on 2008-05-22.
33896         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33897         use.
33898
33899 2008-06-07  Bruno Haible  <bruno@clisp.org>
33900
33901         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33902         to construct an empty ACL.
33903
33904 2008-06-07  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33907         precisely.
33908         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33909
33910 2008-06-07  Bruno Haible  <bruno@clisp.org>
33911
33912         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33913         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33914
33915 2008-06-07  Bruno Haible  <bruno@clisp.org>
33916
33917         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33918         regardless of POSIX.
33919         * doc/posix-functions/_longjmp.texi: Likewise.
33920         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33921         SystemV platform in this case.
33922
33923 2008-06-06  Eric Blake  <ebb9@byu.net>
33924
33925         Document abort() bugs.
33926         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33927
33928         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33929         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33930         sigsetjmp.
33931         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33932         siglongjmp, but only as a macro.
33933         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33934         is obsolete.
33935         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33936
33937         Tweak documentation to cover cygwin argz bugs.
33938         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33939         argz bug fix; no code change needed since no cygwin releases
33940         occurred between the last fix and the bug being tested.
33941         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33942         module and recently fixed cygwin bugs.
33943         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33944         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33945         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33946         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33947         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33948         Likewise.
33949         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33950         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33951         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33952         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33953         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33954         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33955         Likewise.
33956
33957         Avoid gcc warning on cygwin.
33958         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33959         !ACL_NO_TRIVIAL]: Avoid unused variable.
33960
33961 2008-06-05  Eric Blake  <ebb9@byu.net>
33962
33963         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33964         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33965         git-version-gen fails to come up with a version.
33966         Reported by Simon Josefsson.
33967
33968 2008-06-05  Jim Meyering  <meyering@redhat.com>
33969             Paul Eggert  <eggert@cs.ucla.edu>
33970
33971         utimens.c: work around a probable Linux kernel bug
33972         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33973         appears to be a kernel bug that causes utimensat to return 280
33974         instead of 0, indicating success.
33975
33976 2008-06-04  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33979         2008-06-01 commit.
33980
33981 2008-06-04  Bruno Haible  <bruno@clisp.org>
33982
33983         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33984         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33985         (file_has_acl): Use it. Save errno afterwards.
33986         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33987
33988 2008-06-03  Bruno Haible  <bruno@clisp.org>
33989
33990         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33991         draft code. Simplify #ifs.
33992         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33993         Put Solaris code after POSIX-draft code. Fix comments regarding
33994         Solaris 10, HP-UX. Mention Cygwin.
33995         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33996
33997 2008-06-03  Eric Blake  <ebb9@byu.net>
33998
33999         Provide fallback for older kernels.
34000         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34001         Provide runtime fallback if kernel lacks support.
34002         Reported by Mike Frysinger.
34003
34004 2008-06-02  Bruno Haible  <bruno@clisp.org>
34005
34006         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34007         it exists.
34008
34009 2008-06-02  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34012         * lib/copy-acl.c (qcopy_acl): Update comment.
34013
34014 2008-06-02  Bruno Haible  <bruno@clisp.org>
34015
34016         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34017         like ACL APIs.
34018
34019 2008-06-02  Bruno Haible  <bruno@clisp.org>
34020
34021         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34022         * tests/test-set-mode-acl.sh: Likewise.
34023         * tests/test-copy-acl.sh: Likewise.
34024         * tests/test-copy-file.sh: Likewise.
34025
34026 2008-06-02  Bruno Haible  <bruno@clisp.org>
34027
34028         * tests/test-file-has-acl.sh: Remove unused code.
34029
34030 2008-06-01  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34033         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34034         messages.
34035         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34036
34037 2008-06-01  Bruno Haible  <bruno@clisp.org>
34038
34039         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34040         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34041         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34042         APIs.
34043         * modules/acl-tests (configure.ac): Remove tests now contained in
34044         m4/acl.m4.
34045
34046 2008-06-02  Jim Meyering  <meyering@redhat.com>
34047
34048         announce-gen: use a better key-server host name
34049         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34050         it may be more consistently reliable.  Suggested by Werner Koch
34051         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34052
34053 2008-06-01  Bruno Haible  <bruno@clisp.org>
34054
34055         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34056         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34057
34058 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34059
34060         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34061
34062 2008-06-01  Bruno Haible  <bruno@clisp.org>
34063
34064         New ACL tests.
34065         * tests/test-file-has-acl.sh: New file.
34066         * tests/test-file-has-acl.c: New file.
34067         * tests/test-set-mode-acl.sh: New file.
34068         * tests/test-set-mode-acl.c: New file.
34069         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34070         * tests/test-copy-acl.c: New file.
34071         * modules/acl-tests: New file, based on modules/copy-file-tests.
34072         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34073         (Depends-on): Add acl-tests.
34074         (configure.ac): Remove checks.
34075         (Makefile.am): Don't create test-sameacls program here any more.
34076
34077 2008-06-01  Bruno Haible  <bruno@clisp.org>
34078
34079         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34080         * tests/test-sameacls.c: Include progname.h.
34081         (main): Invoke set_program_name. Portability fixes for MacOS X,
34082         Solaris, HP-UX.
34083
34084 2008-06-01  Bruno Haible  <bruno@clisp.org>
34085
34086         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34087         function.
34088         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34089
34090 2008-06-01  Bruno Haible  <bruno@clisp.org>
34091
34092         * modules/rpmatch (Depends-on): Add strdup.
34093
34094 2008-06-01  Bruno Haible  <bruno@clisp.org>
34095
34096         * lib/pipe.c: Include unistd-safer.h.
34097         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34098         * modules/pipe (Depends-on): Add unistd-safer.
34099
34100 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34101
34102         * modules/autobuild (configure.ac): Call AB_INIT.
34103
34104 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34105
34106         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34107         Suggested by Bruno Haible <bruno@clisp.org>.
34108
34109 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34110
34111         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34112         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34113         <bruno@clisp.org>.
34114
34115 2008-05-29  Eric Blake  <ebb9@byu.net>
34116
34117         Prefer new POSIX 200x interfaces over futimesat.
34118         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34119         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34120         when available.
34121         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34122
34123 2008-05-28  Bruno Haible  <bruno@clisp.org>
34124
34125         * modules/stpcpy (License): Change to LGPLv2+.
34126         Requested by David Lutterkort <dlutter@redhat.com>.
34127
34128 2008-05-27  Bruno Haible  <bruno@clisp.org>
34129
34130         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34131         current mingw.
34132         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34133
34134 2008-05-27  Bruno Haible  <bruno@clisp.org>
34135
34136         * modules/iconv_open (Link): New section, from module 'iconv'.
34137         * modules/striconv (Link): Likewise.
34138         * modules/striconveh (Link): Likewise.
34139         * modules/xstriconv (Link): Likewise.
34140         * modules/unicodeio (Link): Likewise.
34141         * modules/propername (Link): Likewise.
34142         Reported by Jim Meyering.
34143
34144 2008-05-26  Jim Meyering  <meyering@redhat.com>
34145
34146         sha256: do not artificially restrict buffer length to be < 2^32
34147         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34148         uint32_t to size_t.
34149         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34150         to match.
34151
34152         avoid unaligned access errors, e.g., on sparc
34153         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34154         direct access through a possibly-unaligned uint64* pointer.
34155         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34156         direct access through a possibly-unaligned uint32* pointer.
34157         Prompted by this patch from Tom "spot" Callaway:
34158         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34159
34160         sha512.c: fix typo in comment
34161         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34162
34163 2008-05-25  Bruno Haible  <bruno@clisp.org>
34164
34165         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34166         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34167         (Makefile.am): Update lib_SOURCES.
34168
34169 2008-05-25  Bruno Haible  <bruno@clisp.org>
34170
34171         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34172
34173 2008-05-25  Jim Meyering  <meyering@redhat.com>
34174
34175         useless-if-before-free: freed expr may have white-space differences
34176         * build-aux/useless-if-before-free: Recognize cases in which the
34177         freed expression differs from the tested one in embedded white
34178         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34179         $1 was used, so we can't make any regexp shy.  Improved tests now
34180         detect this.
34181
34182         useless-if-before-free: accept white space in the expression.
34183         * build-aux/useless-if-before-free: For now, any white space
34184         in the expression must be identical in the free argument.
34185
34186         useless-if-before-free: efficiency tweak
34187         * build-aux/useless-if-before-free: Make the expression-matching
34188         regexp "shy".
34189         Make the *outer* regexp shy, not the expr-matching one.
34190
34191         update code-in-comment to accept cast of free arg
34192         * build-aux/useless-if-before-free: Update regexp.
34193
34194 2008-05-25  Bruno Haible  <bruno@clisp.org>
34195
34196         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34197         * modules/copy-file-tests (Files, Makefile.am): Update.
34198         * tests/test-copy-file.c (func_test_copy): Update.
34199
34200 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34201
34202         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34203
34204 2008-05-23  Bruno Haible  <bruno@clisp.org>
34205
34206         Improve support for ACLs on OSF/1.
34207         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34208         Remove fallback for unknown flavors of ACLs.
34209
34210 2008-05-22  Bruno Haible  <bruno@clisp.org>
34211
34212         Add support for ACLs on OSF/1.
34213         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34214         replacements.
34215         (acl_free_text): New macro fallback.
34216         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34217         acl_free.
34218         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34219         acl_free_text function. Require AC_C_INLINE.
34220
34221 2008-05-22  Bruno Haible  <bruno@clisp.org>
34222
34223         Make copy_acl work on MacOS X 10.5.
34224         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34225         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34226         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34227         If MODE_INSIDE_ACL, don't assume that every system has the same text
34228         representation for ACLs as FreeBSD.
34229         * lib/copy-acl.c (copy_acl): Add support for platforms with
34230         !MODE_INSIDE_ACL.
34231         * lib/file-has-acl.c (file_has_acl): Likewise.
34232         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34233         FreeBSD, MacOS X, or IRIX, respectively.
34234
34235 2008-05-22  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/acl.h: Don't include <sys/acl.h>.
34238         (GETACLCNT): Move fallback to lib/acl-internal.h.
34239         * lib/acl-internal.h: Include <sys/acl.h> here.
34240         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34241
34242 2008-05-22  Bruno Haible  <bruno@clisp.org>
34243
34244         Split off copy_acl function to separate file.
34245         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34246         * lib/acl.c (copy_acl): Moved function to separate file.
34247         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34248         * modules/acl (Files): Add lib/copy-acl.c.
34249         (Makefiles.am): Augment lib_SOURCES.
34250
34251 2008-05-22  Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/copy-file-tests: New file.
34254         * tests/test-copy-file.sh: New file.
34255         * tests/test-copy-file.c: New file.
34256         * tests/test-copy-file-sameacls.c: New file.
34257
34258 2008-05-22  Eric Blake  <ebb9@byu.net>
34259
34260         Avoid gcc warning.
34261         * tests/test-memcmp.c (main): Pass NULL indirectly.
34262
34263 2008-05-21  Bruno Haible  <bruno@clisp.org>
34264
34265         Add reference doc about ACLs.
34266         * doc/acl-resources.txt: New file.
34267         * doc/acl-cygwin.txt: New file.
34268
34269 2008-05-21  Bruno Haible  <bruno@clisp.org>
34270
34271         Avoid one more warning from gcc.
34272         * lib/vasnprintf.c (IF_LINT): Update comments.
34273         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34274
34275 2008-05-21  Jim Meyering  <meyering@redhat.com>
34276
34277         avoid a warning from gcc
34278         * lib/vasnprintf.c (IF_LINT): Define.
34279         (scale10_round_decimal_long_double):
34280         Use it to avoid a "may be used uninitialized" warning.
34281         (scale10_round_decimal_double): Likewise.
34282
34283 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34284
34285         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34286         declared.
34287
34288 2008-05-20  Bruno Haible  <bruno@clisp.org>
34289
34290         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34291         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34292
34293 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34294
34295         * modules/memcmp-tests: New file.
34296         * tests/test-memcmp.c: New file.
34297
34298 2008-05-19  Bruno Haible  <bruno@clisp.org>
34299
34300         * modules/propername (Notice, configure.ac): Put quoted "..." into
34301         --keyword option.
34302         * lib/propername.h: Update comments accordingly.
34303         Reported by Eric Blake.
34304
34305 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34306
34307         * modules/getpass-gnu (Depends-on): Add fseeko.
34308
34309 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34310
34311         * modules/base64-tests: New file.
34312
34313 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34314
34315         * lib/base64.c (base64_decode_ctx): If a decode context structure
34316         was passed in use it to ignore newlines.  If a context structure
34317         was _not_ passed in, continue to treat newlines as garbage (this
34318         is the historical behavior).  Formerly base64_decode.
34319         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34320         takes a decode context structure.
34321         * lib/base64.h (base64_decode): Macro for four-argument calls.
34322         (base64_decode_alloc): Likewise.
34323         * lib/base64.c (base64_decode_ctx): If a decode context structure
34324         was passed in use it to ignore newlines.  If a context structure
34325         was _not_ passed in, continue to treat newlines as garbage (this
34326         is the historical behavior).  Formerly base64_decode.
34327         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34328         takes a decode context structure.
34329         * lib/base64.h (base64_decode): Macro for four-argument calls.
34330         (base64_decode_alloc): Likewise.
34331
34332 2008-05-19  Jim Meyering  <meyering@redhat.com>
34333
34334         avoid a warning from gcc
34335         * lib/trim.c (IF_LINT): Define.
34336         (trim2): Use it to avoid a "may be used uninitialized" warning.
34337
34338         Fix doc typo.
34339         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34340
34341 2008-05-19  Bruno Haible  <bruno@clisp.org>
34342
34343         * doc/glibc-functions/getpass.texi: Document limits of other
34344         implementations.
34345
34346 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34347             Bruno Haible <bruno@clisp.org>
34348
34349         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34350
34351 2008-05-18  Bruno Haible  <bruno@clisp.org>
34352
34353         * modules/propername: New file, from GNU gettext.
34354         * lib/propername.h: New file, from GNU gettext.
34355         * lib/propername.c: New file, from GNU gettext.
34356         * MODULES.html.sh (Internationalization functions): Add propername.
34357
34358 2008-05-16  Jim Meyering  <meyering@redhat.com>
34359             Bruno Haible  <bruno@clisp.org>
34360
34361         Avoid some warnings from "gcc -Wshadow".
34362         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34363
34364 2008-05-15  Eric Blake  <ebb9@byu.net>
34365
34366         Extend previous patch to cygwin 1.7.0.
34367         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34368         fast implementation in cygwin >= 1.7.0.
34369         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34371
34372 2008-05-15  Bruno Haible  <bruno@clisp.org>
34373
34374         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34375         implementation in glibc >= 2.9.
34376         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34378
34379 2008-05-15  Bruno Haible  <bruno@clisp.org>
34380
34381         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34382         (Unicode string functions): Add unilbrk/*.
34383         Reported by Karl Berry.
34384
34385 2008-05-15  Eric Blake  <ebb9@byu.net>
34386
34387         Fix violation of <stdbool.h> replacement in regex.
34388         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34389         * lib/regexec.c (re_search_internal): Likewise.
34390         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34391
34392 2008-05-15  Jim Meyering  <meyering@redhat.com>
34393
34394         avoid distracting test output when git or cvs is not found
34395         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34396         * tests/test-vc-list-files-git.sh: Likewise.
34397
34398 2008-05-15  Eric Blake  <ebb9@byu.net>
34399
34400         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34401         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34402         glibc version.
34403         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34404         * doc/posix-functions/strstr.texi (strstr): Likewise.
34405         * lib/str-two-way.h (MAX): Sychronize with glibc.
34406
34407 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34408
34409         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34410         opr.ctx_type.
34411         (calc_first): Initialize constraint field.
34412         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34413         Fix grammar.
34414         (duplicate_node): Merge constraint field for all node types.
34415         (calc_eclosure_iter): Look at constraint field for all node types.
34416         * lib/regex_internal.c (create_cd_newstate): Don't look at
34417         opr.ctx_type.
34418
34419 2008-05-14  Bruno Haible  <bruno@clisp.org>
34420
34421         Help GCC to do better code generation.
34422         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34423         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34424         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34425         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34426         Declare with attribute 'malloc' if supported.
34427
34428 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34429
34430         use "echo STR|wc -c" rather than unportable "expr length STR"
34431         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34432         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34433
34434 2008-05-14  Jim Meyering  <meyering@redhat.com>
34435
34436         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34437         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34438         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34439         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34440         via Collin Lasse.
34441
34442 2008-05-14  Eric Blake  <ebb9@byu.net>
34443
34444         Avoid quadratic growth in gl_LIBSOURCES.
34445         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34446         Suggested by Bruno Haible.
34447
34448         Test xmemdup0.
34449         * modules/xmemdup0-tests: New file.
34450         * tests/test-xmemdup0.c: Likewise.
34451
34452 2008-05-13  Eric Blake  <ebb9@byu.net>
34453
34454         Split xmemdup0 into its own module.
34455         * modules/xmemdup0: New file.
34456         * lib/xmemdup0.h: Likewise.
34457         * lib/xmemdup0.c: Likewise.
34458         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34459         * lib/xalloc.h (xmemdup0): Remove.
34460         * lib/xmalloc.c (xmemdup0): Likewise.
34461
34462 2008-05-13  Eric Blake  <ebb9@byu.net>
34463             Bruno Haible  <bruno@clisp.org>
34464
34465         Reduce number of forks required during autoconf.
34466         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34467         and gl_LIBSOURCES_DIR.
34468         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34469         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34470         m4_syscmd per file.
34471         <m4_foreach_w>: Move...
34472         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34473
34474 2008-05-13  Eric Blake  <ebb9@byu.net>
34475
34476         * gnulib-tool: Fix various comment typos.
34477
34478 2008-05-12  Bruno Haible  <bruno@clisp.org>
34479
34480         Tailor the linebreaking algorithm.
34481         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34482
34483 2008-05-12  Bruno Haible  <bruno@clisp.org>
34484
34485         Update to Unicode 5.0.0.
34486         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34487         LBP_JV, LBP_JT. Redistribute values.
34488         (unilbrk_table): Change size.
34489         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34490         Unicode TR#14 rev. 22.
34491         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34492         LBP_JV, LBP_JT. Redistribute values.
34493         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34494         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34495         Update.
34496         * lib/unilbrk/lbrkprop1.h: Regenerated.
34497         * lib/unilbrk/lbrkprop2.h: Regenerated.
34498         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34499         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34500         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34501         Likewise.
34502         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34503         Likewise.
34504         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34505         result.
34506         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34507         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34508         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34509         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34510         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34511         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34512
34513 2008-05-11  Bruno Haible  <bruno@clisp.org>
34514
34515         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34516
34517 2008-05-11  Bruno Haible  <bruno@clisp.org>
34518
34519         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34520         * modules/unilbrk/gen-lbrk: New file.
34521
34522 2008-05-11  Bruno Haible  <bruno@clisp.org>
34523
34524         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34525         * m4/sha512.m4 (gl_SHA512): Likewise.
34526
34527 2008-05-11  Jim Meyering  <meyering@redhat.com>
34528
34529         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34530         * modules/crypto/sha256: New file.
34531         * modules/crypto/sha512: Likewise.
34532         * lib/sha256.c: Likewise.
34533         * lib/sha256.h: Likewise.
34534         * lib/sha512.c: Likewise.
34535         * lib/sha512.h: Likewise.
34536         * lib/u64.h: Likewise.
34537         * m4/sha256.m4: Likewise.
34538         * m4/sha512.m4: Likewise.
34539         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34540
34541 2008-05-10  Bruno Haible  <bruno@clisp.org>
34542
34543         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34544         (Input/Output <stdio.h>): Add xprintf.
34545         (Signal handling <signal.h>): Add strsignal.
34546         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34547         (Core language properties): Add func.
34548         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34549         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34550         strings.
34551         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34552         (Input/output): New section.
34553         (File system functions): Add openat-die, stat-macros.
34554         (Networking functions): Add sockets.
34555         (Unicode string functions): Add unictype/*.
34556         (Support for building libraries and executables): Add gperf.
34557         (Support for building documentation): Add agpl-3.0.
34558         (Misc): Add nocrash.
34559
34560 2008-05-10  Bruno Haible  <bruno@clisp.org>
34561
34562         * modules/unictype/gen-ctype: New file.
34563
34564 2008-05-10  Jim Meyering  <meyering@redhat.com>
34565
34566         Make chdir-safer.c more efficient on a system with no symlinks.
34567         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34568         also if ELOOP is zero.  Suggested by Bruno Haible.
34569
34570         Make chdir-safer.c slightly safer.
34571         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34572         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34573
34574         Avoid compile failure on systems without ELOOP (like mingw).
34575         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34576         Reported by Bruno Haible.
34577
34578 2008-05-10  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34581         (is_utf8_encoding): Use a case-insensitive comparison.
34582         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34583         streq.
34584
34585 2008-05-10  Bruno Haible  <bruno@clisp.org>
34586
34587         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34588         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34589         * lib/unilbrk/ulc-common.h (iconv_string_length,
34590         iconv_string_keeping_offsets): Remove declarations.
34591         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34592         Don't include <iconv.h>, streq.h, xsize.h.
34593         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34594         conversion.
34595         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34596         <iconv.h>, streq.h, xsize.h.
34597         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34598         conversion.
34599         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34600         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34601         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34602         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34603
34604 2008-05-10  Bruno Haible  <bruno@clisp.org>
34605
34606         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34607         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34608
34609         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34610         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34611
34612         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34613         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34614
34615         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34616         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34617
34618         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34619         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34620
34621         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34622         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34623
34624         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34625         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34626
34627         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34628         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34629
34630 2008-05-10  Bruno Haible  <bruno@clisp.org>
34631
34632         Split up 'linebreak' module.
34633         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34634         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34635         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34636         modifications.
34637         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34638         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34639         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34640         lib/linebreak.c.
34641         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34642         lib/linebreak.c.
34643         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34644         lib/linebreak.c.
34645         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34646         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34647         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34648         lib/linebreak.c.
34649         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34650         lib/linebreak.c.
34651         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34652         lib/linebreak.c.
34653         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34654         lib/linebreak.c.
34655         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34656         lib/linebreak.c.
34657         * modules/unilbrk/base: New file.
34658         * modules/unilbrk/tables: New file.
34659         * modules/unilbrk/u8-possible-linebreaks: New file.
34660         * modules/unilbrk/u16-possible-linebreaks: New file.
34661         * modules/unilbrk/u32-possible-linebreaks: New file.
34662         * modules/unilbrk/ulc-common: New file.
34663         * modules/unilbrk/ulc-possible-linebreaks: New file.
34664         * modules/unilbrk/u8-width-linebreaks: New file.
34665         * modules/unilbrk/u16-width-linebreaks: New file.
34666         * modules/unilbrk/u32-width-linebreaks: New file.
34667         * modules/unilbrk/ulc-width-linebreaks: New file.
34668         * lib/linebreak.h: Remove file.
34669         * lib/linebreak.c: Remove file.
34670         * m4/linebreak.m4: Remove file.
34671         * modules/linebreak: Remove file.
34672         * NEWS: Mention the changes.
34673
34674 2008-05-09  Eric Blake  <ebb9@byu.net>
34675
34676         Add xmemdup0.
34677         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34678         implementation.
34679         * lib/xmalloc.c (xmemdup0): New C implementation.
34680
34681 2008-05-08  Bruno Haible  <bruno@clisp.org>
34682
34683         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34684
34685 2008-05-07  Eric Blake  <ebb9@byu.net>
34686
34687         Support cross-compilation of <wctype.h>.
34688         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34689         AC_CACHE_CHECK.
34690
34691 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34692
34693         * build-aux/vc-list-files: Add support for bzr.
34694
34695 2008-05-03  Jim Meyering  <meyering@redhat.com>
34696
34697         avoid failed assertion with tight malloc
34698         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34699
34700 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34701
34702         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34703         are needed from arpa/inet.h.
34704         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34705         Reported by Bruno Haible.
34706
34707 2008-05-02  Jim Meyering  <meyering@redhat.com>
34708
34709         avoid compilation error on FreeBSD 6
34710         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34711
34712 2008-05-01  Jim Meyering  <meyering@redhat.com>
34713
34714         useless-if-before-free: correct --help's exit status description
34715         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34716         for one or more matches, etc.  Reported by Bruno Haible.
34717
34718         vc-list-files: make the stand-alone gnulib test work
34719         * modules/vc-list-files-tests (configure.ac):
34720         Define and AC_SUBST abs_aux_dir.
34721         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34722         $(abs_top_srcdir) to each script and having each of them
34723         duplicate the work of setting PATH, set PATH here, using
34724         the new variable, abs_aux_dir instead.
34725         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34726         * tests/test-vc-list-files-git.sh: Likewise.
34727         Reported by Bruno Haible.
34728
34729 2008-05-01  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34732         reallocation. Rename 'done' to 'found_delimiter'.
34733
34734 2008-05-01  Jim Meyering  <meyering@redhat.com>
34735
34736         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34737         * build-aux/vc-list-files: Use `...`, not $(...).
34738
34739 2008-04-30  Jim Meyering  <meyering@redhat.com>
34740
34741         add tests for vc-list-files
34742         * modules/vc-list-files-tests: New module.
34743         * tests/test-vc-list-files-cvs.sh: New file.
34744         * tests/test-vc-list-files-git.sh: New file.
34745
34746         avoid a warning from gcc
34747         * lib/getndelim2.c (IF_LINT): Define.
34748         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34749
34750         vc-list-files: work properly with build-aux/cvsu, too
34751         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34752         to all cvs-based clauses.
34753
34754         vc-list-files: work properly in the CVS+awk case, too
34755         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34756
34757         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34758         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34759         take more than one file argument, so .  Add quotes, just in case $dir
34760         ever contains a shell meta-character.  Prompted by Soren Hansen in
34761         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34762
34763 2008-04-29  Eric Blake  <ebb9@byu.net>
34764
34765         Optimize getndelim2 to use block operations when possible.
34766         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34767         freadseek, and memchr2.
34768         * lib/getndelim2.c (getndelim2): Use them for block reads.
34769
34770 2008-04-29  Bruno Haible  <bruno@clisp.org>
34771
34772         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34773         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34774         * modules/inet_ntop (Depends-on): Add extensions.
34775         * modules/inet_pton (Depends-on): Likewise.
34776         Reported by Simon Josefsson.
34777
34778 2008-04-29  Jim Meyering  <meyering@redhat.com>
34779
34780         When the is more than one match in a block, match all of them.
34781         * build-aux/useless-if-before-free: Iterate through each block
34782         until there are no more matches.
34783
34784         Fix broken useless-if-before-free script.
34785         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34786         the expression to match cast of argument to free-like function.
34787
34788 2008-04-29  Eric Blake  <ebb9@byu.net>
34789
34790         Use new header.
34791         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34792
34793 2008-04-29  Jim Meyering  <meyering@redhat.com>
34794
34795         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34796         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34797         by gnulib to exist and to declare e.g., inet_ntop.
34798         Don't include "inet_ntop.h", now removed.
34799
34800         * m4/arpa_inet_h.m4: Remove trailing blanks.
34801
34802 2008-04-29  Eric Blake  <ebb9@byu.net>
34803
34804         Silence valgrind on safe reads beyond potential array bounds.
34805         * lib/rawmemchr.valgrind: New file.
34806         * lib/strchrnul.valgrind: Likewise.
34807         * modules/rawmemchr (Files): Distribute new file.
34808         * modules/strchrnul (Files): Likewise.
34809         Suggested by Bruno Haible.
34810
34811 2008-04-29  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34814         (inet_ntop, inet_pton): Change portability warning's wording.
34815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34816         Invoke gl_CHECK_NEXT_HEADERS.
34817         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34818         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34819         set ARPA_INET_H.
34820         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34821         * modules/arpa_inet (Description): No longer only for systems that
34822         lack it.
34823         (Depends-on): Add include_next.
34824         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34825         HAVE_ARPA_INET_H.
34826
34827 2008-04-29  Jim Meyering  <meyering@redhat.com>
34828
34829         * modules/mkdir (License): Re-license as LGPLv2+.
34830
34831 2008-04-29  Bruno Haible  <bruno@clisp.org>
34832
34833         * modules/rawmemchr (Maintainer): Set to Eric.
34834         * modules/strchrnul (Maintainer): Likewise.
34835
34836 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34837
34838         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34839         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34840
34841         * modules/arpa_inet (arpa/inet.h): Use them.
34842
34843 2008-04-28  Eric Blake  <ebb9@byu.net>
34844
34845         Test getndelim2.
34846         * modules/getndelim2-tests: New file.
34847         * tests/test-getndelim2.c: Likewise.
34848         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34849         stream.
34850         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34851
34852         * MODULES.html.sh: Document new module.
34853
34854 2008-04-20  Bruno Haible  <bruno@clisp.org>
34855
34856         * lib/c-stack.c (die): Use raise.
34857         * modules/c-stack (Depends-on): Add raise.
34858
34859 2008-04-28  Bruno Haible  <bruno@clisp.org>
34860
34861         Expect rpmatch to be declared.
34862         * lib/yesno.c (rpmatch): Remove declaration.
34863
34864         Declare rpmatch.
34865         * lib/stdlib.in.h (rpmatch): New declaration.
34866         * lib/rpmatch.c: Include <stdlib.h> first.
34867         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34868         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34870         HAVE_RPMATCH.
34871         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34873         (Include): Set to <stdlib.h>.
34874         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34875         HAVE_RPMATCH.
34876         * NEWS: Document the change.
34877
34878 2008-04-28  Bruno Haible  <bruno@clisp.org>
34879
34880         Change rpmatch to use nl_langinfo when appropriate.
34881         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34882         (N_): New macro.
34883         (localized_pattern): New function/macro.
34884         (try): Remove match, nomatch arguments. Copy the pattern into safe
34885         memory before caching it.
34886         (rpmatch): Use localized_pattern. Add translator comments.
34887         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34888         Suggested by Eric Blake.
34889         * modules/rpmatch (Depends-on): Add stdbool.
34890
34891 2008-04-28  Eric Blake  <ebb9@byu.net>
34892
34893         Add rawmemchr module, matching glibc.
34894         * modules/string (Makefile.am): New indicator.
34895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34896         * lib/string.in.h (rawmemchr): Declare when appropriate.
34897         * modules/rawmemchr: New file.
34898         * m4/rawmemchr.m4: Likewise.
34899         * lib/rawmemchr.c: Likewise.
34900         * modules/rawmemchr-tests: Likewise.
34901         * tests/test-rawmemchr.c: Likewise.
34902         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34903         module.
34904         * modules/strchrnul (Depends-on): Add rawmemchr.
34905         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34906
34907         Whitespace cleanup.
34908         * tests/test-strchrnul.c: Reindent.
34909         * lib/strchrnul.c: Likewise.
34910
34911         Optimize and test strchrnul.
34912         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34913         * modules/strchrnul-tests: New file.
34914         * tests/test-strchrnul.c: Likewise.
34915
34916         Remove intprops dependency.
34917         * modules/memchr (Depends-on): Remove intprops.
34918         * modules/memrchr (Depends-on): Likewise.
34919         * modules/memchr2 (Depends-on): Likewise.
34920         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34921         * lib/memrchr.c (__memrchr): Likewise.
34922         * lib/memrchr2.c (memchr2): Likewise.
34923         Reported by Simon Josefsson.
34924
34925 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34926
34927         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34928         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34929
34930 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34931
34932         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34933
34934         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34935
34936         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34937
34938         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34939         declarations.
34940         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34941
34942         * m4/inet_pton.m4: Don't check for header files.
34943
34944         * m4/inet_ntop.m4: Don't check for header files.
34945
34946 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34947
34948         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34949         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34950         trigger for cygwin).
34951         Reported by Bruno Haible  <bruno@clisp.org>.
34952
34953 2008-04-28  Bruno Haible  <bruno@clisp.org>
34954
34955         * doc/posix-functions/strdup.texi: Mention mingw problem.
34956
34957 2008-04-27  Bruno Haible  <bruno@clisp.org>
34958
34959         * modules/stat-time-tests (Depends-on): Add sleep.
34960         * tests/test-stat-time.c (force_unlink): New function.
34961         (cleanup): Use it.
34962         (test_mtime): Remove the ctime related tests.
34963         (test_ctime): New function, containing the ctime related tests.
34964         (main): Call test_ctime, except on native Windows platforms.
34965
34966 2008-04-27  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/rpmatch.c (rpmatch): Add some comments.
34969         Reported by James Youngman <jay@gnu.org>.
34970
34971 2008-04-27  Bruno Haible  <bruno@clisp.org>
34972
34973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34974         quiet NaNs.
34975
34976 2008-04-27  Bruno Haible  <bruno@clisp.org>
34977
34978         Make test-yesno.sh work on mingw.
34979         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34980         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34981         (main): Set stdin to binary mode.
34982         * modules/yesno-tests (Depends-on): Add binary-io.
34983
34984 2008-04-27  Bruno Haible  <bruno@clisp.org>
34985
34986         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34987         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34988         argument that lie outside the IEEE 854 domain.
34989         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34990         (gl_ISFINITE): Use it.
34991         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34992
34993 2008-04-27  Bruno Haible  <bruno@clisp.org>
34994
34995         Allow local renaming in config.h.
34996         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34997
34998 2008-04-27  Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/memchr.c (__memchr): Change type of 'i'.
35001         * lib/memchr2.c (memchr2): Likewise.
35002
35003 2008-04-26  Eric Blake  <ebb9@byu.net>
35004         and Bruno Haible  <bruno@clisp.org>
35005
35006         Optimize and test memrchr.
35007         * modules/memrchr (Depends-on): Add intprops.
35008         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35009         * modules/memrchr-tests: New file.
35010         * tests/test-memrchr.c: New file.
35011
35012 2008-04-26  Bruno Haible  <bruno@clisp.org>
35013
35014         Add tentative support for DragonFly BSD.
35015         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35016         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35017         fp.
35018         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35019         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35020         * lib/fpurge.c (fpurge): Likewise.
35021         * lib/freadable.c (freaadable): Likewise.
35022         * lib/freadahead.c (freadahead): Likewise.
35023         * lib/freading.c (freading): Likewise.
35024         * lib/freadptr.c (freadptr): Likewise.
35025         * lib/freadseek.c (freadptrinc): Likewise.
35026         * lib/fseeko.c (fseeko): Likewise.
35027         * lib/fseterr.c (fseterr): Likewise.
35028         * lib/fwritable.c (fwritable): Likewise.
35029         * lib/fwriting.c (fwriting): Likewise.
35030
35031 2008-04-26  Bruno Haible  <bruno@clisp.org>
35032
35033         * lib/stdio-impl.h: New file.
35034         * lib/fbufmode.c: Include stdio-impl.h.
35035         (fbufmode): Use fp_, remove redundant #defines.
35036         * lib/fflush.c: Include stdio-impl.h.
35037         (clear_ungetc_buffer): Remove redundant #defines.
35038         * lib/fpurge.c: Include stdio-impl.h.
35039         (fpurge): Remove redundant #defines.
35040         * lib/freadable.c: Include stdio-impl.h.
35041         (freadable): Remove redundant #defines.
35042         * lib/freadahead.c: Include stdio-impl.h.
35043         (freadahead): Remove redundant #defines.
35044         * lib/freading.c: Include stdio-impl.h.
35045         (freading): Remove redundant #defines.
35046         * lib/freadptr.c: Include stdio-impl.h.
35047         (freadptr): Remove redundant #defines.
35048         * lib/freadseek.c: Include stdio-impl.h.
35049         (freadptrinc): Remove redundant #defines.
35050         * lib/fseeko.c: Include stdio-impl.h.
35051         (rpl_fseeko): Remove redundant #defines.
35052         * lib/fseterr.c: Include stdio-impl.h.
35053         (fseterr): Remove redundant #defines.
35054         * lib/fwritable.c: Include stdio-impl.h.
35055         (fwritable: Remove redundant #defines.
35056         * lib/fwriting.c: Include stdio-impl.h.
35057         (fwriting): Remove redundant #defines.
35058         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35059         * modules/fflush (Files): Likewise.
35060         * modules/fpurge (Files): Likewise.
35061         * modules/freadable (Files): Likewise.
35062         * modules/freadahead (Files): Likewise.
35063         * modules/freading (Files): Likewise.
35064         * modules/freadptr (Files): Likewise.
35065         * modules/freadseek (Files): Likewise.
35066         * modules/fseeko (Files): Likewise.
35067         * modules/fseterr (Files): Likewise.
35068         * modules/fwritable (Files): Likewise.
35069         * modules/fwriting (Files): Likewise.
35070
35071 2008-04-26  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35074         restore_seek_optimization, update_fpos_cache): New functions, extracted
35075         from rpl_fflush.
35076         (rpl_fflush): Use them.
35077         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35078         (gl_REPLACE_FFLUSH): Use it.
35079
35080 2008-04-26  Bruno Haible  <bruno@clisp.org>
35081
35082         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35083         on Solaris.
35084         * tests/test-xstrtoimax.sh: Likewise.
35085         * tests/test-xstrtoumax.sh: Likewise.
35086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35087
35088 2008-04-26  Bruno Haible  <bruno@clisp.org>
35089
35090         * modules/memchr-tests: New file.
35091         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35092
35093 2008-04-26  Eric Blake  <ebb9@byu.net>
35094             Bruno Haible  <bruno@clisp.org>
35095
35096         * lib/memchr.c: Include intprops.h.
35097         (__memchr): Optimize parallel detection of matching bytes. Rename local
35098         variables. Add explanatory comments.
35099
35100 2008-04-26  Bruno Haible  <bruno@clisp.org>
35101
35102         Fix module 'memchr', broken since 2000-10-28.
35103         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35104
35105 2008-04-26  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35108         comments.
35109
35110 2008-04-25  Eric Blake  <ebb9@byu.net>
35111
35112         Use native fstatat on cygwin 1.7.0.
35113         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35114         first.
35115
35116 2008-04-23  Eric Blake  <ebb9@byu.net>
35117
35118         Improve memchr2 performance.
35119         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35120         NUL bytes.
35121         * modules/memchr2 (Depends-on): Use intprops.h.
35122
35123 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35124
35125         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35126         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35127         <blp@cs.stanford.edu>.
35128
35129 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35130
35131         * lib/arpa_inet.in.h: New file.
35132
35133         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35134         (Makefile.am): Sed in substitute header file.
35135
35136         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35137         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35138
35139         * modules/inet_ntop (configure.ac): Use
35140         gl_ARPA_INET_MODULE_INDICATOR.
35141
35142         * modules/inet_pton (configure.ac): Use
35143         gl_ARPA_INET_MODULE_INDICATOR.
35144
35145 2008-04-22  Jim Meyering  <meyering@redhat.com>
35146
35147         * modules/verify (License): Re-license as LGPLv2+.
35148
35149 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35150
35151         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35152         parameter to void* as per POSIX standard (MinGW uses char*).
35153
35154 2008-04-21  Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35157         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35158         Define to replacements if REPLACE_ISWCNTRL is 1.
35159         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35160         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35161         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35162         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35163         what it fixes.
35164         * doc/posix-functions/iswalpha.texi: Likewise.
35165         * doc/posix-functions/iswblank.texi: Likewise.
35166         * doc/posix-functions/iswcntrl.texi: Likewise.
35167         * doc/posix-functions/iswdigit.texi: Likewise.
35168         * doc/posix-functions/iswgraph.texi: Likewise.
35169         * doc/posix-functions/iswlower.texi: Likewise.
35170         * doc/posix-functions/iswprint.texi: Likewise.
35171         * doc/posix-functions/iswpunct.texi: Likewise.
35172         * doc/posix-functions/iswspace.texi: Likewise.
35173         * doc/posix-functions/iswupper.texi: Likewise.
35174         * doc/posix-functions/iswxdigit.texi: Likewise.
35175         Reported by Alain Guibert.
35176
35177 2008-04-21  Bruno Haible  <bruno@clisp.org>
35178
35179         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35180         Patch by Alain Guibert.
35181
35182 2008-04-21  Bruno Haible  <bruno@clisp.org>
35183
35184         Fix test failures on mingw.
35185         * tests/test-xstrtol.c (print_no_progname): New function.
35186         (main): Install it in error_print_progname hook.
35187         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35188         * tests/test-xstrtoimax.sh: Likewise.
35189         * tests/test-xstrtoumax.sh: Likewise.
35190
35191 2008-04-21  Bruno Haible  <bruno@clisp.org>
35192
35193         Fix test failure on mingw.
35194         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35195
35196 2008-04-21  Bruno Haible  <bruno@clisp.org>
35197
35198         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35199         Actually assign a value.
35200
35201 2008-04-20  Bruno Haible  <bruno@clisp.org>
35202
35203         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35204         take 2.
35205         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35206         'canonicalize-lgpl' module is also used.
35207         * lib/canonicalize-lgpl.c: Undo last change.
35208         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35209
35210 2008-04-20  Bruno Haible  <bruno@clisp.org>
35211
35212         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35213         config.h. Provide _mkdir based fallback for mingw.
35214         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35215         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35216         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35217         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35218         rather than defining mkdir in config.h.
35219         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35220         (gl_SYS_STAT_H_DEFAULTS): New macro.
35221         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35222         HAVE_IO_H any more.
35223         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35224         HAVE_DECL_MKDIR and HAVE_IO_H.
35225
35226 2008-04-20  Bruno Haible  <bruno@clisp.org>
35227
35228         * lib/isapipe.c: Port to native Windows platforms.
35229
35230 2008-04-20  Bruno Haible  <bruno@clisp.org>
35231
35232         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35233
35234 2008-04-21  Eric Blake  <ebb9@byu.net>
35235
35236         Work around preprocessors that don't handle UINTMAX_MAX.
35237         * lib/memchr2.c (memchr2): Avoid embedded #if.
35238         Reported by Alain Guibert, fix suggested by Bruno Haible.
35239
35240 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35241
35242         * doc/posix-functions/strftime.texi (strftime): Explain better
35243         Windows incompatibility.  Suggested by Micah Cowan
35244         <micah@cowan.name>.
35245
35246 2008-04-20  Bruno Haible  <bruno@clisp.org>
35247
35248         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35249         unistr/u8-mblen.
35250
35251 2008-04-20  Bruno Haible  <bruno@clisp.org>
35252
35253         Fix test failure on platforms with non-GNU iconv.
35254         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35255         (U_TO_U8): Use it, rather than u16_to_u8.
35256         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35257         units at the end of the input string.
35258         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35259
35260 2008-04-20  Bruno Haible  <bruno@clisp.org>
35261
35262         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35263         when the resulting length is 0.
35264         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35265
35266 2008-04-20  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35269         works.
35270         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35271
35272 2008-04-20  Bruno Haible  <bruno@clisp.org>
35273
35274         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35275         * modules/tsearch-tests (configure.ac): Test for initstate function.
35276
35277 2008-04-20  Bruno Haible  <bruno@clisp.org>
35278
35279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35280         for nlink_t if missing.
35281         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35282
35283 2008-04-19  Bruno Haible  <bruno@clisp.org>
35284
35285         Work around snprintf bug on Linux libc5.
35286         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35288         gl_SNPRINTF_SIZE1.
35289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35290         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35291         that test failed.
35292         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35293         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35294         * modules/snprintf (Files): Add m4/printf.m4.
35295         * modules/vsnprintf (Files): Likewise.
35296         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35297         * doc/posix-functions/vsnprintf.texi: Likewise.
35298
35299 2008-04-19  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35302         from 0.0058 to less than 10^-7.
35303
35304 2008-04-19  Bruno Haible  <bruno@clisp.org>
35305
35306         Fix rounding when a precision is given.
35307         * lib/vasnprintf.c (is_borderline): New function.
35308         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35309         9...9x.
35310         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35311         %e, %g.
35312         * tests/test-vasprintf-posix.c (test_function): Likewise.
35313         * tests/test-snprintf-posix.h (test_function): Likewise.
35314         * tests/test-sprintf-posix.h (test_function): Likewise.
35315         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35316         * tests/test-printf-posix.h (test_function): Likewise.
35317         * tests/test-printf-posix.output: Update.
35318         Reported by John Darrington <john@darrington.wattle.id.au> via
35319         Ben Pfaff <blp@cs.stanford.edu>.
35320
35321 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35322
35323         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35324         Suggested by Bruno Haible <bruno@clisp.org>.
35325
35326 2008-04-17  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35329         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35330         implementation.
35331         Patch by Bruce Merry <bmerry@gmail.com>.
35332
35333 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35334
35335         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35336         doesn't work under Windows.
35337
35338 2008-04-16  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35341         New macros.
35342         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35343         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35344         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35345         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35346         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35347         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35348         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35349         macros.
35350         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35351         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35352         Northern Sotho, Uighur.
35353
35354 2008-04-16  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35357         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35358         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35359         Reported by Daniel Bergström <daniel@octocode.com>.
35360
35361 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35362             Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35365         function.
35366         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35367         New functions, mostly extracted from gl_locale_name_default.
35368         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35369
35370 2008-04-16  Eric Blake  <ebb9@byu.net>
35371
35372         Adjust strtod detection to catch glibc 2.7 bug.
35373         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35374         Reported by John Gatewood Ham.
35375
35376 2008-04-16  Bruno Haible  <bruno@clisp.org>
35377
35378         Add tentative support for Linux libc5.
35379         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35380         * lib/fpurge.c (fpurge): Likewise.
35381         * lib/freadable.c (freadable): Likewise.
35382         * lib/freadahead.c (freadahead): Likewise.
35383         * lib/freading.c (freading): Likewise.
35384         * lib/freadptr.c (freadptr): Likewise.
35385         * lib/freadseek.c (freadptrinc): Likewise.
35386         * lib/fseeko.c (rpl_fseeko): Likewise.
35387         * lib/fseterr.c (fseterr): Likewise.
35388         * lib/fwritable.c (fwritable): Likewise.
35389         * lib/fwriting.c (fwriting): Likewise.
35390         Reported by Alain Guibert <alguibert+bts@free.fr>.
35391
35392 2008-04-15  Bruno Haible  <bruno@clisp.org>
35393
35394         * modules/mathl (configure.ac): Define module indicator.
35395
35396 2008-04-15  Bruno Haible  <bruno@clisp.org>
35397
35398         * lib/logl.c (logl): Remove unused variables.
35399
35400 2008-04-15  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35403         fails.
35404
35405 2008-04-15  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/trim.c (trim2): Fix argument of isspace() macro.
35408
35409 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35410
35411         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35412         to 0.
35413         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35414
35415 2008-04-14  Bruno Haible  <bruno@clisp.org>
35416
35417         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35418         AC_LANG_PROGRAM argument.
35419         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35420         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35422         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35423         * m4/math_h.m4 (gl_MATH_H): Likewise.
35424         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35426         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35427         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35428         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35429         * m4/regex.m4 (gl_REGEX): Likewise.
35430         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35431         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35433         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35435         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35438
35439 2008-04-14  Jim Meyering  <meyering@redhat.com>
35440
35441         test-strtod: fix typos: s/abs/fabs/
35442         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35443
35444 2008-04-13  Bruno Haible  <bruno@clisp.org>
35445
35446         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35447         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35448         module is also used and while not building the reloc-wrapper.
35449
35450 2008-04-13  Bruno Haible  <bruno@clisp.org>
35451
35452         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35453
35454 2008-04-13  Bruno Haible  <bruno@clisp.org>
35455
35456         Fix AIX compilation failure introduced on 2008-04-02.
35457         * tests/test-frexp.c (exp): Undefine before redefining.
35458         * tests/test-frexpl.c (exp): Likewise.
35459
35460 2008-04-13  Bruno Haible  <bruno@clisp.org>
35461
35462         Work around a HP-UX stdio bug.
35463         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35464         * tests/test-ftello.c (main): Likewise.
35465         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35466         * doc/posix-functions/ftello.texi: Likewise.
35467
35468 2008-04-13  Bruno Haible  <bruno@clisp.org>
35469
35470         Make test-signbit pass on HP-UX/hppa.
35471         * tests/test-signbit.c (minus_zerol): New variable.
35472         (test_signbitl): Use it.
35473
35474 2008-04-13  Bruno Haible  <bruno@clisp.org>
35475
35476         Make truncl work on OSF/1 4.0.
35477         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35478         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35479         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35481         HAVE_DECL_TRUNCL.
35482         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35483         HAVE_DECL_TRUNCL.
35484         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35485
35486 2008-04-13  Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35489
35490 2008-04-13  Bruno Haible  <bruno@clisp.org>
35491
35492         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35493         expression, so as to avoid HP-UX 11 cc compiler bug.
35494
35495 2008-04-13  Bruno Haible  <bruno@clisp.org>
35496
35497         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35498
35499 2008-04-13  Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/git-merge-changelog.c: Remove empty declaration outside of
35502         functions.
35503
35504 2008-04-13  Bruno Haible  <bruno@clisp.org>
35505
35506         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35507
35508 2008-04-13  Bruno Haible  <bruno@clisp.org>
35509
35510         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35511         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35513         also if it exists but lacks definitions of the SHUT_* macros.
35514         * modules/sys_socket (Description): Update.
35515         Reported by Elbert Pol <e.pol@chello.nl>.
35516
35517 2008-04-13  Bruno Haible  <bruno@clisp.org>
35518
35519         * lib/localcharset.c (OS2): Don't redefine if already defined.
35520         Reported by Elbert Pol <e.pol@chello.nl>.
35521
35522 2008-04-13  Bruno Haible  <bruno@clisp.org>
35523
35524         * lib/binary-io.h [__EMX__]: Include <io.h>.
35525         Reported by Elbert Pol <e.pol@chello.nl>.
35526
35527 2008-04-12  Bruno Haible  <bruno@clisp.org>
35528
35529         * lib/fpucw.h: Enable the definitions also for x86_64.
35530         Needed for NetBSD/x86_64.
35531         Reported by Thomas Klausner <tk@giga.or.at>.
35532
35533 2008-04-12  Bruno Haible  <bruno@clisp.org>
35534
35535         * tests/test-strtod.c: Include isnand.h.
35536         (main): Use isnand instead of isnan.
35537         Reported by Jim Meyering.
35538
35539 2008-04-12  Bruno Haible  <bruno@clisp.org>
35540
35541         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35542         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35543
35544 2008-04-12  Jim Meyering  <meyering@redhat.com>
35545
35546         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35547
35548 2008-04-12  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35551         Reported by Elbert Pol <e.pol@chello.nl>.
35552
35553 2008-04-12  Eric Blake  <ebb9@byu.net>
35554
35555         Work around Solaris 10 math.h bug.
35556         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35557         (gl_MATH_H_DEFAULTS): Set up default.
35558         * modules/math (Makefile.am): Replace new indicators.
35559         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35560         * tests/test-math.c (main): Test this.
35561         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35562         * doc/posix-headers/math.texi (math.h): Mention bug.
35563         Reported by Nelson H. F. Beebe and Jim Meyering.
35564
35565 2008-04-11  Bruno Haible  <bruno@clisp.org>
35566
35567         Adapt to future versions of Apple GCC.
35568         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35569         Reported by Peter O'Gorman <peter@pogma.com>.
35570
35571 2008-04-11  Bruno Haible  <bruno@clisp.org>
35572
35573         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35574
35575 2008-04-11  Bruno Haible  <bruno@clisp.org>
35576
35577         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35578
35579         * modules/getaddrinfo-tests (Makefile.am): Define
35580         test_getaddrinfo_LDADD.
35581
35582 2008-04-11  Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35585         (init): Fix syntax error.
35586         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35587         is declared.
35588
35589 2008-04-11  Bruno Haible  <bruno@clisp.org>
35590
35591         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35592         * modules/glob (Depends-on): Add stdbool.
35593
35594 2008-04-11  Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/trim.c: Include <string.h>.
35597
35598 2008-04-11  Eric Blake  <ebb9@byu.net>
35599
35600         Avoid compile failure on OS/2.
35601         * lib/regex_internal.h (internal_function): Disable optimization
35602         on OS/2 (__EMX__), where it caused compiler error.
35603         Reported by Elbert Pol.
35604
35605 2008-04-11  Bruno Haible  <bruno@clisp.org>
35606
35607         Flush the standard error stream before aborting. Needed on mingw.
35608         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35609         * tests/test-array_list.c (ASSERT): Likewise.
35610         * tests/test-array_oset.c (ASSERT): Likewise.
35611         * tests/test-avltree_list.c (ASSERT): Likewise.
35612         * tests/test-avltree_oset.c (ASSERT): Likewise.
35613         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35614         * tests/test-binary-io.c (ASSERT): Likewise.
35615         * tests/test-byteswap.c (ASSERT): Likewise.
35616         * tests/test-c-ctype.c (ASSERT): Likewise.
35617         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35618         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35619         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35620         * tests/test-c-strstr.c (ASSERT): Likewise.
35621         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35622         * tests/test-canonicalize.c (ASSERT): Likewise.
35623         * tests/test-carray_list.c (ASSERT): Likewise.
35624         * tests/test-ceilf1.c (ASSERT): Likewise.
35625         * tests/test-ceilf2.c (ASSERT): Likewise.
35626         * tests/test-ceill.c (ASSERT): Likewise.
35627         * tests/test-count-one-bits.c (ASSERT): Likewise.
35628         * tests/test-fbufmode.c (ASSERT): Likewise.
35629         * tests/test-fflush2.c (ASSERT): Likewise.
35630         * tests/test-floorf1.c (ASSERT): Likewise.
35631         * tests/test-floorf2.c (ASSERT): Likewise.
35632         * tests/test-floorl.c (ASSERT): Likewise.
35633         * tests/test-fopen.c (ASSERT): Likewise.
35634         * tests/test-fpending.c (ASSERT): Likewise.
35635         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35636         * tests/test-fpurge.c (ASSERT): Likewise.
35637         * tests/test-freadable.c (ASSERT): Likewise.
35638         * tests/test-freadahead.c (ASSERT): Likewise.
35639         * tests/test-freading.c (ASSERT): Likewise.
35640         * tests/test-freadptr.c (ASSERT): Likewise.
35641         * tests/test-freadptr2.c (ASSERT): Likewise.
35642         * tests/test-freadseek.c (ASSERT): Likewise.
35643         * tests/test-freopen.c (ASSERT): Likewise.
35644         * tests/test-frexp.c (ASSERT): Likewise.
35645         * tests/test-frexpl.c (ASSERT): Likewise.
35646         * tests/test-fseek.c (ASSERT): Likewise.
35647         * tests/test-fseeko.c (ASSERT): Likewise.
35648         * tests/test-fstrcmp.c (ASSERT): Likewise.
35649         * tests/test-ftell.c (ASSERT): Likewise.
35650         * tests/test-ftello.c (ASSERT): Likewise.
35651         * tests/test-func.c (ASSERT): Likewise.
35652         * tests/test-fwritable.c (ASSERT): Likewise.
35653         * tests/test-fwriting.c (ASSERT): Likewise.
35654         * tests/test-getdelim.c (ASSERT): Likewise.
35655         * tests/test-getline.c (ASSERT): Likewise.
35656         * tests/test-i-ring.c (ASSERT): Likewise.
35657         * tests/test-iconv-utf.c (ASSERT): Likewise.
35658         * tests/test-iconv.c (ASSERT): Likewise.
35659         * tests/test-isfinite.c (ASSERT): Likewise.
35660         * tests/test-isnand.c (ASSERT): Likewise.
35661         * tests/test-isnanf.c (ASSERT): Likewise.
35662         * tests/test-isnanl.h (ASSERT): Likewise.
35663         * tests/test-ldexpl.c (ASSERT): Likewise.
35664         * tests/test-linked_list.c (ASSERT): Likewise.
35665         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35666         * tests/test-localename.c (ASSERT): Likewise.
35667         * tests/test-lseek.c (ASSERT): Likewise.
35668         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35669         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35670         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35671         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35672         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35673         * tests/test-mbschr.c (ASSERT): Likewise.
35674         * tests/test-mbscspn.c (ASSERT): Likewise.
35675         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35676         * tests/test-mbspbrk.c (ASSERT): Likewise.
35677         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35678         * tests/test-mbsrchr.c (ASSERT): Likewise.
35679         * tests/test-mbsspn.c (ASSERT): Likewise.
35680         * tests/test-mbsstr1.c (ASSERT): Likewise.
35681         * tests/test-mbsstr2.c (ASSERT): Likewise.
35682         * tests/test-mbsstr3.c (ASSERT): Likewise.
35683         * tests/test-memchr2.c (ASSERT): Likewise.
35684         * tests/test-memmem.c (ASSERT): Likewise.
35685         * tests/test-open.c (ASSERT): Likewise.
35686         * tests/test-printf-frexp.c (ASSERT): Likewise.
35687         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35688         * tests/test-printf-posix.c (ASSERT): Likewise.
35689         * tests/test-quotearg.c (ASSERT): Likewise.
35690         * tests/test-rbtree_list.c (ASSERT): Likewise.
35691         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35692         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35693         * tests/test-round1.c (ASSERT): Likewise.
35694         * tests/test-roundf1.c (ASSERT): Likewise.
35695         * tests/test-roundl.c (ASSERT): Likewise.
35696         * tests/test-signbit.c (ASSERT): Likewise.
35697         * tests/test-sleep.c (ASSERT): Likewise.
35698         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35699         * tests/test-snprintf.c (ASSERT): Likewise.
35700         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35701         * tests/test-stat-time.c (ASSERT): Likewise.
35702         * tests/test-strcasestr.c (ASSERT): Likewise.
35703         * tests/test-strerror.c (ASSERT): Likewise.
35704         * tests/test-striconv.c (ASSERT): Likewise.
35705         * tests/test-striconveh.c (ASSERT): Likewise.
35706         * tests/test-striconveha.c (ASSERT): Likewise.
35707         * tests/test-strsignal.c (ASSERT): Likewise.
35708         * tests/test-strstr.c (ASSERT): Likewise.
35709         * tests/test-strtod.c (ASSERT): Likewise.
35710         * tests/test-trunc1.c (ASSERT): Likewise.
35711         * tests/test-trunc2.c (ASSERT): Likewise.
35712         * tests/test-truncf1.c (ASSERT): Likewise.
35713         * tests/test-truncf2.c (ASSERT): Likewise.
35714         * tests/test-truncl.c (ASSERT): Likewise.
35715         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35716         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35717         * tests/test-vasnprintf.c (ASSERT): Likewise.
35718         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35719         * tests/test-vasprintf.c (ASSERT): Likewise.
35720         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35721         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35722         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35723         * tests/test-vsnprintf.c (ASSERT): Likewise.
35724         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35725         * tests/test-wcwidth.c (ASSERT): Likewise.
35726         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35727         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35728         * tests/test-xvasprintf.c (ASSERT): Likewise.
35729         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35730         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35731         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35732         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35733         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35734         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35735         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35736         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35737         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35738         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35739         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35740         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35741         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35742         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35743         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35744         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35745         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35746         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35747         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35748         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35749         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35750         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35751         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35752         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35753         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35754         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35755         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35756         * tests/unictype/test-combining.c (ASSERT): Likewise.
35757         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35758         * tests/unictype/test-digit.c (ASSERT): Likewise.
35759         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35760         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35761         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35762         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35763         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35764         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35765         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35766         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35767         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35768         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35769         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35770         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35771         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35772         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35773         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35774         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35775         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35776         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35777         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35778         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35779         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35780         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35781         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35782         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35783         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35784         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35785         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35786         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35787         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35788         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35789         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35790         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35791         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35792         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35793         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35794         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35795         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35796         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35797         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35798         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35799         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35800         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35801         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35802         Reported by Eric Blake.
35803
35804 2008-04-11  Bruno Haible  <bruno@clisp.org>
35805
35806         * lib/wchar.in.h: Tweak comment.
35807
35808 2008-04-11  Bruno Haible  <bruno@clisp.org>
35809
35810         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35811         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35812         gl_COMMON.
35813         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35814
35815 2008-04-11  Bruno Haible  <bruno@clisp.org>
35816
35817         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35818
35819 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35820
35821         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35822         of attempting to use non-existing /dev/*random.  Based on patch
35823         from Adam Strzelecki <ono@java.pl> in
35824         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35825
35826 2008-04-08  Bruno Haible  <bruno@clisp.org>
35827
35828         Add tentative support for emx+gcc.
35829         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35830         * lib/fpurge.c (fpurge): Likewise.
35831         * lib/freadable.c (freadable): Likewise.
35832         * lib/freadahead.c (freadahead): Likewise.
35833         * lib/freading.c (freading): Likewise.
35834         * lib/freadptr.c (freadptr): Likewise.
35835         * lib/freadseek.c (freadptrinc): Likewise.
35836         * lib/fseeko.c (rpl_fseeko): Likewise.
35837         * lib/fseterr.c (fseterr): Likewise.
35838         * lib/fwritable.c (fwritable): Likewise.
35839         * lib/fwriting.c (fwriting): Likewise.
35840         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35841
35842 2008-04-09  Eric Blake  <ebb9@byu.net>
35843
35844         Avoid some autoconf warnings.
35845         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35846         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35847         * m4/afs.m4 (gl_AFS): Likewise.
35848         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35849         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35851         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35852         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35853         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35854         (AC_CHECK_DECLS_ONCE): Likewise.
35855         Rename file...
35856         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35857         gnulib-tool requires autoconf 2.59 or better.
35858         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35859
35860 2008-04-08  Eric Blake  <ebb9@byu.net>
35861
35862         Use 'git describe --match' if present (added in git 1.5.5).
35863         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35864         if possible.
35865
35866 2008-04-08  Bruno Haible  <bruno@clisp.org>
35867
35868         Add tentative support for OpenServer.
35869         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35870         _ptr, _cnt.
35871         * lib/fpurge.c (fpurge): Likewise.
35872         * lib/freadable.c (freadable): Likewise.
35873         * lib/freadahead.c (freadahead): Likewise.
35874         * lib/freading.c (freading): Likewise.
35875         * lib/freadptr.c (freadptr): Likewise.
35876         * lib/freadseek.c (freadptrinc): Likewise.
35877         * lib/fseeko.c (rpl_fseeko): Likewise.
35878         * lib/fseterr.c (fseterr): Likewise.
35879         * lib/fwritable.c (fwritable): Likewise.
35880         * lib/fwriting.c (fwriting): Likewise.
35881         Reported by Roger Cornelius <rac@tenzing.org> and
35882         Brian K. White <brian@aljex.com>.
35883
35884 2008-04-06  Jim Meyering  <meyering@redhat.com>
35885
35886         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35887
35888 2008-04-06  Bruno Haible  <bruno@clisp.org>
35889
35890         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35891         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35892         * tests/test-printf-posix.sh: Likewise.
35893         * tests/test-vfprintf-posix.sh: Likewise.
35894         * tests/test-vprintf-posix.sh: Likewise.
35895         * tests/test-xprintf-posix.sh: Likewise.
35896
35897 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35898
35899         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35900         hide error from 'ls', needed on OS/2.
35901         Report by Elbert Pol <elbert.pol@gmail.com>.
35902
35903 2008-04-04  Eric Blake  <ebb9@byu.net>
35904
35905         Make test-fseeko.c failures meaningful.
35906         * tests/test-fseeko.c: Print line number on failure.
35907         * tests/test-fseek.c: Likewise.
35908         Reported by Nelson H. F. Beebe.
35909
35910         Improve strtod bug detection check.
35911         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35912         required for Solaris 10.
35913         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35914
35915 2008-04-04  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35918         by m4/setenv.m4.
35919
35920 2008-04-03  Eric Blake  <ebb9@byu.net>
35921
35922         Ensure sane .version contents.
35923         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35924         version string.
35925         * build-aux/git-version-gen: Improve documentation.
35926
35927         Make GNU make output nicer.
35928         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35929         MAKECMDGOALS to enforce message for all command line targets.  Set
35930         srcdir for use in maint.mk.
35931
35932         Another maintainer tweak.
35933         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35934         a target that regenerates version.
35935
35936 2008-04-03  Jim Meyering  <meyering@redhat.com>
35937
35938         vc-list-files: don't cause coreutils "make po-check" failure
35939         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35940
35941 2008-04-03  Eric Blake  <ebb9@byu.net>
35942
35943         Allow VPATH usage of vc-list-files.
35944         * build-aux/vc-list-files (scriptversion): Add timestamp.
35945         (options): Add --help, --version, -C.
35946         (CVS): Support installed cvsu.
35947
35948 2008-04-02  Bruno Haible  <bruno@clisp.org>
35949
35950         Avoid some "statement with no effect" warnings from gcc.
35951         * tests/test-wctype.c (main): Explicitly ignore unused values.
35952         Reported by Jim Meyering.
35953
35954 2008-04-02  Jim Meyering  <meyering@redhat.com>
35955
35956         Avoid some warnings from "gcc -Wshadow".
35957         * tests/test-frexp.c (exp): Define to a different identifier.
35958         * tests/test-frexpl.c (exp): Likewise.
35959
35960 2008-04-03  Jim Meyering  <meyering@redhat.com>
35961
35962         bootstrap: remove dangling *.[ch] symlinks from lib
35963         * build-aux/bootstrap [dangling symlink removal]: Move find's
35964         -depth option to precede all others, to avoid a warning.
35965         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35966
35967 2008-04-02  Bruno Haible  <bruno@clisp.org>
35968
35969         Avoid some warnings from "gcc -Wshadow".
35970         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35971         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35972         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35973         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35974         Reported by Jim Meyering.
35975
35976 2008-04-01  Bruno Haible  <bruno@clisp.org>
35977
35978         Fix test to work on IRIX 6.5 with cc.
35979         * tests/test-math.c (numeric_equal): New function.
35980         (main): Use it.
35981
35982 2008-04-01  Bruno Haible  <bruno@clisp.org>
35983
35984         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35985
35986 2008-04-01  Bruno Haible  <bruno@clisp.org>
35987
35988         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35989         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35990         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35991         (Depends-on): Remove math.
35992
35993         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35994         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35995         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35996         (Depends-on): Remove math.
35997
35998         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35999         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36000         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36001         (Depends-on): Remove math.
36002         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36003         (Depends-on): Remove math.
36004
36005         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36006         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36007         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36008         (Depends-on): Remove math.
36009         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36010         (Depends-on): Remove math.
36011
36012         * tests/test-round1.c: Include nan.h.
36013         (main): Use NaNd instead of NAN.
36014         * modules/round-tests (Files): Add tests/nan.h.
36015
36016         * tests/test-trunc1.c: Include nan.h.
36017         (main): Use NaNd instead of NAN.
36018         * modules/trunc-tests (Files): Add tests/nan.h.
36019
36020         * tests/test-roundf1.c: Include nan.h.
36021         (main): Use NaNf instead of NAN.
36022         * modules/roundf-tests (Files): Add tests/nan.h.
36023
36024         * tests/test-truncf1.c: Include nan.h.
36025         (main): Use NaNf instead of NAN.
36026         * modules/truncf-tests (Files): Add tests/nan.h.
36027
36028         * tests/test-ceilf1.c: Include nan.h.
36029         (main): Use NaNf instead of NAN.
36030         * modules/ceilf-tests (Files): Add tests/nan.h.
36031
36032         * tests/test-floorf1.c: Include nan.h.
36033         (main): Use NaNf instead of NAN.
36034         * modules/floorf-tests (Files): Add tests/nan.h.
36035
36036         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36037         (main): Use NaNf instead of NAN.
36038         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36039
36040         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36041         (main): Use NaNd instead of NAN.
36042         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36043
36044         * tests/test-frexp.c: Include nan.h.
36045         (main): Use NaNd instead of NAN.
36046         * modules/frexp-tests (Files): Add tests/nan.h.
36047
36048         * lib/isnan.c: Don't include <math.h>.
36049         (FUNC): Don't use NAN macro.
36050         * modules/isnand-nolibm (Depends-on): Remove math.
36051         * modules/isnanf-nolibm (Depends-on): Remove math.
36052         * modules/isnanl (Depends-on): Remove math.
36053         * modules/isnanl-nolibm (Depends-on): Remove math.
36054
36055         * tests/nan.h: New file.
36056
36057 2008-04-01  Eric Blake  <ebb9@byu.net>
36058
36059         Fix typos.
36060         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36061         values to be the right type.
36062
36063         For now, cater to gnulib strtod inaccuracies.
36064         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36065         fractional results.  While not as nice from a QoI perspective, it
36066         is a quicker patch than correctly implementing decimal to binary
36067         rounding.
36068
36069 2008-03-31  Eric Blake  <ebb9@byu.net>
36070
36071         Guarantee a definition of NAN.
36072         * lib/math.in.h (NAN): Define if missing.
36073         * tests/test-math.c (main): Test it.
36074         * doc/posix-headers/math.texi (math.h): Document this.
36075         * lib/isnan.c (rpl_isnand): Use it.
36076         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36077         * tests/test-floorf1.c (NaN): Likewise.
36078         * tests/test-frexp.c (NaN): Likewise.
36079         * tests/test-isnand.c (NaN): Likewise.
36080         * tests/test-isnanf.c (NaN): Likewise.
36081         * tests/test-round1.c (NaN): Likewise.
36082         * tests/test-roundf1.c (NaN): Likewise.
36083         * tests/test-snprintf-posix.h (NaN): Likewise.
36084         * tests/test-sprintf-posix.h (NaN): Likewise.
36085         * tests/test-trunc1.c (NaN): Likewise.
36086         * tests/test-truncf1.c (NaN): Likewise.
36087         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36088         * tests/test-vasprintf-posix.c (NaN): Likewise.
36089         * modules/isnand-nolibm (Depends-on): Add math.
36090         * modules/isnanf-nolibm (Depends-on): Likewise.
36091         * modules/isnanl (Depends-on): Likewise.
36092         * modules/isnanl-nolibm (Depends-on): Likewise.
36093         * modules/snprintf-posix-tests (Depends-on): Likewise.
36094         * modules/sprintf-posix-tests (Depends-on): Likewise.
36095         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36096         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36097         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36098         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36099
36100 2008-03-31  Bruno Haible  <bruno@clisp.org>
36101
36102         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36103         * doc/posix-functions/strtod.texi: Likewise.
36104
36105 2008-03-31  Bruno Haible  <bruno@clisp.org>
36106
36107         * tests/test-strtod.c (main): Don't use C99 syntax.
36108
36109 2008-03-31  Bruno Haible  <bruno@clisp.org>
36110
36111         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36112         Reported by Eric Blake.
36113
36114 2008-03-31  Jim Meyering  <meyering@redhat.com>
36115
36116         Don't compare actual signbit return values.
36117         * tests/test-strtod.c (main): Rather, compare only their
36118         zero/non-zero nature.
36119
36120 2008-03-31  Eric Blake  <ebb9@byu.net>
36121
36122         More strtod documentation.
36123         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36124         failures as distinct bugs.
36125
36126 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36127
36128         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36129         Problem reported by Erik Benada in
36130         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36131
36132 2008-03-30  Bruno Haible  <bruno@clisp.org>
36133
36134         * tests/test-strtod.c: Add comments about which assertion fails on which
36135         platform.
36136         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36137
36138 2008-03-30  Eric Blake  <ebb9@byu.net>
36139
36140         Test signbit behavior on zeros.
36141         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36142         (test_signbitd, test_signbitl): Likewise.
36143
36144         More strtod touchups.
36145         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36146         sign of negative underflow, for now.  Use .5, not .1.
36147         * doc/posix-functions/strtod.texi (strtod): Mention these
36148         limitations.
36149         Reported by Jim Meyering.
36150
36151 2008-03-30  Bruno Haible  <bruno@clisp.org>
36152
36153         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36154         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36155
36156 2008-03-30  Bruno Haible  <bruno@clisp.org>
36157
36158         Avoid failure when attempting to return empty iconv results on some
36159         platforms.
36160         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36161         allocation, don't report ENOMEM when the resulting string is empty.
36162
36163 2008-03-30  Bruno Haible  <bruno@clisp.org>
36164
36165         Fix buffer overrun.
36166         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36167         Don't consider the width for tmp_length. Check count against tmp_length
36168         before doing the padding. Ensure enough allocation during padding.
36169
36170 2008-03-30  Eric Blake  <ebb9@byu.net>
36171
36172         strtod touchups.
36173         * lib/strtod.c (strtod): Avoid compiler warnings.
36174         Reported by Jim Meyering.
36175
36176 2008-03-30  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36179         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36180         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36181         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36182         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36183         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36184         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36185         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36186
36187         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36188         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36189         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36190         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36191         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36192         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36193         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36194         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36195
36196         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36197         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36198         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36199         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36200         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36201         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36202         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36203         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36204
36205         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36206         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36207
36208         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36209         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36210
36211         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36212         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36213
36214         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36215         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36216         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36217
36218         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36220         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36221
36222         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36224         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36225
36226         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36228         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36229
36230         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36231         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36233         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36234         (Depends-on): Add EOVERFLOW.
36235         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36236         (Depends-on): Add EOVERFLOW.
36237         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36238         (Depends-on): Add EOVERFLOW.
36239         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36240         (Depends-on): Add EOVERFLOW.
36241         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36242         (Depends-on): Add EOVERFLOW.
36243         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36244         (Depends-on): Add EOVERFLOW.
36245         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36246         (Depends-on): Add EOVERFLOW.
36247         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36248         (Depends-on): Add EOVERFLOW.
36249
36250         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36252         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36253
36254         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36256         * modules/snprintf (Depends-on): Add EOVERFLOW.
36257
36258         * lib/poll.c (EOVERFLOW): Remove fallback.
36259         * modules/poll (Depends-on): Add EOVERFLOW.
36260
36261         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36262         * modules/getugroups (Depends-on): Add EOVERFLOW.
36263
36264         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36265         * modules/getdelim (Depends-on): Add EOVERFLOW.
36266
36267         * lib/ftell.c (EOVERFLOW): Remove fallback.
36268         * modules/ftell (Depends-on): Add EOVERFLOW.
36269
36270         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36272         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36273
36274         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36275
36276         * modules/EOVERFLOW-tests: New file.
36277         * tests/test-EOVERFLOW.c: New file.
36278
36279         * modules/EOVERFLOW: New file.
36280         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36281
36282 2008-03-30  Bruno Haible  <bruno@clisp.org>
36283
36284         Fix bug introduced on 2007-06-10.
36285         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36286         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36287
36288 2008-03-30  Bruno Haible  <bruno@clisp.org>
36289
36290         Improve freadseek's efficiency after ungetc.
36291         * lib/freadseek.c: Include freadahead.h.
36292         (freadptrinc): New function, extracted from freadseek.
36293         (freadseek): Use it in a loop. Use freadahead to determine the number
36294         of loop iterations.
36295         * modules/freadseek (Depends-on): Add freadahead.
36296         (configure.ac): Require AC_C_INLINE.
36297
36298 2008-03-30  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/freadseek.c (freadseek): Don't ignore the return value of
36301         freadptr.
36302
36303 2008-03-29  Eric Blake  <ebb9@byu.net>
36304
36305         Add hex float support.
36306         * modules/strtod (Depends-on): Add c-ctype.
36307         (Link): Mention POW_LIB.
36308         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36309         whitespace between 'e' and exponent.
36310         * tests/test-strtod.c (main): Enable hex float tests.
36311         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36312         now provides.
36313
36314         Document various strtod bugs, with some fixes.
36315         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36316         "-0x", "inf", "nan", and hex constants.
36317         * doc/posix-functions/atof.texi (atof): Likewise.
36318         * modules/stdlib (Makefile.am): Support strtod.
36319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36320         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36321         detect additional strtod bugs.
36322         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36323         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36324         bool where appropriate.  Parse 'inf' and 'nan'.
36325         * tests/test-strtod.c: New file.
36326         * modules/strtod (Depends-on): Add stdbool, stdlib.
36327         (configure.ac): Turn on module indicator.
36328         * modules/strtod-tests: New module.
36329
36330 2008-03-29  Eric Blake  <ebb9@byu.net>
36331
36332         Fix ftell on mingw.
36333         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36334         * modules/ftell-tests (Depends-on): Add binary-io.
36335         * modules/ftello-tests (Depends-on): Likewise.
36336         * tests/test-ftell.c (main): Enhance test to cover behavior after
36337         ungetc.  Enforce binary mode.
36338         * tests/test-ftello.c (main): Likewise.
36339
36340         Pass test-freadseek on cygwin.
36341         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36342         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36343         ungetc buffer.
36344
36345         * tests/test-fflush2.c (main): Fix typo.
36346
36347 2008-03-29  Bruno Haible  <bruno@clisp.org>
36348
36349         * tests/test-fflush2.c (main): Temporarily disable the contents of
36350         this test.
36351         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36352         Reported by Eric Blake.
36353
36354 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36355
36356         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36357         (GC_SHA224_DIGEST_SIZE): Add.
36358
36359         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36360         (gc_hash_digest_length): Likewise.
36361         (gc_hash_buffer): Likewise.
36362
36363 2008-03-25  Bruno Haible  <bruno@clisp.org>
36364
36365         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36366         detail which gettext release to use.
36367         Reported by Simon Josefsson.
36368
36369 2008-03-26  Jim Meyering  <meyering@redhat.com>
36370
36371         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36372         * modules/gnumakefile (clean-GNUmakefile): Also, use
36373         test ... && ... || : syntax rather than if-then ... fi.
36374
36375         gnumakefile: Don't double-quote-expand $(VPATH) value.
36376         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36377
36378 2008-03-24  Eric Blake  <ebb9@byu.net>
36379
36380         Alter GNUmakefile to install into top directory.
36381         * modules/maintainer-makefile: Split, and add dependency...
36382         * modules/gnumakefile: to this new module.
36383         * build-aux/GNUmakefile: Move...
36384         * top/GNUmakefile: ...here.
36385         * build-aux/maint.mk: Move...
36386         * top/maint.mk: ...here.
36387         * MODULES.html.sh (Support for maintaining...): Document new
36388         module.
36389
36390 2008-03-23  Bruno Haible  <bruno@clisp.org>
36391
36392         * gnulib-tool: New options --vc-files, --no-vc-files.
36393         (func_usage): Document them.
36394         (vc_files): New variable.
36395         (func_import): Consider vc_files.
36396         (func_create_testdir): Set vc_files to empty.
36397         Suggested by Jim Meyering and Karl Berry.
36398
36399 2008-03-23  Bruno Haible  <bruno@clisp.org>
36400
36401         Fix regex compilation error on HP-UX 11.
36402         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36403         * modules/regex (Files): Add m4/mbstate_t.m4.
36404         Reported by Ton Voon <ton.voon@altinity.com>.
36405
36406 2008-03-23  Bruno Haible  <bruno@clisp.org>
36407
36408         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36409
36410 2008-03-23  Eric Blake  <ebb9@byu.net>
36411             Bruno Haible  <bruno@clisp.org>
36412
36413         Install files from top/ in the destination directory.
36414         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36415         augmentation also for the files from top/.
36416         (func_import, func_create_testdir): Rewrite file names:
36417         top/filename -> filename.
36418
36419 2008-03-23  Bruno Haible  <bruno@clisp.org>
36420
36421         Tweak "gnulib --version" output.
36422         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36423
36424 2008-03-23  Bruno Haible  <bruno@clisp.org>
36425
36426         Tweak "gnulib --version" output.
36427         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36428         rather than contents of ChangeLog, when possible.
36429
36430 2008-03-21  Eric Blake  <ebb9@byu.net>
36431
36432         More --version tweaks.
36433         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36434         date of last ChangeLog entry.
36435
36436 2008-03-21  Jim Meyering  <meyering@redhat.com>
36437
36438         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36439
36440 2008-03-20  Eric Blake  <ebb9@byu.net>
36441
36442         VPATH fix.
36443         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36444
36445 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36446
36447         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36448         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36449
36450 2008-03-20  Eric Blake  <ebb9@byu.net>
36451
36452         Sync GNUmakefile with coreutils.
36453         * build-aux/GNUmakefile (have-Makefile): Rename...
36454         (_have-Makefile): ...to this, for namespace consideration.
36455         (GNUmakefile.cfg): Include, if present.
36456         (_autoreconf): Define a default.
36457         (_is-dist-target): New rule for rebuilds to pick up intra-release
36458         version.
36459         (maint-cfg.mk): Rename...
36460         (cfg.mk): ...to this.
36461
36462 2008-03-18  Jim Meyering  <meyering@redhat.com>
36463
36464         New script and module: mktempd
36465         * MODULES.html.sh (maint+release support): Add mktempd.
36466         * build-aux/mktempd: New file.
36467         * modules/mktempd: New file.
36468
36469 2008-03-15  Jim Meyering  <meyering@redhat.com>
36470
36471         Undo last change.
36472         * lib/sha1.c, lib/md5.c: 63 != ~63.
36473         Reported by Andreas Schwab.
36474
36475         sha1.c, md5.c: Hoist a redundant expression.
36476         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36477         "ctx->buflen" only once, before calling *_process_block.
36478         * lib/md5.c (md5_process_bytes): Likewise.
36479
36480 2008-03-14  Eric Blake  <ebb9@byu.net>
36481
36482         Bump copyright year in files generated by gnulib-tool.
36483         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36484         gnulib-tool, rather than hard-coding it.
36485
36486         Fix 'gnulib-tool --version' output to work with git.
36487         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36488         (startup): ...here.
36489         (func_version): Use it to invoke git-version-gen, rather than
36490         relying on CVS keyword expansion.  Modernize wording.
36491         (cvsdatestamp, last_checkin_date, version): Kill unused
36492         variables.
36493
36494 2008-03-12  Jim Meyering  <meyering@redhat.com>
36495
36496         Recognize optional cast of the argument to free.
36497         * build-aux/useless-if-before-free: Update regexps.
36498
36499         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36500
36501 2008-03-11  Bruno Haible  <bruno@clisp.org>
36502
36503         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36504         by a single package.
36505         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36506         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36507         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36508         Reported by Sam Steingold <sds@gnu.org>.
36509
36510 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36511
36512         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36513         repositories.
36514
36515 2008-03-11  Bruno Haible  <bruno@clisp.org>
36516
36517         Avoid conflicts between local macro definitions.
36518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36519         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36520
36521 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36522             Bruno Haible  <bruno@clisp.org>
36523
36524         Make va_copy work with some version of xlc on AIX 5.1.
36525         * lib/stdarg.in.h: New file.
36526         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36527         On AIX, use a <stdarg.h> file substitute.
36528         * modules/stdarg (Files): Add lib/stdarg.in.h.
36529         (Depends-on): Add include_next.
36530         (Makefile.am): Build a stdarg.h substitute if requested.
36531         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36532
36533 2008-03-10  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36536         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36537         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36538
36539 2008-03-10  Bruno Haible  <bruno@clisp.org>
36540
36541         * modules/stdlib (Depends-on): Add include_next, remove
36542         absolute-header.
36543
36544 2008-03-09  Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/freadahead.h (freadahead): Document more precisely.
36547         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36548         the sum of both buffer sizes.
36549         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36550         * NEWS: Document the change.
36551
36552 2008-03-09  Bruno Haible  <bruno@clisp.org>
36553
36554         Extend freadptr to return also the buffer size.
36555         * lib/freadptr.h (freadptr): Add sizep argument.
36556         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36557         (freadptr): Add sizep argument. Determine buffer size like freadahead
36558         does.
36559         * tests/test-freadptr.c: Don't include freadahead.h.
36560         (main): Adapt for new calling convention of freadptr.
36561         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36562         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36563         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36564         tests/test-freadptr2.sh.
36565         (Depends): Remove freadahead.
36566         (TESTS): Add test-freadptr2.sh.
36567         (check_PROGRAMS): Add test-freadptr2.
36568
36569 2008-03-09  Bruno Haible  <bruno@clisp.org>
36570
36571         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36572         Report and solution by Simon Josefsson.
36573
36574 2008-03-06  Bruno Haible  <bruno@clisp.org>
36575
36576         Make fflush after ungetc work on BSD platforms.
36577         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36578         * tests/test-fflush2.c: New file.
36579         * tests/test-fflush2.sh: New file.
36580         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36581         tests/test-fflush2.c.
36582         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36583         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36584
36585 2008-03-06  Eric Blake  <ebb9@byu.net>
36586
36587         Likewise for ftello.
36588         * modules/ftello (Dependencies): Add extensions.
36589         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36590
36591 2008-03-06  Bruno Haible  <bruno@clisp.org>
36592
36593         * modules/fseeko (Dependencies): Add extensions.
36594         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36595         Needed on glibc systems.
36596
36597 2008-03-06  Bruno Haible  <bruno@clisp.org>
36598
36599         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36600         email address.
36601         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36602
36603 2008-03-06  Bruno Haible  <bruno@clisp.org>
36604
36605         * users.txt: Add libgnupdf.
36606
36607 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36608
36609         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36610         (Header File Substitutes, Function Substitutes,
36611         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36612         (Build robot for gnulib): Fix typo.
36613
36614 2008-03-06  Bruno Haible  <bruno@clisp.org>
36615
36616         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36617         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36618
36619 2008-03-06  Bruno Haible  <bruno@clisp.org>
36620
36621         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36622         * doc/gnulib.texi: Include it.
36623
36624 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36625
36626         * modules/func (License): Change license to unlimited; there was
36627         no LGPL parts in the module anyway.
36628
36629 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36630
36631         * modules/__func__: Renamed to modules/func.
36632         * modules/__func__-tests: Renamed to modules/func-tests.
36633         * tests/test-__func__.c: Renamed to tests/test-func.c.
36634         * m4/__func__.m4: Renamed to m4/func.m4.
36635         * doc/gnulib.texi (__func__): Section renamed to func.
36636         Suggested by Eric Blake <ebb9@byu.net>.
36637
36638 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36639
36640         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36641         about __func__.  Make example self-contained.  Suggested by Eric
36642         Blake <ebb9@byu.net>.
36643
36644         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36645         Suggested by Eric Blake <ebb9@byu.net>.
36646
36647 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36648
36649         * modules/__func__: New file.
36650         * modules/__func__-tests: New file.
36651         * tests/test-__func__.c: New file.
36652         * m4/__func__.m4: New file.
36653         * doc/gnulib.texi (__func__): Document __func__ module.
36654
36655 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36656
36657         * modules/byteswap (License): Re-license as LGPLv2+.
36658
36659 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36660
36661         * doc/Makefile: Add pdf target.
36662
36663 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36664
36665         * modules/inline (License): Use 'unlimited', since there are only
36666         *.m4 files in this module.
36667
36668 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36669             Bruno Haible  <bruno@clisp.org>
36670
36671         Add support for HP C 7.1 on OpenVMS 8.3.
36672         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36673
36674 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36675
36676         Update VMS specifics.
36677         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36678
36679 2008-03-02  Jim Meyering  <meyering@redhat.com>
36680
36681         Remove the last dependency on the "free" module.
36682         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36683         Reported by Bob Proulx.
36684
36685         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36686
36687         Remove useless "if" tests before free.  Deprecate "free" module.
36688         * doc/posix-functions/free.texi: Mention that this
36689         module is no longer useful.
36690         * modules/free (Notice): Say this module is obsolete.
36691         * modules/readutmp (Depends-on): Remove free.
36692         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36693         * lib/putenv.c (putenv): Likewise.
36694         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36695         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36696         * tests/test-c-strcasestr.c (main): Likewise.
36697         * tests/test-c-strstr.c (main): Likewise.
36698         * tests/test-mbscasestr1.c (main): Likewise.
36699         * tests/test-mbscasestr2.c (main): Likewise.
36700         * tests/test-mbsstr1.c (main): Likewise.
36701         * tests/test-mbsstr2.c (main): Likewise.
36702         * tests/test-memmem.c (main): Likewise.
36703         * tests/test-strcasestr.c (main): Likewise.
36704         * tests/test-striconv.c (main): Likewise.
36705         * tests/test-striconveh.c (main): Likewise.
36706         * tests/test-striconveha.c (main): Likewise.
36707         * tests/test-strstr.c (main): Likewise.
36708
36709         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36710
36711         bootstrap: sync from coreutils again
36712         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36713
36714 2008-03-01  Jim Meyering  <meyering@redhat.com>
36715
36716         bootstrap: sync from coreutils
36717         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36718         also when the target doesn't exist.
36719
36720 2008-03-01  Eric Blake  <ebb9@byu.net>
36721
36722         Fix bugs in last patch.
36723         * lib/memchr2.c (memchr2): Fix typo.
36724         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36725         extension.
36726         Reported by Bruce Korb.
36727
36728         New module 'memchr2'.
36729         * modules/memchr2: New file.
36730         * modules/memchr2-tests: Likewise.
36731         * lib/memchr2.h: Likewise.
36732         * lib/memchr2.c: Likewise, based on memchr.c.
36733         * tests/test-memchr2.c: New test.
36734         * MODULES.html.sh (String handling): Add memchr2.
36735
36736 2008-02-29  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/freadseek-tests: New file.
36739         * tests/test-freadseek.sh: New file.
36740         * tests/test-freadseek.c: New file.
36741
36742         New module 'freadseek'.
36743         * modules/freadseek: New file.
36744         * lib/freadseek.h: New file.
36745         * lib/freadseek.c: New file.
36746         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36747
36748 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36749
36750         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36751         wydawca.
36752
36753         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36754         program_invocation_name and program_invocation_short_name are
36755         present.
36756
36757 2008-02-28  Bruno Haible  <bruno@clisp.org>
36758
36759         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36760         * tests/test-freadptr.sh: Also test non-seekable stdin.
36761
36762 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36763
36764         * build-aux/bootstrap (source_base, m4_base)
36765         (doc_base, tests_base): New variables.
36766         (gnulib_tool_options): Do not hardcode base directories, use
36767         the above variables instead.
36768
36769 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36770
36771         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36772
36773 2008-02-28  Bruno Haible  <bruno@clisp.org>
36774
36775         * modules/freadptr-tests: New file.
36776         * tests/test-freadptr.sh: New file.
36777         * tests/test-freadptr.c: New file.
36778
36779         New module 'freadptr'.
36780         * modules/freadptr: New file.
36781         * lib/freadptr.h: New file.
36782         * lib/freadptr.c: New file.
36783         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36784
36785 2008-02-26  Karl Berry  <karl@freefriends.org>
36786
36787         Sync from Libtool:
36788         * libltdl/argz.c (argz_add, argz_count): New functions.
36789         * libltdl/argz.in.h: Declare them.
36790         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36791
36792 2008-02-22  Bruno Haible  <bruno@clisp.org>
36793
36794         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36795         is a pointer type.  Needed for HP-UX 10.
36796         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36797         * doc/posix-functions/gmtime_r.texi: Likewise.
36798         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36799
36800 2008-02-24  Bruno Haible  <bruno@clisp.org>
36801
36802         * modules/environ-tests: New file.
36803         * tests/test-environ.c: New file.
36804
36805         New module 'environ'.
36806         * modules/environ: New file.
36807         * lib/unistd.in.h (environ): New declaration.
36808         * m4/environ.m4: New file.
36809         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36810         after use.
36811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36812         HAVE_DECL_ENVIRON.
36813         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36814         HAVE_DECL_ENVIRON.
36815         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36816         wrong claim that 'environ' is missing on some systems.
36817         * modules/execute (Depends-on): Add environ.
36818         * lib/execute.c (environ): Remove fallback declaration.
36819         * modules/pipe (Depends-on): Add environ.
36820         * lib/pipe.c (environ): Remove fallback declaration.
36821         * modules/setenv (Depends-on): Add environ.
36822         * lib/setenv.c (environ): Remove fallback declaration.
36823         * modules/unsetenv (Depends-on): Add environ.
36824         * lib/unsetenv.c (environ): Remove fallback declaration.
36825         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36826         m4/environ.m4.
36827         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36828         (gl_PREREQ_UNSETENV): Likewise.
36829
36830 2008-02-24  Bruno Haible  <bruno@clisp.org>
36831
36832         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36833
36834 2008-02-20  Bob Proulx  <bob@proulx.com>
36835
36836         Enable use of older two part flavor 'git describe'.
36837         * build-aux/git-version-gen: If using the older two part flavor of
36838         git version then recreate the third part now present in the
36839         newer three part flavor of git describe.
36840
36841 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36842
36843         * lib/fts.c (fts_build): Typo correction to comment.
36844
36845 2008-02-17  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36848         generating no-op conflicts.
36849
36850 2008-02-17  Bruno Haible  <bruno@clisp.org>
36851
36852         Speed up by 10%.
36853         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36854         result_entries, rather than an index-based loop.
36855
36856 2008-02-17  Bruno Haible  <bruno@clisp.org>
36857
36858         Speed up by 25%.
36859         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36860         'hashcode_cached'.
36861         (entry_create): New function.
36862         (entry_hashcode): Use the cached hashcode if possible.
36863         (read_changelog_file, try_split_merged_entry): Use entry_create.
36864
36865 2008-02-17  Bruno Haible  <bruno@clisp.org>
36866
36867         Speed up from O(n^2) to O(n) for long ChangeLog files.
36868         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36869         (read_changelog_file): Change implementation of entries_reversed list
36870         to rbtreehash.
36871         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36872
36873 2008-02-17  Bruno Haible  <bruno@clisp.org>
36874
36875         New option --split-merged-entry.
36876         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36877         (find_paragraph_end, try_split_merged_entry): New functions.
36878         (long_options): Add option --split-merged-entry.
36879         (usage): Document option --split-merged-entry.
36880         (main): Implement option --split-merged-entry.
36881         Reported by Eric Blake.
36882
36883 2008-02-17  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/git-merge-changelog.c: Include c-strstr.h.
36886         (main): Support the "git pull --rebase" situation.
36887         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36888         Reported by Eric Blake.
36889
36890 2008-02-16  Eric Blake  <ebb9@byu.net>
36891
36892         Avoid doubling \ in common case of "c-maybe" quoting style.
36893         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36894         eliding outer quotes.
36895         * lib/quotearg.h: Document this.
36896         * tests/test-quotearg.c (result_strings, inputs, results_g)
36897         (flag_results, locale_results): Test it by adding a new string to
36898         each test group.
36899         (compare_strings): Test new string.
36900
36901 2008-02-13  Eric Blake  <ebb9@byu.net>
36902
36903         Avoid trigraph quoting in default output.
36904         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36905         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36906         unless explicitly requested.
36907         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36908
36909 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36910
36911         Don't rely on signed integer overflowing to negative value.
36912         * lib/getugroups.c (getugroups): Include <limits.h>.
36913         Instead, compare against INT_MAX, and increment only if the test passes.
36914
36915 2008-02-13  Jim Meyering  <meyering@redhat.com>
36916         and Eric Blake  <ebb9@byu.net>
36917
36918         Avoid shadowing warning and compile errors on Linux.
36919         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36920         forwarding macros on Linux.
36921         (dcgettext): Define a stub, for Linux.
36922         (results_g, main): Avoid warnings.
36923
36924 2008-02-12  Eric Blake  <ebb9@byu.net>
36925
36926         Silence warning in last patch.
36927         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36928
36929         Quotearg part 4: add tests, fix c-maybe colon quoting.
36930         * lib/quotearg.h: Improve documentation.
36931         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36932         escapes when adding outer quotes.  When quoting trigraphs, use
36933         valid C notation.  When quoting NUL, omit extra characters if next
36934         character is not digit.  Alter prototype.
36935         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36936         callers.
36937         * modules/quotearg-tests: New module.
36938         * tests/test-quotearg.c: New test.
36939
36940 2008-02-07  Eric Blake  <ebb9@byu.net>
36941
36942         Quotearg part 3: add flag to control outer quote elision.
36943         * lib/quotearg.h (c_maybe_quoting_style): New style.
36944         (enum quoting_flags): Better documentation of flags.
36945         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36946         c-maybe style.
36947         (quotearg_buffer_restyled): Handle new flag to elide outer
36948         quotes.
36949
36950         Quotearg part 2: add flag that can control NUL elision.
36951         * lib/quotearg.h (set_quoting_flags): New prototype.
36952         * lib/quotearg.c (struct quoting_options): Add flag field.
36953         (set_quoting_flags): New function.
36954         (quotearg_buffer_restyled): Add flags parameter.
36955         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36956         (quotearg_n_options): Set the flag, since length cannot be
36957         returned.
36958         (quoting_options_from_style): Default flags correctly.
36959
36960         Quotearg part 1: more wrappers, restore quotearg_char state.
36961         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36962         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36963         (quotearg_colon_mem): New wrappers.
36964         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36965         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36966         functions.
36967         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36968         (quotearg_colon_mem): New functions.
36969
36970 2008-02-11  Bruno Haible  <bruno@clisp.org>
36971
36972         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36973         library in the current directory: it does not work with parallel make.
36974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36975
36976 2008-02-11  Bruno Haible  <bruno@clisp.org>
36977
36978         * .gitattributes: New file.
36979
36980 2008-02-11  Jim Meyering  <meyering@redhat.com>
36981
36982         useless-if-before-free: Fix reversed exit values.
36983         * build-aux/useless-if-before-free: Use correct values
36984         for EXIT_MATCH and EXIT_NO_MATCH.
36985
36986         * build-aux/useless-if-before-free: Close stdout carefully.
36987
36988 2008-02-10  Bruno Haible  <bruno@clisp.org>
36989
36990         New module 'git-merge-changelog'.
36991         * modules/git-merge-changelog: New file.
36992         * lib/git-merge-changelog.c: New file.
36993
36994 2008-02-10  Jim Meyering  <meyering@redhat.com>
36995
36996         useless-if-before-free: New option: --list (-l).
36997
36998         useless-if-before-free: Don't exit immediately upon open failure.
36999         * build-aux/useless-if-before-free: Exit 2 for errors.
37000         Upon failure to open a file, don't exit immediately.
37001         Rather, just warn and continue with any remaining files.
37002
37003 2008-02-10  Bruno Haible  <bruno@clisp.org>
37004
37005         New abstract list operation 'node_set_value'.
37006         * lib/gl_list.h (gl_list_node_set_value): New function.
37007         (struct gl_list_implementation): New field node_set_value.
37008         * lib/gl_list.c (gl_list_node_set_value): New function.
37009         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37010         (gl_array_list_implementation): Update.
37011         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37012         (gl_carray_list_implementation): Update.
37013         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37014         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37015         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37016         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37017         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37018         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37019         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37020         Update.
37021         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37022         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37023         (gl_sublist_list_implementation): Update.
37024
37025 2008-02-10  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37028         Needed when ELEMENT is #defined to 'some_type *'.
37029
37030 2008-02-10  Jim Meyering  <meyering@redhat.com>
37031
37032         New script and module: useless-if-before-free
37033         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37034         * build-aux/useless-if-before-free: New file.
37035         * modules/useless-if-before-free: New file.
37036
37037         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37038
37039         xstrtol_error: Fix typo.
37040         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37041         s/exit_failure/exit_status/.
37042
37043 2008-02-09  Jim Meyering  <meyering@redhat.com>
37044
37045         New script and module: gitlog-to-changelog
37046         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37047         * modules/gitlog-to-changelog: New file.
37048         * build-aux/gitlog-to-changelog: New file.
37049
37050 2008-02-08  Jim Meyering  <meyering@redhat.com>
37051
37052         Avoid two "parameter unused" warnings.
37053         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37054         Mark "st" as used.
37055
37056         Use "git COMMAND", not "git-COMMAND".
37057         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37058         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37059         * build-aux/git-version-gen: Use "git status", not "git-status".
37060
37061 2008-02-07  Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37064         Avoids a crash on Windows Vista.
37065         Reported by Adam Strzelecki <ono@java.pl> via
37066         Simon Josefsson <simon@josefsson.org>.
37067
37068 2008-02-06  Bruno Haible  <bruno@clisp.org>
37069
37070         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37071         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37072         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37074         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37075         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37076         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37077         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37080         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37081         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37082         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37085         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37086         left-adjust flag.
37087         * tests/test-snprintf-posix.h (test_function): Likewise.
37088         * tests/test-sprintf-posix.h (test_function): Likewise.
37089         * tests/test-vasprintf-posix.c (test_function): Likewise.
37090         * doc/posix-functions/fprintf.texi: Update.
37091         * doc/posix-functions/printf.texi: Update.
37092         * doc/posix-functions/snprintf.texi: Update.
37093         * doc/posix-functions/sprintf.texi: Update.
37094         * doc/posix-functions/vfprintf.texi: Update.
37095         * doc/posix-functions/vprintf.texi: Update.
37096         * doc/posix-functions/vsnprintf.texi: Update.
37097         * doc/posix-functions/vsprintf.texi: Update.
37098         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37099
37100 2008-02-06  Bruno Haible  <bruno@clisp.org>
37101
37102         Fix bug introduced on 2008-01-26.
37103         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37104
37105 2008-02-06  Bruno Haible  <bruno@clisp.org>
37106
37107         Fix bug introduced on 2007-06-10.
37108         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37109         !NEED_PRINTF_FLAG_ZERO.
37110
37111 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37112
37113         getloadavg: use libperfstat on AIX5
37114         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37115
37116 2008-02-03  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/diffseq.h: Add comments about required #includes.
37119         Reported by Michael Biggs <gnulib@doubleplum.net>.
37120
37121 2008-02-01  Bruno Haible  <bruno@clisp.org>
37122
37123         * users.txt: Add gnuit.
37124
37125 2008-01-31  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/md4.c (set_uint32): Mark as inline.
37128         * lib/md5.c (set_uint32): Likewise.
37129         * lib/sha1.c (set_uint32): Likewise.
37130         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37131         * m4/md5.m4 (gl_MD5): Likewise.
37132         * m4/sha1.m4 (gl_SHA1): Likewise.
37133
37134 2008-01-31  Jim Meyering  <meyering@redhat.com>
37135
37136         Use "sizeof VAR", rather than a literal "4".
37137         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37138         * lib/md4.c (md4_read_ctx): Likewise.
37139         * lib/sha1.c (sha1_read_ctx): Likewise.
37140
37141 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37142
37143         * tests/test-sha1.c: New file, based on test-md5.c.
37144
37145         * modules/crypto/sha1-tests: New file.
37146
37147 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37148
37149         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37150
37151 2008-01-31  Jim Meyering  <meyering@redhat.com>
37152
37153         Prefer "sizeof v" over the equivalent "4".
37154         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37155         * lib/md5.c (set_uint32): Likewise.
37156         * lib/sha1.c (set_uint32): Likewise.
37157
37158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37159
37160         * lib/sha1.c (set_uint32): Mark function as static.
37161
37162 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37163
37164         md2: clarify comments to say that alignment is not required.
37165         * lib/md2.h: Remove warning about alignment in comment.
37166         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37167         never been required.
37168
37169 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37170
37171         md4: adapt alignment constraint fix from sha1.
37172         * lib/md4.c (set_uint32): New function, from sha1.c
37173         (md4_read_ctx): Use it.
37174         (md4_finish_ctx): Doc fix.
37175         * lib/md4.h: Doc fix.
37176
37177 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37178
37179         md5: adapt alignment constraint fix from sha1.
37180         * lib/md5.c (set_uint32): New function, from sha1.c
37181         (md5_read_ctx): Use it.
37182         (md5_finish_ctx): Doc fix.
37183         * lib/md5.h: Doc fix.
37184
37185 2008-01-30  Peter Palfrader  <weasel@debian.org>
37186
37187         sha1: remove the result buffer alignment constraint
37188         * lib/sha1.c (set_uint32): New function.
37189         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37190         constraint.
37191         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37192         * lib/sha1.h: Likewise.
37193
37194 2008-01-30  Andreas Schwab  <schwab@suse.de>
37195             Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37198         correct definition of LDBL_MIN_EXP.
37199
37200 2008-01-30  Karl Berry  <karl@gnu.org>
37201
37202         * config/srclist-update: try to preserve x bit on updates.
37203         * config/srclistvars.sh: update for karl.
37204
37205 2008-01-29  Jim Meyering  <meyering@redhat.com>
37206
37207         vasnprintf.c: Avoid warning about unused label
37208         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37209         "overflow" label definition and associated code with the
37210         same cpp condition that guards the sole use of that label.
37211
37212 2008-01-26  Bruno Haible  <bruno@clisp.org>
37213
37214         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37215         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37216         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37217         * lib/isnanl-nolibm.h (isnanl): Likewise.
37218         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37219
37220 2008-01-26  Bruno Haible  <bruno@clisp.org>
37221
37222         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37223         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37224
37225 2008-01-26  Bruno Haible  <bruno@clisp.org>
37226
37227         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37228         GCC >= 4.0 built-in.
37229         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37230
37231 2008-01-26  Bruno Haible  <bruno@clisp.org>
37232
37233         Rename isnan, applicable to 'double' only, to isnand.
37234         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37235         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37236         (configure.ac): Update.
37237         (Include): Replace "isnan.h" with "isnand.h".
37238         * m4/isnand.m4: Renamed from m4/isnan.m4.
37239         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37240         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37241         instead of isnan.c.
37242         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37243         instead of HAVE_ISNAN_IN_LIBC.
37244         (isnand): Renamed from isnan.
37245         * lib/isnand.c: New file.
37246         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37247         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37248         (Makefile.am): Update.
37249         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37250         Include isnand.h instead of isnan.h.
37251         (main): Test isnand instead of isnan.
37252         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37253         isnan-nolibm.
37254         * modules/frexp (Depends-on): Likewise.
37255         * modules/frexp-tests (Depends-on): Likewise.
37256         * modules/frexp-nolibm (Depends-on): Likewise.
37257         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37258         * modules/isfinite (Depends-on): Likewise.
37259         * modules/round-tests (Depends-on): Likewise.
37260         * modules/signbit (Depends-on): Likewise.
37261         * modules/signbit-tests (Depends-on): Likewise.
37262         * modules/snprintf-posix (Depends-on): Likewise.
37263         * modules/sprintf-posix (Depends-on): Likewise.
37264         * modules/trunc-tests (Depends-on): Likewise.
37265         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37266         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37267         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37268         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37269         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37270         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37271         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37272         * modules/vasnprintf-posix (Depends-on): Likewise.
37273         * modules/vasprintf-posix (Depends-on): Likewise.
37274         * modules/vfprintf-posix (Depends-on): Likewise.
37275         * modules/vsnprintf-posix (Depends-on): Likewise.
37276         * modules/vsprintf-posix (Depends-on): Likewise.
37277         * lib/frexp.c: Include isnand.h instead of isnan.h.
37278         (ISNAN): Set to isnand instead of isnan.
37279         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37280         (gl_isfinited): Use isnand instead of isnan.
37281         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37282         (gl_signbitd): Use isnand instead of isnan.
37283         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37284         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37285         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37286         (main): Use isnand instead of isnan.
37287         * tests/test-round1.c: Include isnand.h.
37288         (main): Use isnand instead of isnan.
37289         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37290         (ISNAN): Set to isnand instead of isnan.
37291         * tests/test-trunc1.c: Include isnand.h.
37292         (main): Use isnand instead of isnan.
37293         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37294         (equal): Use isnand instead of isnan.
37295         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37296         isnand-nolibm.
37297         * NEWS: Mention the change.
37298
37299 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37300             Bruno Haible  <bruno@clisp.org>
37301
37302         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37303         the GCC builtins for signbits are present and set
37304         REPLACE_SIGNBIT_USING_GCC if so.
37305         * lib/math.in.h (signbit): Define using GCC builtins if
37306         REPLACE_SIGNBIT_USING_GCC is set.
37307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37308         REPLACE_SIGNBIT_USING_GCC.
37309         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37310
37311 2008-01-25  Jim Meyering  <meyering@redhat.com>
37312
37313         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37314         * lib/poll.c: Include <config.h>, not "config.h".
37315         * tests/test-getaddrinfo.c: Likewise.
37316
37317 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37318
37319         * modules/sockets-tests: New file.
37320
37321 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37322
37323         * modules/sockets: New module, can be used to call WSA_Startup and
37324         WSA_Cleanup when needed.
37325
37326         * lib/sockets.h, lib/sockets.c: New files.
37327
37328         * m4/sockets.m4: New file.
37329
37330         * tests/test-sockets.c: New file.
37331
37332 2008-01-19  Bruno Haible  <bruno@clisp.org>
37333
37334         * doc/posix-headers: Renamed from doc/headers.
37335         * doc/posix-functions: Renamed from doc/functions.
37336         * doc/gnulib.texi: Update.
37337
37338 2008-01-19  Bruno Haible  <bruno@clisp.org>
37339
37340         * doc/glibc-functions/strcasestr.texi: Include contents of
37341         doc/functions/strcasestr.texi, fixing the list of platforms.
37342         * doc/functions/strcasestr.texi: Remove file.
37343
37344 2008-01-19  Bruno Haible  <bruno@clisp.org>
37345
37346         * doc/glibc-functions/memmem.texi: Include contents of
37347         doc/functions/memmem.texi.
37348         * doc/functions/memmem.texi: Remove file.
37349
37350 2008-01-18  Bruno Haible  <bruno@clisp.org>
37351
37352         * doc/glibc-functions/*.texi: New files.
37353         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37354         to use the new files.
37355
37356 2008-01-17  Bruno Haible  <bruno@clisp.org>
37357
37358         * tests/test-gethostname.c (main): Fix printf statement.
37359
37360 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37361
37362         * modules/gethostname-tests: New file.
37363
37364         * tests/test-gethostname.c: New file.
37365
37366 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37367
37368         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37369         used by the UNAME case.  Reported by Bruno Haible
37370         <bruno@clisp.org>.
37371
37372 2008-01-17  Eric Blake  <ebb9@byu.net>
37373
37374         Convert c-strcasestr to be more efficient.
37375         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37376         (Depends-on): Add c-strcase, remove malloca, strnlen.
37377         * tests/test-c-strcasestr.c (main): Enhance test.
37378         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37379
37380 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37381
37382         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37383         Use it in creating po/Makevars.
37384
37385 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37386
37387         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37388         Applications that requires it should initialize libgcrypt
37389         manually.
37390
37391 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37392
37393         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37394
37395 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37396
37397         Fix problem with getdate on mingw32 reported by Simon Josefsson
37398         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37399         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37400         tzname", when deciding whether to declare tzname.
37401         * lib/strftime.c (tzname): Likewise.
37402
37403 2008-01-15  Bruno Haible  <bruno@clisp.org>
37404
37405         Work around a MacOS X 10.5 bug in frexpl().
37406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37407         * doc/functions/frexpl.texi: Document the bug.
37408         Reported by Elias Pipping <pipping@gentoo.org>.
37409
37410 2008-01-14  Eric Blake  <ebb9@byu.net>
37411
37412         Touch up previous patch.
37413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37414         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37415
37416         Convert strcasestr module to use Two-Way algorithm.
37417         * modules/strcasestr-simple: New module, based on the old
37418         strcasestr, but with Two-Way rather than KMP.
37419         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37420         * lib/string.in.h (rpl_strcasestr): Declare.
37421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37422         performance.
37423         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37424         * modules/string (Makefile.am): Support strcasestr.
37425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37426         * modules/strcasestr-tests (Depends-on): Check for alarm.
37427         * tests/test-strcasestr.c: Augment test.
37428         * lib/str-two-way.h: Clean up stray macro.
37429         * NEWS: Document new module.
37430         * MODULES.html.sh (string handling): Likewise.
37431         * doc/functions/strcasestr.texi: New file.
37432         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37433         here, since it is not a POSIX function.
37434
37435 2008-01-14  Colin Watson  <cjwatson@debian.org>
37436             Bruno Haible  <bruno@clisp.org>
37437
37438         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37439         works fine; if not, set REPLACE_STRSIGNAL.
37440         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37442         REPLACE_STRSIGNAL.
37443         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37444         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37445         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37446
37447 2008-01-14  Bruno Haible  <bruno@clisp.org>
37448
37449         * modules/strsignal (Include): Change to <string.h>.
37450
37451 2008-01-14  Colin Watson  <cjwatson@debian.org>
37452
37453         * modules/argp (Notice): Add a notice recommending to change
37454         XGETTEXT_OPTIONS.
37455         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37456
37457 2008-01-13  Colin Watson  <cjwatson@debian.org>
37458
37459         * modules/strsignal-tests: New file.
37460         * tests/test-strsignal.c: New file.
37461
37462         * lib/strsignal.c: New file, from glibc with modifications.
37463         * lib/siglist.h: New file, from glibc with modifications.
37464         * lib/string.in.h (strsignal): New declaration.
37465         * m4/strsignal.m4: New file.
37466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37467         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37468         * modules/strsignal: New file.
37469         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37470         HAVE_DECL_STRSIGNAL.
37471
37472 2008-01-13  Bruno Haible  <bruno@clisp.org>
37473
37474         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37475         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37476         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37477         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37478
37479 2008-01-13  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37482         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37483         * lib/argp.h (__attribute__): Likewise.
37484         * lib/c-stack.c (__attribute__): Likewise.
37485         * lib/error.h (__attribute__): Likewise.
37486         * lib/fts.c (__attribute__): Likewise.
37487         * lib/openat.h (__attribute__): Likewise.
37488         * lib/stdio.in.h (__attribute__): Likewise.
37489         * lib/string.in.h (__attribute__): Likewise.
37490         * lib/utimens.c (__attribute__): Likewise.
37491         * lib/vasnprintf.h (__attribute__): Likewise.
37492         * lib/xalloc.h (__attribute__): Likewise.
37493         * lib/xprintf.h (__attribute__): Likewise.
37494         * lib/xstrtol.h (__attribute__): Likewise.
37495         * lib/xvasprintf.h (__attribute__): Likewise.
37496
37497 2008-01-12  Bruno Haible  <bruno@clisp.org>
37498
37499         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37500         * doc/glibc-headers/a.out.texi: New file.
37501         * doc/glibc-headers/aliases.texi: New file.
37502         * doc/glibc-headers/alloca.texi: New file.
37503         * doc/glibc-headers/ar.texi: New file.
37504         * doc/glibc-headers/argp.texi: New file.
37505         * doc/glibc-headers/argz.texi: New file.
37506         * doc/glibc-headers/byteswap.texi: New file.
37507         * doc/glibc-headers/crypt.texi: New file.
37508         * doc/glibc-headers/endian.texi: New file.
37509         * doc/glibc-headers/envz.texi: New file.
37510         * doc/glibc-headers/err.texi: New file.
37511         * doc/glibc-headers/error.texi: New file.
37512         * doc/glibc-headers/execinfo.texi: New file.
37513         * doc/glibc-headers/fpu_control.texi: New file.
37514         * doc/glibc-headers/fstab.texi: New file.
37515         * doc/glibc-headers/fts.texi: New file.
37516         * doc/glibc-headers/getopt.texi: New file.
37517         * doc/glibc-headers/ieee754.texi: New file.
37518         * doc/glibc-headers/ifaddrs.texi: New file.
37519         * doc/glibc-headers/libintl.texi: New file.
37520         * doc/glibc-headers/mcheck.texi: New file.
37521         * doc/glibc-headers/mntent.texi: New file.
37522         * doc/glibc-headers/obstack.texi: New file.
37523         * doc/glibc-headers/paths.texi: New file.
37524         * doc/glibc-headers/printf.texi: New file.
37525         * doc/glibc-headers/pty.texi: New file.
37526         * doc/glibc-headers/resolv.texi: New file.
37527         * doc/glibc-headers/shadow.texi: New file.
37528         * doc/glibc-headers/sysexits.texi: New file.
37529         * doc/glibc-headers/ttyent.texi: New file.
37530
37531 2008-01-12  Jim Meyering  <meyering@redhat.com>
37532
37533         announce-gen: emit Gnulib's git-based version string.
37534         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37535         New option --gnulib-version=V, where V is expected to be
37536         the output of running git describe in the gnulib directory.
37537         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37538         not useful, and plan to stop publishing an xdelta file with each
37539         coreutils release.
37540
37541         * build-aux/announce-gen: Also check for lzma-compressed files.
37542
37543 2008-01-11  Bruno Haible  <bruno@clisp.org>
37544
37545         * tests/test-memmem.c (main): Increase maximum allowed time.
37546         * tests/test-strstr.c (main): Likewise.
37547
37548 2008-01-11  Bruno Haible  <bruno@clisp.org>
37549
37550         * doc/functions/memmem.texi: Add more precisions about platforms.
37551         * doc/functions/strstr.texi: Likewise.
37552
37553 2008-01-10  Eric Blake  <ebb9@byu.net>
37554
37555         * m4/strstr.m4: Delete cruft from copy-n-paste.
37556         Reported by Bruno Haible.
37557
37558 2008-01-10  Bruno Haible  <bruno@clisp.org>
37559
37560         Make c-strstr rely on strstr.
37561         * lib/c-strstr.c: Don't include str-kmp.h.
37562         (c_strstr): Define in terms of strstr.
37563         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37564         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37565
37566 2008-01-10  Bruno Haible  <bruno@clisp.org>
37567
37568         * doc/gnulib.texi (String Functions in C Locale): New section.
37569         * doc/c-ctype.texi: New file.
37570         * doc/c-strcase.texi: New file.
37571         * doc/c-strcaseeq.texi: New file.
37572         * doc/c-strcasestr.texi: New file.
37573         * doc/c-strstr.texi: New file.
37574         * doc/c-strtod.texi: New file.
37575         * doc/c-strtold.texi: New file.
37576
37577 2008-01-10  Eric Blake  <ebb9@byu.net>
37578
37579         * lib/relocatable.h: Fix a comment.
37580
37581 2008-01-10  Eric Blake  <ebb9@byu.net>
37582
37583         Share two-way algorithm.
37584         * lib/str-two-way.h: New file, merged from...
37585         * lib/memmem.c: ...here...
37586         * lib/strstr.c: ...and here.
37587         * modules/memmem (Files): Use it.
37588         * modules/strstr (Files): Likewise.
37589
37590         Avoid quadratic strstr implementations.
37591         * lib/strstr.c: New file.
37592         * m4/strstr.m4: Likewise.
37593         * modules/strstr: Likewise.
37594         * modules/strstr-tests: Likewise.
37595         * tests/test-strstr.c: Likewise.
37596         * lib/string.in.h (rpl_strstr): Declare.
37597         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37599         * modules/string (Makefile.am): Likewise.
37600         * MODULES.html.sh (string handling): Mention new module.
37601         * doc/functions/strstr.texi (strstr): Document the bug.
37602
37603 2008-01-10  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/relocatable.h (relocate): State whether result is freshly
37606         allocated or not.
37607         * lib/relocatable.c (relocate): Return a freshly allocated string
37608         instead of a pointer to a privately held string.
37609         Reported by Sylvain Beucler <beuc@gnu.org>.
37610
37611 2008-01-10  Colin Watson  <cjwatson@debian.org>
37612
37613         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37614         s/S_ISNLK/S_ISLNK/.
37615
37616 2008-01-09  Bruno Haible  <bruno@clisp.org>
37617
37618         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37619         and other files.
37620         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37621         if it's only a guess.
37622         * modules/memmem: Simplify by depending on memmem-simple.
37623
37624 2008-01-09  Bruno Haible  <bruno@clisp.org>
37625
37626         Work around OpenBSD 4.0 tdelete() bug.
37627         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37628         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37629         macros and don't redefine the enum values.
37630         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37631         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37632         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37633
37634 2008-01-09  Bruno Haible  <bruno@clisp.org>
37635
37636         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37637         (main): Don't perform the tests if setlocale did not install a UTF-8
37638         locale. Needed on OpenBSD 4.0.
37639         * modules/wcwidth-tests (Depends-on): Add localcharset.
37640
37641 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37642
37643         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37644         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37645         * NEWS: announce this.
37646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37647
37648 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37649         and Eric Blake  <ebb9@byu.net>
37650
37651         Add memmem-simple module.
37652         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37653         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37654         * modules/memmem-simple: New file.
37655         * modules/memmem (Description): Tweak.
37656         * MODULES.html.sh (string handling): Mention new module.
37657         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37658         addressed by memmem-simple.
37659         * NEWS: Document the difference.
37660
37661 2008-01-09  Eric Blake  <ebb9@byu.net>
37662
37663         Give gcc some memmem optimization hints.
37664         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37665         (strcasestr): Declare as pure.
37666         * modules/memmem (Maintainer): Claim my implementation.
37667
37668 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37669
37670         Support AIX 6.1 and higher.
37671         * build-aux/config.libpath: Likewise.
37672         * build-aux/config.rpath: Likewise.
37673
37674 2008-01-08  Jim Meyering  <meyering@redhat.com>
37675             Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37678         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37679         Reported by Peter Fales in
37680         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37681
37682 2008-01-08  Bruno Haible  <bruno@clisp.org>
37683
37684         * modules/unictype/category-of (Depends-on): Add
37685         unictype/category-none.
37686         * modules/unictype/category-and-tests (Depends-on): Add
37687         unictype/category-{L,N,Lu,Nd}.
37688         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37689         * modules/unictype/category-or-tests (Depends-on): Add
37690         unictype/category-{L,N}.
37691         * modules/unictype/category-name-tests (Depends-on): Add
37692         unictype/category-{Z,Nl}.
37693         Reported by Simon Josefsson.
37694
37695 2008-01-08  Bruno Haible  <bruno@clisp.org>
37696
37697         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37698         convention better.
37699         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37700         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37701         Reported by Peter Miller <millerp@canb.auug.org.au>.
37702
37703 2008-01-08  Eric Blake  <ebb9@byu.net>
37704
37705         Rewrite memmem to guarantee linear complexity without malloc.
37706         * lib/memmem.c (memmem): Use Two-Way rather than
37707         Knuth-Morris-Pratt, to allow O(1) space usage.
37708         (critical_factorization, two_way_short_needle)
37709         (two_way_long_needle): New functions.
37710         (knuth_morris_pratt): Delete.
37711         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37712         Add stdint.
37713         * tests/test-memmem.c (main): Add tests for periodic needle and
37714         sublinear performance.
37715         * doc/functions/memmem.texi (memmem): Document other deficiencies
37716         in cygwin and older glibc.
37717
37718 2008-01-08  Bruno Haible  <bruno@clisp.org>
37719
37720         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37721         augmentation.
37722
37723 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37724
37725         Add a configure time option: --disable-acl.
37726         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37727         AC_ARG_ENABLE(acl).
37728
37729 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37730
37731         * tests/test-localename.c: Don't include obsolete "setenv.h".
37732
37733         * modules/localename-tests (Depends-on): Need unsetenv.
37734
37735 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37736
37737         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37738
37739 2008-01-06  Colin Watson  <cjwatson@debian.org>
37740
37741         * users.txt: Add man-db.
37742
37743 2008-01-07  Bruno Haible  <bruno@clisp.org>
37744
37745         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37746         previous section name.
37747
37748 2008-01-07  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/progname.c (set_program_name): Don't strip off a leading
37751         "lt-" prefix outside a .libs directory.
37752         Suggested by Paul Eggert.
37753
37754 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37755             Bruno Haible  <bruno@clisp.org>
37756
37757         Improve memory cleanup in 'relocatable' module.
37758         * lib/relocatable.h (compute_curr_prefix): Change return type to
37759         'char *'.
37760         * lib/relocatable.c (compute_curr_prefix): Change return type to
37761         'char *'. Free curr_installdir after use.
37762         (relocate): Free curr_prefix_better after use.
37763         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37764
37765 2008-01-01  Bruno Haible  <bruno@clisp.org>
37766
37767         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37768         failure on older glibc systems.
37769         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37770
37771 2008-01-05  Eric Blake  <ebb9@byu.net>
37772
37773         Avoid quadratic system memmem.
37774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37775         Reported by Ralf Wildenhues.
37776
37777         Fix memmem test for mingw.
37778         * modules/memmem-tests (configure.ac): Check for alarm.
37779         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37780         it.
37781         * doc/functions/memmem.texi: New file.
37782         * doc/gnulib.texi (Function Substitutes): Add memmem.
37783         Reported by Bruno Haible.
37784
37785 2008-01-04  Bruno Haible  <bruno@clisp.org>
37786
37787         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37788         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37789         gl_HEADER_STRING_H_DEFAULTS.
37790
37791 2008-01-04  Eric Blake  <ebb9@byu.net>
37792
37793         Shorten duration of memmem test.
37794         * tests/test-memmem.c (main): Use alarm to declare failure if test
37795         is taking too long.
37796         Reported by Ralf Wildenhues.
37797
37798 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37799
37800         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37801         string, needed by strerror.
37802
37803 2008-01-03  Colin Watson  <cjwatson@debian.org>
37804             Bruno Haible  <bruno@clisp.org>
37805
37806         * doc/gnulib-tool.texi (Localization): New section.
37807
37808 2008-01-02  Bruno Haible  <bruno@clisp.org>
37809
37810         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37811         variables to 'unsigned char *' type.
37812         Reported by Paul Eggert.
37813
37814 2008-01-02  Jim Meyering  <jim@meyering.net>
37815
37816         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37817
37818 2007-12-31  Jim Meyering  <jim@meyering.net>
37819
37820         Avoid use of private FTS type name.
37821         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37822
37823 2007-12-30  Karl Berry  <karl@gnu.org>
37824
37825         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37826         work around defect in Texinfo and/or the standalone Info browser.
37827
37828 2007-12-30  Bruno Haible  <bruno@clisp.org>
37829
37830         Unify 5 copies of the KMP code.
37831         * lib/str-kmp.h: New file.
37832         * lib/c-strcasestr.c: Include str-kmp.h.
37833         (knuth_morris_pratt): Remove function.
37834         (c_strcasestr): Update.
37835         * lib/c-strstr.c: Include str-kmp.h.
37836         (knuth_morris_pratt): Remove function.
37837         (c_strcasestr): Update.
37838         * lib/mbscasestr.c: Include str-kmp.h.
37839         (knuth_morris_pratt_unibyte): Remove function.
37840         * lib/mbsstr.c: Include str-kmp.h.
37841         (knuth_morris_pratt_unibyte): Remove function.
37842         * lib/strcasestr.c: Include str-kmp.h.
37843         (knuth_morris_pratt): Remove function.
37844         (strcasestr): Update.
37845         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37846         * modules/c-strstr (Files): Likewise.
37847         * modules/mbscasestr (Files): Likewise.
37848         * modules/mbsstr (Files): Likewise.
37849         * modules/strcasestr (Files): Likewise.
37850         Suggested by Paul Eggert.
37851
37852 2007-12-30  Bruno Haible  <bruno@clisp.org>
37853
37854         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37855         defined.
37856
37857 2007-12-30  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/xmalloca.h: Include xalloc.h.
37860         (xnmalloca): New macro.
37861
37862 2007-12-30  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/malloca.h (nmalloca): New macro.
37865         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37866         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37867         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37868         knuth_morris_pratt_multibyte): Likewise.
37869         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37870         knuth_morris_pratt_multibyte): Likewise.
37871         * lib/memmem.c (knuth_morris_pratt): Likewise.
37872         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37873
37874 2007-12-25  Bruno Haible  <bruno@clisp.org>
37875
37876         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37877         * lib/glob.c: Don't include openat.h.
37878         (link_exists2_p): Add back the code that deals with the
37879         !GLOB_ALTDIRFUNC case.
37880         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37881         let it do the filename concatenation.
37882         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37883         * modules/glob (Depends-on): Remove openat.
37884
37885 2007-12-31  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/dirfd (License): Change to LGPLv2+.
37888         Approved by Jim Meyering.
37889
37890 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37891
37892         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37893         when multiplying M by sizeof (size_t).
37894
37895 2007-12-10  Martin Lambers  <marlam@marlam.de>
37896
37897         Override getpagesize on mingw.
37898         * lib/getpagesize.c: New file.
37899         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37900         * modules/getpagesize (Files): Add lib/getpagesize.c.
37901         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37903         REPLACE_GETPAGESIZE.
37904         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37905
37906 2007-12-25  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/localcharset (Notice): New field.
37909         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37910         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37911
37912 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37913             Bruno Haible  <bruno@clisp.org>
37914
37915         Avoid using the syntax symbol() in formatted documentation.
37916         * MODULES.html.sh (func_module): When replacing symbol() with a
37917         hyperlink, remove the parentheses. Show an error if some remain.
37918         Recognize and render the '...' syntax.
37919         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37920         Rework. Add paragraph about GCC's inlining.
37921         * doc/alloca.texi: Likewise.
37922         * doc/error.texi: Remove parentheses from symbol reference.
37923         * doc/gnulib-intro.texi: Likewise.
37924         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37925         * modules/fnmatch (Description): Reword to say "the ... function".
37926         * modules/full-read (Description): Likewise.
37927         * modules/full-write (Description): Likewise.
37928         * modules/safe-read (Description): Likewise.
37929         * modules/safe-write (Description): Likewise.
37930         * modules/strchrnul (Description): Likewise.
37931         * modules/trim (Description): Likewise.
37932         * modules/error (Description): Remove parentheses from symbol
37933         references.
37934         * modules/verror (Description): Likewise.
37935         Reported by Karl Berry.
37936
37937 2007-12-25  Bruno Haible  <bruno@clisp.org>
37938
37939         Fixup after 2007-10-16 commit.
37940         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37941
37942 2007-12-24  Bruno Haible  <bruno@clisp.org>
37943
37944         Make --enable-relocatable work with DESTDIR.
37945         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37946         to compute installdir from destprog.
37947         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37948         also set the RELOC_DESTDIR variable.
37949         Reported by Левашев Иван <octagram@bluebottle.com>.
37950
37951 2007-12-24  Bruno Haible  <bruno@clisp.org>
37952
37953         Fix link error due to xalloc_die().
37954         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37955         of xreadlink.
37956         * lib/relocwrapper.c: Update comments.
37957         * build-aux/install-reloc: Remove xreadlink.c from file list.
37958         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37959         xreadlink.c.
37960         Reported by Левашев Иван <octagram@bluebottle.com>.
37961
37962 2007-12-24  Bruno Haible  <bruno@clisp.org>
37963
37964         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37965         * lib/setenv.h: Remove file.
37966         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37967         lib/setenv.h.
37968         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37969         (Depends-on): Add stdlib.
37970         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37971         gl_FUNC_UNSETENV.
37972         (Include): Replace setenv.h with <stdlib.h>.
37973         * modules/unsetenv: New file.
37974         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37975         * lib/unsetenv.c: Include <stdlib.h> first.
37976         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37977         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37978         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37979         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37980         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37981         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37983         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37984         * doc/functions/unsetenv.texi: Update.
37985         * modules/xsetenv (Depends-on): Add unsetenv.
37986         * modules/getdate (Depends-on): Likewise.
37987         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37988         * lib/xsetenv.c: Don't include setenv.h.
37989         * lib/getdate.y: Likewise.
37990         * lib/relocwrapper.c: Likewise.
37991         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37992         (Depends-on): Add stdlib.
37993         * NEWS: Mention the changes.
37994         Reported by Левашев Иван <octagram@bluebottle.com>.
37995
37996 2007-12-23  Bruno Haible  <bruno@clisp.org>
37997
37998         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37999         indentation.
38000
38001 2007-12-23  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/c-strcasestr.c: Add more comments.
38004         * lib/c-strstr.c: Likewise.
38005         * lib/mbscasestr.c: Likewise.
38006         * lib/mbsstr.c: Likewise.
38007         * lib/strcasestr.c: Likewise.
38008         * lib/memmem.c: Likewise.
38009
38010 2007-12-23  Bruno Haible  <bruno@clisp.org>
38011
38012         * tests/test-memmem.c: Include <string.h> first.
38013
38014 2007-12-22  Bruno Haible  <bruno@clisp.org>
38015
38016         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38017         the contents of $testsbase.
38018         Reported by Ralf Wildenhues.
38019
38020 2007-12-22  Bruno Haible  <bruno@clisp.org>
38021
38022         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38023         two variables local_ldadd_before, local_ldadd_last.
38024
38025 2007-12-20  Eric Blake  <ebb9@byu.net>
38026
38027         Work around circular library issue when cross-compiling.
38028         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38029         that progname.o does not need to pull in rpl_memcmp.
38030
38031 2007-12-19  Eric Blake  <ebb9@byu.net>
38032
38033         Fix memmem to avoid O(n^2) worst-case complexity.
38034         * lib/memmem.c (knuth_morris_pratt): New function.
38035         (memmem): Use it if first few naive iterations fail.
38036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38037         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38038         * modules/memchr (License): Likewise.
38039         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38040         malloca.
38041         * tests/test-memmem.c: Rewrite, borrowing ideas from
38042         test-mbsstr1.c; the old version wouldn't even compile!
38043         * modules/memmem-tests: New file.
38044         * lib/string.in.h (rpl_memmem): Add declaration.
38045         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38047         REPLACE_MEMMEM.
38048
38049 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38050
38051         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38052         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38053         before any system include files, and undef after them all.  This
38054         should fix a problem on VMS reported by John E. Malmberg in
38055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38056
38057 2007-12-17  Eric Blake  <ebb9@byu.net>
38058
38059         Revert addition of verify, for BSD/OS.
38060         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38061         can't handle large files, for the sake of obsolete platforms.
38062         * modules/fseeko (Depends-on): Remove verify.
38063         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38064         * doc/functions/ftello.texi (ftello): Likewise.
38065         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38066         Reported by Larry Jones.
38067
38068 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38069
38070         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38071         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38072
38073 2007-12-17  Jim Meyering  <meyering@redhat.com>
38074
38075         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38076         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38077         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38078         * modules/getcwd (Depends-on): Add openat.
38079         Reported by Petr Salinger.
38080
38081 2007-12-17  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38084         avoid a segmentation fault of the configure test on x86_64 systems.
38085
38086 2007-12-15  Jim Meyering  <meyering@redhat.com>
38087
38088         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38089
38090 2007-12-13  Eric Blake  <ebb9@byu.net>
38091
38092         Another fseek test.
38093         * tests/test-fseek.c (main): Also test ungetc handling.
38094         * tests/test-fseeko.c (main): Likewise.
38095         * modules/fseeko (Depends-on): Add verify.
38096         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38097         large.
38098         Reported by Larry Jones.
38099
38100         Fix fseeko on mingw.
38101         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38102         seek.
38103
38104         Beef up fseek tests.
38105         * tests/test-fseek.c (main): Also test eof handling.
38106         * tests/test-fseeko.c (main): Likewise.
38107         Reported by Larry Jones.
38108
38109 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38110
38111         Fix fseeko on BSD-based platforms.
38112         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38113         successful seek.
38114
38115 2007-12-12  Eric Blake  <ebb9@byu.net>
38116
38117         Allow circular dependency of separate libtests.a
38118         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38119         when use_libtests.
38120
38121 2007-12-11  Eric Blake  <ebb9@byu.net>
38122
38123         Fix bug with -0.0L in previous patch.
38124         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38125         * tests/test-isnan.c (main): Also test on zeroes.
38126         * tests/test-isnanf.c (main): Likewise.
38127         * tests/test-isnanl.h (main): Likewise.
38128
38129         Detect pseudo-denormals on x86 even when cross-compiling.
38130         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38131         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38132         invalid bit patterns that happen to satisfy ==.
38133
38134         Avoid link failures with separate libtests.a.
38135         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38136         last, to satisfy circular dependencies.
38137
38138 2007-12-11  Eric Blake  <ebb9@byu.net>
38139         and Bruno Haible  <bruno@clisp.org>
38140
38141         Fix OpenBSD 4.0 <float.h> handling of long double.
38142         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38143         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38144         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38145
38146 2007-12-11  Jim Meyering  <meyering@redhat.com>
38147
38148         * users.txt: Add libvirt.
38149
38150         Support versions of autoconf prior to 2.59c.
38151         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38152         if it is not already defined.
38153
38154 2007-12-09  Bruno Haible  <bruno@clisp.org>
38155
38156         Let 'gnulib-tool --import' collect sources needed for the tests in
38157         tests/ rather than in lib/.
38158         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38159         argument. If true, add rules to generate libtests.a, and put libtests.a
38160         into $(LDADD). Consider source files in subdirectories and set
38161         uses_subdirs.
38162         (func_emit_initmacro_start, func_emit_initmacro_end,
38163         func_emit_initmacro_done): Pass all arguments explicitly.
38164         (func_import): Determine two module lists main_modules,
38165         testsrelated_modules. Determine use_libtests. Determine two variables
38166         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38167         instead of just sed_transform_lib_file. Determine two variables
38168         main_files and testsrelated_files. Compute 'files' as the union of
38169         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38170         func_add_or_update. In the generated gnulib-comp.m4, collect the
38171         object files for tests/ in different variables than those for lib/.
38172         Substitute LIBTESTS_LIBDEPS.
38173         (func_create_testdir): Combine the uses_subdirs results from
38174         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38175
38176 2007-12-09  Bruno Haible  <bruno@clisp.org>
38177
38178         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38179         the build-aux directory.
38180
38181 2007-12-09  Bruno Haible  <bruno@clisp.org>
38182
38183         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38184         introduced on 2006-09-09.
38185
38186 2007-12-07  Jim Meyering  <meyering@redhat.com>
38187
38188         Let these macros work also with autoconf-2.59.
38189         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38190         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38192
38193 2007-12-06  Jim Meyering  <meyering@redhat.com>
38194
38195         Avoid a configure-time syntax error in gl_FUNC_ACL.
38196         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38197         function in each branch, before testing the cache variable.
38198
38199 2007-12-04  Eric Blake  <ebb9@byu.net>
38200
38201         Make scripts executable.
38202         * build-aux/config.guess: Add execute permissions.
38203         * build-aux/config.sub: Likewise.
38204         * build-aux/gendocs.sh: Likewise.
38205
38206         Fix frexp on mingw.
38207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38208         cross-compiling.
38209         * doc/functions/frexp.texi (frexp): Document the bug.
38210
38211         Make cygwin fseeko check more reliable.
38212         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38213         version numbers, rather than unrelated feature check.
38214         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38215         * doc/functions/ftello.texi (ftello): Likewise.
38216         Reported by Bruno Haible.
38217
38218         * m4/strerror.m4: Bump version number.
38219
38220 2007-12-03  Bruno Haible  <bruno@clisp.org>
38221
38222         * doc/functions/mprotect.texi: Mention the mingw problem.
38223
38224 2007-12-03  Eric Blake  <ebb9@byu.net>
38225
38226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38227         REPLACE_STRERROR is initialized before this macro.
38228
38229 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38230
38231         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38232         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38233         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38234         put -lsec in even for programs other than 'ls'.  This fixes a problem
38235         for gettext reported by Bruno Haible in
38236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38237         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38238         Add support for Solaris 10.  This isn't efficient, but should get the
38239         job done for now.
38240
38241 2007-12-03  James Youngman  <jay@gnu.org>
38242
38243         * doc/regexprops-generic.texi: change "an close-group" to "a
38244         close-group" and "illegal" to "not allowed".
38245
38246 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38247
38248         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38249         pr_byname.h. Needed for the rare case when the maintainer has done
38250         "make maintainer-clean" in the source directory and then attempts a
38251         build outside the source directory.
38252         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38253         scripts_byname.h.
38254
38255 2007-12-02  Martin Lambers <marlam@marlam.de>
38256             Bruno Haible  <bruno@clisp.org>
38257
38258         * lib/getpagesize.h: Remove file.
38259         * lib/unistd.in.h: Include declaration of getpagesize here.
38260         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38261         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38262         HAVE_SYS_PARAM_H.
38263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38264         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38265         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38266         (Depends-on): Add unistd.
38267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38268         (Include): Use <unistd.h> instead of getpagesize.h.
38269         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38270         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38271         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38272         gl_GETPAGESIZE invocation, already handled by module dependency.
38273         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38274
38275 2007-12-02  Bruno Haible  <bruno@clisp.org>
38276
38277         * modules/strings-tests: New file.
38278         * tests/test-strings.c: New file.
38279
38280         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38281         * lib/strings.in.h: New file.
38282         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38283         * m4/strings_h.m4: New file.
38284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38285         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38286         * modules/strings: New file.
38287         * modules/string (Makefile.am): Update.
38288         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38289         Reported by Karl Berry.
38290
38291 2007-12-01  Eric Blake  <ebb9@byu.net>
38292
38293         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38294         accomodate fix in cygwin 1.5.25.
38295
38296 2007-12-01  Jim Meyering  <meyering@redhat.com>
38297
38298         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38299         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38300         that would inhibit utf8-optimization of a regexp containing line-
38301         or buffer-anchors, e.g., `^', `$'.
38302
38303 2007-11-30  Bruno Haible  <bruno@clisp.org>
38304
38305         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38306         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38307         glthread_recursive_lock_init.
38308         * lib/lock.c (glthread_recursive_lock_init)
38309         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38310         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38311
38312 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38313
38314         New function qset_acl, like set_acl but with syscall semantics.
38315         * lib/acl.h (qset_acl): New decl.
38316         * lib/acl.c (qset_acl): New function.
38317         (set_acl): Use new function.  Use more-consistent diagnostics.
38318
38319 2007-11-28  Jim Meyering  <meyering@redhat.com>
38320
38321         * modules/physmem (License): Change from GPL to LGPLv2+.
38322
38323 2007-11-26  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38326         'long double' type has excess precision.
38327         Reported by Jim Meyering in
38328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38329
38330 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38331
38332         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38333         Sync from <http://gnu.org/licenses>.
38334         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38335         with license text from same location.
38336         * doc/maintain.texi, doc/standards.texi:  Sync from
38337         <http://savannah.gnu.org/projects/gnustandards>.
38338
38339 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
38340         and Jim Meyering  <meyering@redhat.com>
38341
38342         Adjust getdate' grammar to accept a slightly more regular language.
38343         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38344         Before, the former was rejected.
38345         * lib/getdate.y (digits_to_date_time): New function, factored
38346         out of ...
38347         (number): ...here.  Just call digits_to_date_time.
38348         (hybrid): New non-terminal to handle an <unsigned number,
38349         signed relative offset> sequence consistently.
38350
38351 2007-11-18  Jim Meyering  <meyering@redhat.com>
38352
38353         Pull my changes from coreutils:
38354         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38355         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38356         use of $gnulib_tool_option_extras, so that it's separated from the
38357         preceding argument.
38358
38359         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38360         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38361         parent destination directories before copying a file into place.
38362
38363 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38364
38365         bootstrap: work also with 4-argument variant of AC_INIT
38366         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38367
38368 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38369
38370         Port test-getaddrinfo to Solaris.
38371         Problem reported by Bruno Haible in
38372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38373         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38374         explanation of setting 'hints'.
38375         Don't reject an implementation merely because it returns EAI_SERVICE.
38376         (EAI_SERVICE): Define to 0 if not defined.
38377
38378 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38379
38380         The license of gnu-make and posix-shell is now "GPLed build tool".
38381         * modules/gnu-make (License): Likewise.
38382         * modules/posix-shell (License): Likewise.
38383
38384         New module posix-shell, for determining a POSIX shell
38385         or perhaps something that is close enough to a POSIX shell.
38386         * m4/posix-shell.m4: New file.
38387         * modules/posix-shell: New file.
38388
38389         * MODULES.html.sh: Mention new module.
38390
38391         New module gnu-make, for determining whether we're using GNU Make.
38392         * m4/gnu-make.m4: New file.
38393         * modules/gnu-make: New file.
38394         * MODULES.html.sh: Mention new module.
38395
38396 2007-11-14  Jim Meyering  <meyering@redhat.com>
38397
38398         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38399         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38400         use this macro to create a function _definition_.
38401         Remove useless "#undef ARGMATCH_DIE".
38402
38403 2007-11-14  Bruno Haible  <bruno@clisp.org>
38404
38405         * lib/config.charset: Update for OpenBSD 4.1.
38406         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38407
38408 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38409
38410         Document 64-bit #if problems in stdint.texi.
38411         * doc/headers/stdint.texi (stdint.h): Mention problems with
38412         64-bit-#if, and how to work around them.
38413
38414         Don't insist on 'long long int' support in the preprocessor.  It
38415         breaks too many things.  For example, PRIdMAX still uses a 'long
38416         long int' format with the latest Sun compiler, even though
38417         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38418         preprocessor problem.  This causes the latest coreutils to dump
38419         core on Solaris 10 sparc with the Sun C compiler.
38420         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38421         the troublesome expressions at configure-time, not at #if-time.
38422         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38423         preprocessor.
38424         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38425         compile-time C checks, done at 'configure'-time.
38426         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38427         * modules/inttypes (Makefile): Substitute the new symbols that
38428         gl_INTTYPES_H now generates.
38429         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38430
38431 2007-11-12  Bruno Haible  <bruno@clisp.org>
38432
38433         Tests for Unicode character classification functions.
38434
38435         * modules/unictype/bidicategory-byname-tests: New file.
38436         * modules/unictype/bidicategory-name-tests: New file.
38437         * modules/unictype/bidicategory-of-tests: New file.
38438         * modules/unictype/bidicategory-test-tests: New file.
38439         * modules/unictype/block-list-tests: New file.
38440         * modules/unictype/block-of-tests: New file.
38441         * modules/unictype/block-test-tests: New file.
38442         * modules/unictype/category-C-tests: New file.
38443         * modules/unictype/category-Cc-tests: New file.
38444         * modules/unictype/category-Cf-tests: New file.
38445         * modules/unictype/category-Cn-tests: New file.
38446         * modules/unictype/category-Co-tests: New file.
38447         * modules/unictype/category-Cs-tests: New file.
38448         * modules/unictype/category-L-tests: New file.
38449         * modules/unictype/category-Ll-tests: New file.
38450         * modules/unictype/category-Lm-tests: New file.
38451         * modules/unictype/category-Lo-tests: New file.
38452         * modules/unictype/category-Lt-tests: New file.
38453         * modules/unictype/category-Lu-tests: New file.
38454         * modules/unictype/category-M-tests: New file.
38455         * modules/unictype/category-Mc-tests: New file.
38456         * modules/unictype/category-Me-tests: New file.
38457         * modules/unictype/category-Mn-tests: New file.
38458         * modules/unictype/category-N-tests: New file.
38459         * modules/unictype/category-Nd-tests: New file.
38460         * modules/unictype/category-Nl-tests: New file.
38461         * modules/unictype/category-No-tests: New file.
38462         * modules/unictype/category-P-tests: New file.
38463         * modules/unictype/category-Pc-tests: New file.
38464         * modules/unictype/category-Pd-tests: New file.
38465         * modules/unictype/category-Pe-tests: New file.
38466         * modules/unictype/category-Pf-tests: New file.
38467         * modules/unictype/category-Pi-tests: New file.
38468         * modules/unictype/category-Po-tests: New file.
38469         * modules/unictype/category-Ps-tests: New file.
38470         * modules/unictype/category-S-tests: New file.
38471         * modules/unictype/category-Sc-tests: New file.
38472         * modules/unictype/category-Sk-tests: New file.
38473         * modules/unictype/category-Sm-tests: New file.
38474         * modules/unictype/category-So-tests: New file.
38475         * modules/unictype/category-Z-tests: New file.
38476         * modules/unictype/category-Zl-tests: New file.
38477         * modules/unictype/category-Zp-tests: New file.
38478         * modules/unictype/category-Zs-tests: New file.
38479         * modules/unictype/category-and-not-tests: New file.
38480         * modules/unictype/category-and-tests: New file.
38481         * modules/unictype/category-byname-tests: New file.
38482         * modules/unictype/category-name-tests: New file.
38483         * modules/unictype/category-none-tests: New file.
38484         * modules/unictype/category-of-tests: New file.
38485         * modules/unictype/category-or-tests: New file.
38486         * modules/unictype/category-test-withtable-tests: New file.
38487         * modules/unictype/combining-class-tests: New file.
38488         * modules/unictype/ctype-alnum-tests: New file.
38489         * modules/unictype/ctype-alpha-tests: New file.
38490         * modules/unictype/ctype-blank-tests: New file.
38491         * modules/unictype/ctype-cntrl-tests: New file.
38492         * modules/unictype/ctype-digit-tests: New file.
38493         * modules/unictype/ctype-graph-tests: New file.
38494         * modules/unictype/ctype-lower-tests: New file.
38495         * modules/unictype/ctype-print-tests: New file.
38496         * modules/unictype/ctype-punct-tests: New file.
38497         * modules/unictype/ctype-space-tests: New file.
38498         * modules/unictype/ctype-upper-tests: New file.
38499         * modules/unictype/ctype-xdigit-tests: New file.
38500         * modules/unictype/decimal-digit-tests: New file.
38501         * modules/unictype/digit-tests: New file.
38502         * modules/unictype/mirror-tests: New file.
38503         * modules/unictype/numeric-tests: New file.
38504         * modules/unictype/property-alphabetic-tests: New file.
38505         * modules/unictype/property-ascii-hex-digit-tests: New file.
38506         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38507         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38508         * modules/unictype/property-bidi-block-separator-tests: New file.
38509         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38510         * modules/unictype/property-bidi-common-separator-tests: New file.
38511         * modules/unictype/property-bidi-control-tests: New file.
38512         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38513         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38514         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38515         * modules/unictype/property-bidi-european-digit-tests: New file.
38516         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38517         * modules/unictype/property-bidi-left-to-right-tests: New file.
38518         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38519         * modules/unictype/property-bidi-other-neutral-tests: New file.
38520         * modules/unictype/property-bidi-pdf-tests: New file.
38521         * modules/unictype/property-bidi-segment-separator-tests: New file.
38522         * modules/unictype/property-bidi-whitespace-tests: New file.
38523         * modules/unictype/property-byname-tests: New file.
38524         * modules/unictype/property-combining-tests: New file.
38525         * modules/unictype/property-composite-tests: New file.
38526         * modules/unictype/property-currency-symbol-tests: New file.
38527         * modules/unictype/property-dash-tests: New file.
38528         * modules/unictype/property-decimal-digit-tests: New file.
38529         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38530         * modules/unictype/property-deprecated-tests: New file.
38531         * modules/unictype/property-diacritic-tests: New file.
38532         * modules/unictype/property-extender-tests: New file.
38533         * modules/unictype/property-format-control-tests: New file.
38534         * modules/unictype/property-grapheme-base-tests: New file.
38535         * modules/unictype/property-grapheme-extend-tests: New file.
38536         * modules/unictype/property-grapheme-link-tests: New file.
38537         * modules/unictype/property-hex-digit-tests: New file.
38538         * modules/unictype/property-hyphen-tests: New file.
38539         * modules/unictype/property-id-continue-tests: New file.
38540         * modules/unictype/property-id-start-tests: New file.
38541         * modules/unictype/property-ideographic-tests: New file.
38542         * modules/unictype/property-ids-binary-operator-tests: New file.
38543         * modules/unictype/property-ids-trinary-operator-tests: New file.
38544         * modules/unictype/property-ignorable-control-tests: New file.
38545         * modules/unictype/property-iso-control-tests: New file.
38546         * modules/unictype/property-join-control-tests: New file.
38547         * modules/unictype/property-left-of-pair-tests: New file.
38548         * modules/unictype/property-line-separator-tests: New file.
38549         * modules/unictype/property-logical-order-exception-tests: New file.
38550         * modules/unictype/property-lowercase-tests: New file.
38551         * modules/unictype/property-math-tests: New file.
38552         * modules/unictype/property-non-break-tests: New file.
38553         * modules/unictype/property-not-a-character-tests: New file.
38554         * modules/unictype/property-numeric-tests: New file.
38555         * modules/unictype/property-other-alphabetic-tests: New file.
38556         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38557         * modules/unictype/property-other-grapheme-extend-tests: New file.
38558         * modules/unictype/property-other-id-continue-tests: New file.
38559         * modules/unictype/property-other-id-start-tests: New file.
38560         * modules/unictype/property-other-lowercase-tests: New file.
38561         * modules/unictype/property-other-math-tests: New file.
38562         * modules/unictype/property-other-uppercase-tests: New file.
38563         * modules/unictype/property-paired-punctuation-tests: New file.
38564         * modules/unictype/property-paragraph-separator-tests: New file.
38565         * modules/unictype/property-pattern-syntax-tests: New file.
38566         * modules/unictype/property-pattern-white-space-tests: New file.
38567         * modules/unictype/property-private-use-tests: New file.
38568         * modules/unictype/property-punctuation-tests: New file.
38569         * modules/unictype/property-quotation-mark-tests: New file.
38570         * modules/unictype/property-radical-tests: New file.
38571         * modules/unictype/property-sentence-terminal-tests: New file.
38572         * modules/unictype/property-soft-dotted-tests: New file.
38573         * modules/unictype/property-space-tests: New file.
38574         * modules/unictype/property-terminal-punctuation-tests: New file.
38575         * modules/unictype/property-test-tests: New file.
38576         * modules/unictype/property-titlecase-tests: New file.
38577         * modules/unictype/property-unassigned-code-value-tests: New file.
38578         * modules/unictype/property-unified-ideograph-tests: New file.
38579         * modules/unictype/property-uppercase-tests: New file.
38580         * modules/unictype/property-variation-selector-tests: New file.
38581         * modules/unictype/property-white-space-tests: New file.
38582         * modules/unictype/property-xid-continue-tests: New file.
38583         * modules/unictype/property-xid-start-tests: New file.
38584         * modules/unictype/property-zero-width-tests: New file.
38585         * modules/unictype/scripts-tests: New file.
38586         * modules/unictype/syntax-c-ident-tests: New file.
38587         * modules/unictype/syntax-c-whitespace-tests: New file.
38588         * modules/unictype/syntax-java-ident-tests: New file.
38589         * modules/unictype/syntax-java-whitespace-tests: New file.
38590         * tests/unictype/test-bidi_byname.c: New file.
38591         * tests/unictype/test-bidi_name.c: New file.
38592         * tests/unictype/test-bidi_of.c: New file.
38593         * tests/unictype/test-bidi_test.c: New file.
38594         * tests/unictype/test-block_list.c: New file.
38595         * tests/unictype/test-block_of.c: New file.
38596         * tests/unictype/test-block_test.c: New file.
38597         * tests/unictype/test-categ_and.c: New file.
38598         * tests/unictype/test-categ_and_not.c: New file.
38599         * tests/unictype/test-categ_byname.c: New file.
38600         * tests/unictype/test-categ_name.c: New file.
38601         * tests/unictype/test-categ_none.c: New file.
38602         * tests/unictype/test-categ_of.c: New file.
38603         * tests/unictype/test-categ_or.c: New file.
38604         * tests/unictype/test-categ_test_withtable.c: New file.
38605         * tests/unictype/test-combining.c: New file.
38606         * tests/unictype/test-decdigit.c: New file.
38607         * tests/unictype/test-digit.c: New file.
38608         * tests/unictype/test-mirror.c: New file.
38609         * tests/unictype/test-numeric.c: New file.
38610         * tests/unictype/test-pr_byname.c: New file.
38611         * tests/unictype/test-pr_test.c: New file.
38612         * tests/unictype/test-predicate-part1.h: New file.
38613         * tests/unictype/test-predicate-part2.h: New file.
38614         * tests/unictype/test-scripts.c: New file.
38615         * tests/unictype/test-sy_c_ident.c: New file.
38616         * tests/unictype/test-sy_java_ident.c: New file.
38617
38618         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38619         for Unicode 5.0.0.
38620         * tests/unictype/test-categ_Cc.c: Likewise.
38621         * tests/unictype/test-categ_Cf.c: Likewise.
38622         * tests/unictype/test-categ_Cn.c: Likewise.
38623         * tests/unictype/test-categ_Co.c: Likewise.
38624         * tests/unictype/test-categ_Cs.c: Likewise.
38625         * tests/unictype/test-categ_L.c: Likewise.
38626         * tests/unictype/test-categ_Ll.c: Likewise.
38627         * tests/unictype/test-categ_Lm.c: Likewise.
38628         * tests/unictype/test-categ_Lo.c: Likewise.
38629         * tests/unictype/test-categ_Lt.c: Likewise.
38630         * tests/unictype/test-categ_Lu.c: Likewise.
38631         * tests/unictype/test-categ_M.c: Likewise.
38632         * tests/unictype/test-categ_Mc.c: Likewise.
38633         * tests/unictype/test-categ_Me.c: Likewise.
38634         * tests/unictype/test-categ_Mn.c: Likewise.
38635         * tests/unictype/test-categ_N.c: Likewise.
38636         * tests/unictype/test-categ_Nd.c: Likewise.
38637         * tests/unictype/test-categ_Nl.c: Likewise.
38638         * tests/unictype/test-categ_No.c: Likewise.
38639         * tests/unictype/test-categ_P.c: Likewise.
38640         * tests/unictype/test-categ_Pc.c: Likewise.
38641         * tests/unictype/test-categ_Pd.c: Likewise.
38642         * tests/unictype/test-categ_Pe.c: Likewise.
38643         * tests/unictype/test-categ_Pf.c: Likewise.
38644         * tests/unictype/test-categ_Pi.c: Likewise.
38645         * tests/unictype/test-categ_Po.c: Likewise.
38646         * tests/unictype/test-categ_Ps.c: Likewise.
38647         * tests/unictype/test-categ_S.c: Likewise.
38648         * tests/unictype/test-categ_Sc.c: Likewise.
38649         * tests/unictype/test-categ_Sk.c: Likewise.
38650         * tests/unictype/test-categ_Sm.c: Likewise.
38651         * tests/unictype/test-categ_So.c: Likewise.
38652         * tests/unictype/test-categ_Z.c: Likewise.
38653         * tests/unictype/test-categ_Zl.c: Likewise.
38654         * tests/unictype/test-categ_Zp.c: Likewise.
38655         * tests/unictype/test-categ_Zs.c: Likewise.
38656         * tests/unictype/test-ctype_alnum.c: Likewise.
38657         * tests/unictype/test-ctype_alpha.c: Likewise.
38658         * tests/unictype/test-ctype_blank.c: Likewise.
38659         * tests/unictype/test-ctype_cntrl.c: Likewise.
38660         * tests/unictype/test-ctype_digit.c: Likewise.
38661         * tests/unictype/test-ctype_graph.c: Likewise.
38662         * tests/unictype/test-ctype_lower.c: Likewise.
38663         * tests/unictype/test-ctype_print.c: Likewise.
38664         * tests/unictype/test-ctype_punct.c: Likewise.
38665         * tests/unictype/test-ctype_space.c: Likewise.
38666         * tests/unictype/test-ctype_upper.c: Likewise.
38667         * tests/unictype/test-ctype_xdigit.c: Likewise.
38668         * tests/unictype/test-decdigit.h: Likewise.
38669         * tests/unictype/test-digit.h: Likewise.
38670         * tests/unictype/test-numeric.h: Likewise.
38671         * tests/unictype/test-pr_alphabetic.c: Likewise.
38672         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38673         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38674         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38675         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38676         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38677         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38678         * tests/unictype/test-pr_bidi_control.c: Likewise.
38679         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38680         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38681         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38682         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38683         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38684         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38685         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38686         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38687         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38688         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38689         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38690         * tests/unictype/test-pr_combining.c: Likewise.
38691         * tests/unictype/test-pr_composite.c: Likewise.
38692         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38693         * tests/unictype/test-pr_dash.c: Likewise.
38694         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38695         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38696         * tests/unictype/test-pr_deprecated.c: Likewise.
38697         * tests/unictype/test-pr_diacritic.c: Likewise.
38698         * tests/unictype/test-pr_extender.c: Likewise.
38699         * tests/unictype/test-pr_format_control.c: Likewise.
38700         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38701         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38702         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38703         * tests/unictype/test-pr_hex_digit.c: Likewise.
38704         * tests/unictype/test-pr_hyphen.c: Likewise.
38705         * tests/unictype/test-pr_id_continue.c: Likewise.
38706         * tests/unictype/test-pr_id_start.c: Likewise.
38707         * tests/unictype/test-pr_ideographic.c: Likewise.
38708         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38709         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38710         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38711         * tests/unictype/test-pr_iso_control.c: Likewise.
38712         * tests/unictype/test-pr_join_control.c: Likewise.
38713         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38714         * tests/unictype/test-pr_line_separator.c: Likewise.
38715         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38716         * tests/unictype/test-pr_lowercase.c: Likewise.
38717         * tests/unictype/test-pr_math.c: Likewise.
38718         * tests/unictype/test-pr_non_break.c: Likewise.
38719         * tests/unictype/test-pr_not_a_character.c: Likewise.
38720         * tests/unictype/test-pr_numeric.c: Likewise.
38721         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38722         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38723         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38724         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38725         * tests/unictype/test-pr_other_id_start.c: Likewise.
38726         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38727         * tests/unictype/test-pr_other_math.c: Likewise.
38728         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38729         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38730         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38731         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38732         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38733         * tests/unictype/test-pr_private_use.c: Likewise.
38734         * tests/unictype/test-pr_punctuation.c: Likewise.
38735         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38736         * tests/unictype/test-pr_radical.c: Likewise.
38737         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38738         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38739         * tests/unictype/test-pr_space.c: Likewise.
38740         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38741         * tests/unictype/test-pr_titlecase.c: Likewise.
38742         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38743         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38744         * tests/unictype/test-pr_uppercase.c: Likewise.
38745         * tests/unictype/test-pr_variation_selector.c: Likewise.
38746         * tests/unictype/test-pr_white_space.c: Likewise.
38747         * tests/unictype/test-pr_xid_continue.c: Likewise.
38748         * tests/unictype/test-pr_xid_start.c: Likewise.
38749         * tests/unictype/test-pr_zero_width.c: Likewise.
38750         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38751         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38752
38753 2007-11-12  Bruno Haible  <bruno@clisp.org>
38754
38755         Unicode character classification functions.
38756         * lib/unictype.h: New file.
38757         * modules/unictype/base: New file.
38758         * modules/unictype/category-L: New file.
38759         * modules/unictype/category-Lu: New file.
38760         * modules/unictype/category-Ll: New file.
38761         * modules/unictype/category-Lt: New file.
38762         * modules/unictype/category-Lm: New file.
38763         * modules/unictype/category-Lo: New file.
38764         * modules/unictype/category-M: New file.
38765         * modules/unictype/category-Mn: New file.
38766         * modules/unictype/category-Mc: New file.
38767         * modules/unictype/category-Me: New file.
38768         * modules/unictype/category-N: New file.
38769         * modules/unictype/category-Nd: New file.
38770         * modules/unictype/category-Nl: New file.
38771         * modules/unictype/category-No: New file.
38772         * modules/unictype/category-P: New file.
38773         * modules/unictype/category-Pc: New file.
38774         * modules/unictype/category-Pd: New file.
38775         * modules/unictype/category-Ps: New file.
38776         * modules/unictype/category-Pe: New file.
38777         * modules/unictype/category-Pi: New file.
38778         * modules/unictype/category-Pf: New file.
38779         * modules/unictype/category-Po: New file.
38780         * modules/unictype/category-S: New file.
38781         * modules/unictype/category-Sm: New file.
38782         * modules/unictype/category-Sc: New file.
38783         * modules/unictype/category-Sk: New file.
38784         * modules/unictype/category-So: New file.
38785         * modules/unictype/category-Z: New file.
38786         * modules/unictype/category-Zs: New file.
38787         * modules/unictype/category-Zl: New file.
38788         * modules/unictype/category-Zp: New file.
38789         * modules/unictype/category-C: New file.
38790         * modules/unictype/category-Cc: New file.
38791         * modules/unictype/category-Cf: New file.
38792         * modules/unictype/category-Cs: New file.
38793         * modules/unictype/category-Co: New file.
38794         * modules/unictype/category-Cn: New file.
38795         * modules/unictype/category-or: New file.
38796         * modules/unictype/category-of: New file.
38797         * modules/unictype/category-test: New file.
38798         * modules/unictype/category-test-withtable: New file.
38799         * modules/unictype/category-byname: New file.
38800         * modules/unictype/category-none: New file.
38801         * modules/unictype/category-and: New file.
38802         * modules/unictype/category-and-not: New file.
38803         * modules/unictype/category-name: New file.
38804         * modules/unictype/combining-class: New file.
38805         * modules/unictype/category-all: New file.
38806         * modules/unictype/bidicategory-all: New file.
38807         * modules/unictype/bidicategory-byname: New file.
38808         * modules/unictype/bidicategory-name: New file.
38809         * modules/unictype/bidicategory-of: New file.
38810         * modules/unictype/bidicategory-test: New file.
38811         * modules/unictype/decimal-digit: New file.
38812         * modules/unictype/digit: New file.
38813         * modules/unictype/numeric: New file.
38814         * modules/unictype/mirror: New file.
38815         * modules/unictype/property-white-space: New file.
38816         * modules/unictype/property-alphabetic: New file.
38817         * modules/unictype/property-other-alphabetic: New file.
38818         * modules/unictype/property-not-a-character: New file.
38819         * modules/unictype/property-default-ignorable-code-point: New file.
38820         * modules/unictype/property-other-default-ignorable-code-point: New
38821         file.
38822         * modules/unictype/property-deprecated: New file.
38823         * modules/unictype/property-logical-order-exception: New file.
38824         * modules/unictype/property-variation-selector: New file.
38825         * modules/unictype/property-private-use: New file.
38826         * modules/unictype/property-unassigned-code-value: New file.
38827         * modules/unictype/property-uppercase: New file.
38828         * modules/unictype/property-other-uppercase: New file.
38829         * modules/unictype/property-lowercase: New file.
38830         * modules/unictype/property-other-lowercase: New file.
38831         * modules/unictype/property-titlecase: New file.
38832         * modules/unictype/property-soft-dotted: New file.
38833         * modules/unictype/property-id-start: New file.
38834         * modules/unictype/property-other-id-start: New file.
38835         * modules/unictype/property-id-continue: New file.
38836         * modules/unictype/property-other-id-continue: New file.
38837         * modules/unictype/property-xid-start: New file.
38838         * modules/unictype/property-xid-continue: New file.
38839         * modules/unictype/property-pattern-white-space: New file.
38840         * modules/unictype/property-pattern-syntax: New file.
38841         * modules/unictype/property-join-control: New file.
38842         * modules/unictype/property-grapheme-base: New file.
38843         * modules/unictype/property-grapheme-extend: New file.
38844         * modules/unictype/property-other-grapheme-extend: New file.
38845         * modules/unictype/property-grapheme-link: New file.
38846         * modules/unictype/property-bidi-control: New file.
38847         * modules/unictype/property-bidi-left-to-right: New file.
38848         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38849         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38850         * modules/unictype/property-bidi-european-digit: New file.
38851         * modules/unictype/property-bidi-eur-num-separator: New file.
38852         * modules/unictype/property-bidi-eur-num-terminator: New file.
38853         * modules/unictype/property-bidi-arabic-digit: New file.
38854         * modules/unictype/property-bidi-common-separator: New file.
38855         * modules/unictype/property-bidi-block-separator: New file.
38856         * modules/unictype/property-bidi-segment-separator: New file.
38857         * modules/unictype/property-bidi-whitespace: New file.
38858         * modules/unictype/property-bidi-non-spacing-mark: New file.
38859         * modules/unictype/property-bidi-boundary-neutral: New file.
38860         * modules/unictype/property-bidi-pdf: New file.
38861         * modules/unictype/property-bidi-embedding-or-override: New file.
38862         * modules/unictype/property-bidi-other-neutral: New file.
38863         * modules/unictype/property-hex-digit: New file.
38864         * modules/unictype/property-ascii-hex-digit: New file.
38865         * modules/unictype/property-ideographic: New file.
38866         * modules/unictype/property-unified-ideograph: New file.
38867         * modules/unictype/property-radical: New file.
38868         * modules/unictype/property-ids-binary-operator: New file.
38869         * modules/unictype/property-ids-trinary-operator: New file.
38870         * modules/unictype/property-zero-width: New file.
38871         * modules/unictype/property-space: New file.
38872         * modules/unictype/property-non-break: New file.
38873         * modules/unictype/property-iso-control: New file.
38874         * modules/unictype/property-format-control: New file.
38875         * modules/unictype/property-dash: New file.
38876         * modules/unictype/property-hyphen: New file.
38877         * modules/unictype/property-punctuation: New file.
38878         * modules/unictype/property-line-separator: New file.
38879         * modules/unictype/property-paragraph-separator: New file.
38880         * modules/unictype/property-quotation-mark: New file.
38881         * modules/unictype/property-sentence-terminal: New file.
38882         * modules/unictype/property-terminal-punctuation: New file.
38883         * modules/unictype/property-currency-symbol: New file.
38884         * modules/unictype/property-math: New file.
38885         * modules/unictype/property-other-math: New file.
38886         * modules/unictype/property-paired-punctuation: New file.
38887         * modules/unictype/property-left-of-pair: New file.
38888         * modules/unictype/property-combining: New file.
38889         * modules/unictype/property-composite: New file.
38890         * modules/unictype/property-decimal-digit: New file.
38891         * modules/unictype/property-numeric: New file.
38892         * modules/unictype/property-diacritic: New file.
38893         * modules/unictype/property-extender: New file.
38894         * modules/unictype/property-ignorable-control: New file.
38895         * modules/unictype/property-test: New file.
38896         * modules/unictype/property-byname: New file.
38897         * modules/unictype/property-all: New file.
38898         * modules/unictype/scripts: New file.
38899         * modules/unictype/scripts-all: New file.
38900         * modules/unictype/block-of: New file.
38901         * modules/unictype/block-test: New file.
38902         * modules/unictype/block-list: New file.
38903         * modules/unictype/block-all: New file.
38904         * modules/unictype/syntax-c-whitespace: New file.
38905         * modules/unictype/syntax-java-whitespace: New file.
38906         * modules/unictype/syntax-c-ident: New file.
38907         * modules/unictype/syntax-java-ident: New file.
38908         * modules/unictype/ctype-alnum: New file.
38909         * modules/unictype/ctype-alpha: New file.
38910         * modules/unictype/ctype-cntrl: New file.
38911         * modules/unictype/ctype-digit: New file.
38912         * modules/unictype/ctype-graph: New file.
38913         * modules/unictype/ctype-lower: New file.
38914         * modules/unictype/ctype-print: New file.
38915         * modules/unictype/ctype-punct: New file.
38916         * modules/unictype/ctype-space: New file.
38917         * modules/unictype/ctype-upper: New file.
38918         * modules/unictype/ctype-xdigit: New file.
38919         * modules/unictype/ctype-blank: New file.
38920         * lib/unictype/bidi_byname.c: New file.
38921         * lib/unictype/bidi_name.c: New file.
38922         * lib/unictype/bidi_of.c: New file.
38923         * lib/unictype/bidi_test.c: New file.
38924         * lib/unictype/bitmap.h: New file.
38925         * lib/unictype/block_test.c: New file.
38926         * lib/unictype/blocks.c: New file.
38927         * lib/unictype/categ_C.c: New file.
38928         * lib/unictype/categ_Cc.c: New file.
38929         * lib/unictype/categ_Cf.c: New file.
38930         * lib/unictype/categ_Cn.c: New file.
38931         * lib/unictype/categ_Co.c: New file.
38932         * lib/unictype/categ_Cs.c: New file.
38933         * lib/unictype/categ_L.c: New file.
38934         * lib/unictype/categ_Ll.c: New file.
38935         * lib/unictype/categ_Lm.c: New file.
38936         * lib/unictype/categ_Lo.c: New file.
38937         * lib/unictype/categ_Lt.c: New file.
38938         * lib/unictype/categ_Lu.c: New file.
38939         * lib/unictype/categ_M.c: New file.
38940         * lib/unictype/categ_Mc.c: New file.
38941         * lib/unictype/categ_Me.c: New file.
38942         * lib/unictype/categ_Mn.c: New file.
38943         * lib/unictype/categ_N.c: New file.
38944         * lib/unictype/categ_Nd.c: New file.
38945         * lib/unictype/categ_Nl.c: New file.
38946         * lib/unictype/categ_No.c: New file.
38947         * lib/unictype/categ_P.c: New file.
38948         * lib/unictype/categ_Pc.c: New file.
38949         * lib/unictype/categ_Pd.c: New file.
38950         * lib/unictype/categ_Pe.c: New file.
38951         * lib/unictype/categ_Pf.c: New file.
38952         * lib/unictype/categ_Pi.c: New file.
38953         * lib/unictype/categ_Po.c: New file.
38954         * lib/unictype/categ_Ps.c: New file.
38955         * lib/unictype/categ_S.c: New file.
38956         * lib/unictype/categ_Sc.c: New file.
38957         * lib/unictype/categ_Sk.c: New file.
38958         * lib/unictype/categ_Sm.c: New file.
38959         * lib/unictype/categ_So.c: New file.
38960         * lib/unictype/categ_Z.c: New file.
38961         * lib/unictype/categ_Zl.c: New file.
38962         * lib/unictype/categ_Zp.c: New file.
38963         * lib/unictype/categ_Zs.c: New file.
38964         * lib/unictype/categ_and.c: New file.
38965         * lib/unictype/categ_and_not.c: New file.
38966         * lib/unictype/categ_byname.c: New file.
38967         * lib/unictype/categ_name.c: New file.
38968         * lib/unictype/categ_none.c: New file.
38969         * lib/unictype/categ_of.c: New file.
38970         * lib/unictype/categ_or.c: New file.
38971         * lib/unictype/categ_test.c: New file.
38972         * lib/unictype/combining.c: New file.
38973         * lib/unictype/ctype_alnum.c: New file.
38974         * lib/unictype/ctype_alpha.c: New file.
38975         * lib/unictype/ctype_blank.c: New file.
38976         * lib/unictype/ctype_cntrl.c: New file.
38977         * lib/unictype/ctype_digit.c: New file.
38978         * lib/unictype/ctype_graph.c: New file.
38979         * lib/unictype/ctype_lower.c: New file.
38980         * lib/unictype/ctype_print.c: New file.
38981         * lib/unictype/ctype_punct.c: New file.
38982         * lib/unictype/ctype_space.c: New file.
38983         * lib/unictype/ctype_upper.c: New file.
38984         * lib/unictype/ctype_xdigit.c: New file.
38985         * lib/unictype/decdigit.c: New file.
38986         * lib/unictype/digit.c: New file.
38987         * lib/unictype/identsyntaxmap.h: New file.
38988         * lib/unictype/mirror.c: New file.
38989         * lib/unictype/numeric.c: New file.
38990         * lib/unictype/pr_alphabetic.c: New file.
38991         * lib/unictype/pr_ascii_hex_digit.c: New file.
38992         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38993         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38994         * lib/unictype/pr_bidi_block_separator.c: New file.
38995         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38996         * lib/unictype/pr_bidi_common_separator.c: New file.
38997         * lib/unictype/pr_bidi_control.c: New file.
38998         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38999         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39000         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39001         * lib/unictype/pr_bidi_european_digit.c: New file.
39002         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39003         * lib/unictype/pr_bidi_left_to_right.c: New file.
39004         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39005         * lib/unictype/pr_bidi_other_neutral.c: New file.
39006         * lib/unictype/pr_bidi_pdf.c: New file.
39007         * lib/unictype/pr_bidi_segment_separator.c: New file.
39008         * lib/unictype/pr_bidi_whitespace.c: New file.
39009         * lib/unictype/pr_byname.c: New file.
39010         * lib/unictype/pr_byname.gperf: New file.
39011         * lib/unictype/pr_combining.c: New file.
39012         * lib/unictype/pr_composite.c: New file.
39013         * lib/unictype/pr_currency_symbol.c: New file.
39014         * lib/unictype/pr_dash.c: New file.
39015         * lib/unictype/pr_decimal_digit.c: New file.
39016         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39017         * lib/unictype/pr_deprecated.c: New file.
39018         * lib/unictype/pr_diacritic.c: New file.
39019         * lib/unictype/pr_extender.c: New file.
39020         * lib/unictype/pr_format_control.c: New file.
39021         * lib/unictype/pr_grapheme_base.c: New file.
39022         * lib/unictype/pr_grapheme_extend.c: New file.
39023         * lib/unictype/pr_grapheme_link.c: New file.
39024         * lib/unictype/pr_hex_digit.c: New file.
39025         * lib/unictype/pr_hyphen.c: New file.
39026         * lib/unictype/pr_id_continue.c: New file.
39027         * lib/unictype/pr_id_start.c: New file.
39028         * lib/unictype/pr_ideographic.c: New file.
39029         * lib/unictype/pr_ids_binary_operator.c: New file.
39030         * lib/unictype/pr_ids_trinary_operator.c: New file.
39031         * lib/unictype/pr_ignorable_control.c: New file.
39032         * lib/unictype/pr_iso_control.c: New file.
39033         * lib/unictype/pr_join_control.c: New file.
39034         * lib/unictype/pr_left_of_pair.c: New file.
39035         * lib/unictype/pr_line_separator.c: New file.
39036         * lib/unictype/pr_logical_order_exception.c: New file.
39037         * lib/unictype/pr_lowercase.c: New file.
39038         * lib/unictype/pr_math.c: New file.
39039         * lib/unictype/pr_non_break.c: New file.
39040         * lib/unictype/pr_not_a_character.c: New file.
39041         * lib/unictype/pr_numeric.c: New file.
39042         * lib/unictype/pr_other_alphabetic.c: New file.
39043         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39044         * lib/unictype/pr_other_grapheme_extend.c: New file.
39045         * lib/unictype/pr_other_id_continue.c: New file.
39046         * lib/unictype/pr_other_id_start.c: New file.
39047         * lib/unictype/pr_other_lowercase.c: New file.
39048         * lib/unictype/pr_other_math.c: New file.
39049         * lib/unictype/pr_other_uppercase.c: New file.
39050         * lib/unictype/pr_paired_punctuation.c: New file.
39051         * lib/unictype/pr_paragraph_separator.c: New file.
39052         * lib/unictype/pr_pattern_syntax.c: New file.
39053         * lib/unictype/pr_pattern_white_space.c: New file.
39054         * lib/unictype/pr_private_use.c: New file.
39055         * lib/unictype/pr_punctuation.c: New file.
39056         * lib/unictype/pr_quotation_mark.c: New file.
39057         * lib/unictype/pr_radical.c: New file.
39058         * lib/unictype/pr_sentence_terminal.c: New file.
39059         * lib/unictype/pr_soft_dotted.c: New file.
39060         * lib/unictype/pr_space.c: New file.
39061         * lib/unictype/pr_terminal_punctuation.c: New file.
39062         * lib/unictype/pr_test.c: New file.
39063         * lib/unictype/pr_titlecase.c: New file.
39064         * lib/unictype/pr_unassigned_code_value.c: New file.
39065         * lib/unictype/pr_unified_ideograph.c: New file.
39066         * lib/unictype/pr_uppercase.c: New file.
39067         * lib/unictype/pr_variation_selector.c: New file.
39068         * lib/unictype/pr_white_space.c: New file.
39069         * lib/unictype/pr_xid_continue.c: New file.
39070         * lib/unictype/pr_xid_start.c: New file.
39071         * lib/unictype/pr_zero_width.c: New file.
39072         * lib/unictype/scripts.c: New file.
39073         * lib/unictype/sy_c_ident.c: New file.
39074         * lib/unictype/sy_c_whitespace.c: New file.
39075         * lib/unictype/sy_java_ident.c: New file.
39076         * lib/unictype/sy_java_whitespace.c: New file.
39077
39078         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39079         Unicode 5.0.0.
39080         * lib/unictype/blocks.h: Likewise.
39081         * lib/unictype/categ_C.h: Likewise.
39082         * lib/unictype/categ_Cc.h: Likewise.
39083         * lib/unictype/categ_Cf.h: Likewise.
39084         * lib/unictype/categ_Cn.h: Likewise.
39085         * lib/unictype/categ_Co.h: Likewise.
39086         * lib/unictype/categ_Cs.h: Likewise.
39087         * lib/unictype/categ_L.h: Likewise.
39088         * lib/unictype/categ_Ll.h: Likewise.
39089         * lib/unictype/categ_Lm.h: Likewise.
39090         * lib/unictype/categ_Lo.h: Likewise.
39091         * lib/unictype/categ_Lt.h: Likewise.
39092         * lib/unictype/categ_Lu.h: Likewise.
39093         * lib/unictype/categ_M.h: Likewise.
39094         * lib/unictype/categ_Mc.h: Likewise.
39095         * lib/unictype/categ_Me.h: Likewise.
39096         * lib/unictype/categ_Mn.h: Likewise.
39097         * lib/unictype/categ_N.h: Likewise.
39098         * lib/unictype/categ_Nd.h: Likewise.
39099         * lib/unictype/categ_Nl.h: Likewise.
39100         * lib/unictype/categ_No.h: Likewise.
39101         * lib/unictype/categ_P.h: Likewise.
39102         * lib/unictype/categ_Pc.h: Likewise.
39103         * lib/unictype/categ_Pd.h: Likewise.
39104         * lib/unictype/categ_Pe.h: Likewise.
39105         * lib/unictype/categ_Pf.h: Likewise.
39106         * lib/unictype/categ_Pi.h: Likewise.
39107         * lib/unictype/categ_Po.h: Likewise.
39108         * lib/unictype/categ_Ps.h: Likewise.
39109         * lib/unictype/categ_S.h: Likewise.
39110         * lib/unictype/categ_Sc.h: Likewise.
39111         * lib/unictype/categ_Sk.h: Likewise.
39112         * lib/unictype/categ_Sm.h: Likewise.
39113         * lib/unictype/categ_So.h: Likewise.
39114         * lib/unictype/categ_Z.h: Likewise.
39115         * lib/unictype/categ_Zl.h: Likewise.
39116         * lib/unictype/categ_Zp.h: Likewise.
39117         * lib/unictype/categ_Zs.h: Likewise.
39118         * lib/unictype/categ_of.h: Likewise.
39119         * lib/unictype/combining.h: Likewise.
39120         * lib/unictype/ctype_alnum.h: Likewise.
39121         * lib/unictype/ctype_alpha.h: Likewise.
39122         * lib/unictype/ctype_blank.h: Likewise.
39123         * lib/unictype/ctype_cntrl.h: Likewise.
39124         * lib/unictype/ctype_digit.h: Likewise.
39125         * lib/unictype/ctype_graph.h: Likewise.
39126         * lib/unictype/ctype_lower.h: Likewise.
39127         * lib/unictype/ctype_print.h: Likewise.
39128         * lib/unictype/ctype_punct.h: Likewise.
39129         * lib/unictype/ctype_space.h: Likewise.
39130         * lib/unictype/ctype_upper.h: Likewise.
39131         * lib/unictype/ctype_xdigit.h: Likewise.
39132         * lib/unictype/decdigit.h: Likewise.
39133         * lib/unictype/digit.h: Likewise.
39134         * lib/unictype/mirror.h: Likewise.
39135         * lib/unictype/numeric.h: Likewise.
39136         * lib/unictype/pr_alphabetic.h: Likewise.
39137         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39138         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39139         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39140         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39141         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39142         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39143         * lib/unictype/pr_bidi_control.h: Likewise.
39144         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39145         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39146         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39147         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39148         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39149         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39150         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39151         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39152         * lib/unictype/pr_bidi_pdf.h: Likewise.
39153         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39154         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39155         * lib/unictype/pr_combining.h: Likewise.
39156         * lib/unictype/pr_composite.h: Likewise.
39157         * lib/unictype/pr_currency_symbol.h: Likewise.
39158         * lib/unictype/pr_dash.h: Likewise.
39159         * lib/unictype/pr_decimal_digit.h: Likewise.
39160         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39161         * lib/unictype/pr_deprecated.h: Likewise.
39162         * lib/unictype/pr_diacritic.h: Likewise.
39163         * lib/unictype/pr_extender.h: Likewise.
39164         * lib/unictype/pr_format_control.h: Likewise.
39165         * lib/unictype/pr_grapheme_base.h: Likewise.
39166         * lib/unictype/pr_grapheme_extend.h: Likewise.
39167         * lib/unictype/pr_grapheme_link.h: Likewise.
39168         * lib/unictype/pr_hex_digit.h: Likewise.
39169         * lib/unictype/pr_hyphen.h: Likewise.
39170         * lib/unictype/pr_id_continue.h: Likewise.
39171         * lib/unictype/pr_id_start.h: Likewise.
39172         * lib/unictype/pr_ideographic.h: Likewise.
39173         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39174         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39175         * lib/unictype/pr_ignorable_control.h: Likewise.
39176         * lib/unictype/pr_iso_control.h: Likewise.
39177         * lib/unictype/pr_join_control.h: Likewise.
39178         * lib/unictype/pr_left_of_pair.h: Likewise.
39179         * lib/unictype/pr_line_separator.h: Likewise.
39180         * lib/unictype/pr_logical_order_exception.h: Likewise.
39181         * lib/unictype/pr_lowercase.h: Likewise.
39182         * lib/unictype/pr_math.h: Likewise.
39183         * lib/unictype/pr_non_break.h: Likewise.
39184         * lib/unictype/pr_not_a_character.h: Likewise.
39185         * lib/unictype/pr_numeric.h: Likewise.
39186         * lib/unictype/pr_other_alphabetic.h: Likewise.
39187         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39188         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39189         * lib/unictype/pr_other_id_continue.h: Likewise.
39190         * lib/unictype/pr_other_id_start.h: Likewise.
39191         * lib/unictype/pr_other_lowercase.h: Likewise.
39192         * lib/unictype/pr_other_math.h: Likewise.
39193         * lib/unictype/pr_other_uppercase.h: Likewise.
39194         * lib/unictype/pr_paired_punctuation.h: Likewise.
39195         * lib/unictype/pr_paragraph_separator.h: Likewise.
39196         * lib/unictype/pr_pattern_syntax.h: Likewise.
39197         * lib/unictype/pr_pattern_white_space.h: Likewise.
39198         * lib/unictype/pr_private_use.h: Likewise.
39199         * lib/unictype/pr_punctuation.h: Likewise.
39200         * lib/unictype/pr_quotation_mark.h: Likewise.
39201         * lib/unictype/pr_radical.h: Likewise.
39202         * lib/unictype/pr_sentence_terminal.h: Likewise.
39203         * lib/unictype/pr_soft_dotted.h: Likewise.
39204         * lib/unictype/pr_space.h: Likewise.
39205         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39206         * lib/unictype/pr_titlecase.h: Likewise.
39207         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39208         * lib/unictype/pr_unified_ideograph.h: Likewise.
39209         * lib/unictype/pr_uppercase.h: Likewise.
39210         * lib/unictype/pr_variation_selector.h: Likewise.
39211         * lib/unictype/pr_white_space.h: Likewise.
39212         * lib/unictype/pr_xid_continue.h: Likewise.
39213         * lib/unictype/pr_xid_start.h: Likewise.
39214         * lib/unictype/pr_zero_width.h: Likewise.
39215         * lib/unictype/scripts.h: Likewise.
39216         * lib/unictype/scripts_byname.gperf: Likewise.
39217         * lib/unictype/sy_c_ident.h: Likewise.
39218         * lib/unictype/sy_c_whitespace.h: Likewise.
39219         * lib/unictype/sy_java_ident.h: Likewise.
39220         * lib/unictype/sy_java_whitespace.h: Likewise.
39221
39222         * lib/unictype/Makefile: New file.
39223         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39224         glibc.
39225         * lib/unictype/3level.h: New file, copied from glibc.
39226         * lib/unictype/3levelbit.h: New file.
39227
39228 2007-11-11  Bruno Haible  <bruno@clisp.org>
39229
39230         * modules/gperf: New file.
39231         * modules/iconv_open (Depends-on): Add it.
39232         (Makefile.am): Remove the GPERF definition.
39233
39234 2007-11-11  Bruno Haible  <bruno@clisp.org>
39235
39236         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39237         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39238
39239 2007-11-11  Bruno Haible  <bruno@clisp.org>
39240
39241         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39242         (usage): Remove function.
39243
39244 2007-11-11  Bruno Haible  <bruno@clisp.org>
39245
39246         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39247         gl_FUNC_CEILF_LIBS.
39248         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39249         gl_FUNC_CEIL_LIBS.
39250         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39251         gl_FUNC_CEILL_LIBS.
39252         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39253         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39254         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39255
39256 2007-11-11  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39259         roundf were declared but do not exist on functions.
39260         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39261         roundl were declared but do not exist on functions.
39262         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39263         HAVE_FLOORL_AND_CEILL, respectively.
39264         Needed for Sun C on Solaris 10.
39265
39266 2007-11-11  Bruno Haible  <bruno@clisp.org>
39267
39268         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39269         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39270         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39271         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39272         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39273         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39274         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39275         HAVE_DECL_ROUNDF.
39276         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39277         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39279         of HAVE_DECL_ROUND*.
39280         * modules/math (Makefile.am): Update.
39281
39282 2007-11-10  Bruno Haible  <bruno@clisp.org>
39283
39284         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39285         ptrdiff_t as m4/intl.m4.
39286
39287 2007-11-10  Jim Meyering  <meyering@redhat.com>
39288
39289         Avoid link failure for the argmatch test.
39290         * tests/test-argmatch.c (usage): Define function to avoid a link
39291         failure: argmatch_die requires a usage function.
39292
39293 2007-11-09  Bruno Haible  <bruno@clisp.org>
39294
39295         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39296         * doc/functions/vsnprintf.texi: Likewise.
39297         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39298         with a size argument < 2.
39299
39300 2007-11-09  Bruno Haible  <bruno@clisp.org>
39301
39302         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39303         buffer. Fixes an inefficiency introduced on 2007-11-03.
39304
39305 2007-11-09  Bruno Haible  <bruno@clisp.org>
39306
39307         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39308         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39309
39310 2007-11-08  Jim Meyering  <meyering@redhat.com>
39311
39312         Change cache variable name prefix "jm_" to "gl_" everywhere.
39313         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39314         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39315         * m4/uptime.m4: s/gl_/jm_/
39316
39317 2007-11-07  Bruno Haible  <bruno@clisp.org>
39318
39319         Update to GNU gettext 0.17.
39320         * m4/intl.m4: Update to GNU gettext 0.17.
39321         * m4/po.m4: Likewise.
39322         * modules/gettext (Files): Remove m4/ulonglong.m4.
39323         (configure.ac): Require gettext infrastructure from version 0.17.
39324
39325 2007-11-06  Bruno Haible  <bruno@clisp.org>
39326
39327         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39328         symbolic values are not defined in a public header.
39329         * lib/freadable.c (freadable) [QNX]: Likewise.
39330         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39331         * lib/freading.c (freading) [QNX]: Likewise.
39332         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39333         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39334         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39335         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39336         Reported by Alain Magloire.
39337
39338         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39339
39340 2007-11-05  Bruno Haible  <bruno@clisp.org>
39341
39342         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39343         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39344         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39345         Reported by Eric Blake.
39346
39347 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39348             Bruno Haible  <bruno@clisp.org>
39349
39350         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39351         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39352         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39353         (malloc): Undefine also before including <stdlib.h>.
39354         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39355         Needed on OSF/1 4.0.
39356
39357 2007-11-05  Jim Meyering  <meyering@redhat.com>
39358
39359         git-version-gen: sync from coreutils.
39360         * build-aux/git-version-gen: Add comments.
39361         Change the first '-' to '.' in the snapshot version string,
39362         e.g., 6.9-377-08144 -> 6.9.377-08144
39363         Remove first parameter.
39364         Don't declare a version "-dirty" merely because a time
39365         stamp has changed.
39366
39367 2007-11-04  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/lock.h: Protect all macro definitions containing an 'if'
39370         statement through a "do { ... } while (0)".
39371         * lib/tls.h: Likewise.
39372
39373 2007-11-04  Bruno Haible  <bruno@clisp.org>
39374
39375         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39376
39377 2007-11-04  Bruno Haible  <bruno@clisp.org>
39378
39379         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39380         * modules/fprintf-posix (Depends-on): Add nocrash.
39381         * modules/snprintf-posix (Depends-on): Likewise.
39382         * modules/sprintf-posix (Depends-on): Likewise.
39383         * modules/vasnprintf-posix (Depends-on): Likewise.
39384         * modules/vasprintf-posix (Depends-on): Likewise.
39385         * modules/vfprintf-posix (Depends-on): Likewise.
39386         * modules/vsnprintf-posix (Depends-on): Likewise.
39387         * modules/vsprintf-posix (Depends-on): Likewise.
39388         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39389         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39395
39396 2007-11-04  Bruno Haible  <bruno@clisp.org>
39397
39398         * modules/nocrash: New file.
39399         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39400         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39401
39402 2007-11-04  Bruno Haible  <bruno@clisp.org>
39403
39404         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39405         precision handling.
39406         * tests/test-vasprintf-posix.c (test_function): Likewise.
39407         * tests/test-snprintf-posix.h (test_function): Likewise.
39408         * tests/test-sprintf-posix.h (test_function): Likewise.
39409
39410         Fix *printf behaviour for large precisions on mingw and BeOS.
39411         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39412         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39414         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39416         gl_PRINTF_PRECISION and test its result. Invoke
39417         gl_PREREQ_VASNPRINTF_PRECISION.
39418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39422         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39425         * doc/functions/fprintf.texi: Update.
39426         * doc/functions/printf.texi: Update.
39427         * doc/functions/snprintf.texi: Update.
39428         * doc/functions/sprintf.texi: Update.
39429         * doc/functions/vfprintf.texi: Update.
39430         * doc/functions/vprintf.texi: Update.
39431         * doc/functions/vsnprintf.texi: Update.
39432         * doc/functions/vsprintf.texi: Update.
39433
39434 2007-11-04  Bruno Haible  <bruno@clisp.org>
39435
39436         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39437
39438 2007-11-04  Bruno Haible  <bruno@clisp.org>
39439
39440         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39441         Reported by Sylvain Beucler <beuc@gnu.org>.
39442
39443 2007-11-03  Bruno Haible  <bruno@clisp.org>
39444
39445         * tests/test-fprintf-posix2.sh: New file.
39446         * tests/test-fprintf-posix2.c: New file.
39447         * modules/fprintf-posix-tests (Files): Add them.
39448         (TESTS): Add test-fprintf-posix2.sh.
39449         (configure.ac): Check for getrlimit and setrlimit.
39450         (check_PROGRAMS): Add test-fprintf-posix2.
39451
39452         * tests/test-printf-posix2.sh: New file.
39453         * tests/test-printf-posix2.c: New file.
39454         * modules/printf-posix-tests (Files): Add them.
39455         (TESTS): Add test-printf-posix2.sh.
39456         (configure.ac): Check for getrlimit and setrlimit.
39457         (check_PROGRAMS): Add test-printf-posix2.
39458
39459         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39460         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39461         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39462         (decode_double): New function, copied from decode_long_double.
39463         (scale10_round_decimal_decoded): New function, extracted from
39464         scale10_round_decimal_long_double.
39465         (scale10_round_decimal_long_double): Use it.
39466         (scale10_round_decimal_double): New function.
39467         (floorlog10): New function.
39468         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39470         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39472         gl_PRINTF_ENOMEM and test its result. Invoke
39473         gl_PREREQ_VASNPRINTF_ENOMEM.
39474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39478         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39479         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39480         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39481         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39482         * modules/snprintf-posix (Depends-on): Likewise.
39483         * modules/sprintf-posix (Depends-on): Likewise.
39484         * modules/vasnprintf-posix (Depends-on): Likewise.
39485         * modules/vasprintf-posix (Depends-on): Likewise.
39486         * modules/vfprintf-posix (Depends-on): Likewise.
39487         * modules/vsnprintf-posix (Depends-on): Likewise.
39488         * modules/vsprintf-posix (Depends-on): Likewise.
39489         * doc/functions/fprintf.texi: Update.
39490         * doc/functions/printf.texi: Update.
39491         * doc/functions/snprintf.texi: Update.
39492         * doc/functions/sprintf.texi: Update.
39493         * doc/functions/vfprintf.texi: Update.
39494         * doc/functions/vprintf.texi: Update.
39495         * doc/functions/vsnprintf.texi: Update.
39496         * doc/functions/vsprintf.texi: Update.
39497
39498 2007-11-03  Bruno Haible  <bruno@clisp.org>
39499
39500         * modules/frexp-nolibm-tests: New file.
39501
39502         * modules/frexp-nolibm: New file.
39503         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39504
39505 2007-11-03  Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39508         value is C99 compliant.
39509         Needed for OSF/1 5.1.
39510
39511 2007-11-03  Bruno Haible  <bruno@clisp.org>
39512
39513         Fix out-of-memory handling of vasnprintf.
39514         * lib/printf-parse.c: Include <errno.h>.
39515         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39516         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39517         is already set.
39518
39519 2007-11-02  Eric Blake  <ebb9@byu.net>
39520
39521         Fix tests on cygwin.
39522         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39523
39524 2007-11-01  Bruno Haible  <bruno@clisp.org>
39525
39526         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39527         warning.
39528         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39529         needed for POSIX compatibility.
39530
39531 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39532
39533         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39534         for compatibility with GNU.
39535
39536 2007-11-01  Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39539         (putenv): Renamed from rpl_putenv. Change argument type from
39540         'const char *' to 'char *'.
39541         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39542         of defining putenv in config.h, just set REPLACE_PUTENV.
39543         * modules/putenv (Depends-on): Add stdlib.
39544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39545         (Include): Use <stdlib.h>.
39546         * lib/stdlib.in.h (putenv): New declaration.
39547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39548         REPLACE_PUTENV.
39549         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39550         REPLACE_PUTENV.
39551         Needed for MacOS X 10.5.0.
39552         Reported by Peter O'Gorman <peter@pogma.com>.
39553
39554 2007-11-01  Jim Meyering  <meyering@redhat.com>
39555
39556         Treat an empty date string exactly like "0".
39557         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39558         if the remaining date string (to be parsed) is empty, use "0".
39559         Reported by Mischa Molhoek and discussed in this thread:
39560         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39561
39562 2007-10-31  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39565         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39566         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39567         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39568         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39569         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39570
39571 2007-10-31  Bruno Haible  <bruno@clisp.org>
39572
39573         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39574         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39575         (AC_TYPE_LONG_LONG_INT): Use it.
39576         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39577         it as well.
39578         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39579         to m4/longlong.m4.
39580         * modules/stdint (Files): Remove m4/ulonglong.m4.
39581         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39582         m4/ulonglong.m4.
39583         * modules/strtoumax (Files): Likewise.
39584
39585 2007-10-30  Bruno Haible  <bruno@clisp.org>
39586
39587         * modules/xvasprintf-posix: New file.
39588         Suggested by Eric Blake.
39589
39590 2007-10-30  Bruno Haible  <bruno@clisp.org>
39591
39592         * modules/xprintf-posix-tests: New file.
39593         * tests/test-xprintf-posix.sh: New file.
39594         * tests/test-xprintf-posix.c: New file.
39595         * tests/test-xfprintf-posix.c: New file.
39596
39597         * modules/xprintf-posix: New file.
39598
39599 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39600
39601         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39602         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39603         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39604
39605 2007-10-29  Bruno Haible  <bruno@clisp.org>
39606
39607         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39608         contain the special marker '_cv_'.
39609         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39610         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39611         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39612         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39613         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39614         Reported by Ralf Wildenhues.
39615
39616 2007-10-29  Bruno Haible  <bruno@clisp.org>
39617
39618         * gnulib-tool (func_import): When --lgpl is not specified, set
39619         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39620         GPLv3.
39621         Reported by Simon Josefsson.
39622
39623 2007-10-28  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39626         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39627         HAVE_DECL_ISFINITE.
39628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39629         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39630         HAVE_DECL_ISFINITE.
39631
39632 2007-10-28  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39635         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39636
39637 2007-10-28  Bruno Haible  <bruno@clisp.org>
39638
39639         Fix link errors with Sun C 5.0 on Solaris 10.
39640         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39641         function is declared but not present in the compiler's libm.
39642         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39643         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39644         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39645         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39646         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39647         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39648         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39650         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39651         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39652         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39653         HAVE_DECL_FLOORL.
39654
39655 2007-10-28  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39658         gl_FUNC_FLOORL. Cache the result.
39659         (gl_FUNC_FLOORL): Use it.
39660         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39661         gl_FUNC_CEILL. Cache the result.
39662         (gl_FUNC_CEILL): Use it.
39663
39664         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39665         gl_FUNC_FLOOR. Cache the result.
39666         (gl_FUNC_FLOOR): Use it.
39667         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39668         gl_FUNC_CEIL. Cache the result.
39669         (gl_FUNC_CEIL): Use it.
39670
39671         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39672         gl_FUNC_FLOORF. Cache the result.
39673         (gl_FUNC_FLOORF): Use it.
39674         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39675         gl_FUNC_CEILF. Cache the result.
39676         (gl_FUNC_CEILF): Use it.
39677
39678 2007-10-28  Bruno Haible  <bruno@clisp.org>
39679
39680         * gnulib-tool: Allow specifying the LGPL version number through
39681         --lgpl=2 or --lgpl=3.
39682         (func_usage): Document --lgpl with argument.
39683         Handle --lgpl=... arguments.
39684         (func_import): Recognize also gl_LGPL calls with an argument. When
39685         --lgpl=2 is used and the module's license is just LGPL, report an
39686         error. Set sed_transform_lib_file according to the lgpl variable. In
39687         the generated files, use --lgpl or gl_LGPL invocations with argument,
39688         if necessary.
39689         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39690         an LGPv2+ license.
39691         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39692         gl_LGPL macro.
39693
39694 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39695             Bruno Haible  <bruno@clisp.org>
39696
39697         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39698         (u16_uctomb_aux): Likewise.
39699         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39700         !HAVE_INLINE.
39701         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39702
39703 2007-10-28  Bruno Haible  <bruno@clisp.org>
39704
39705         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39706         Invoke AM_GETTEXT_OPTION if it exists.
39707         * modules/vasprintf: Likewise.
39708         * modules/verror: Likewise.
39709         * modules/xprintf: Likewise.
39710         * modules/xvasprintf: Likewise.
39711
39712 2007-10-27  Ben Pfaff  <blp@gnu.org>
39713
39714         * lib/math.in.h: Define isfinite macro and prototypes for
39715         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39716         implementations.
39717         * m4/math_h.m4: New substitutions for isfinite module.
39718         * lib/isfinite.c: New file.
39719         * m4/isfinite.m4: New file.
39720         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39721         * modules/isfinite: New file.
39722         * modules/isfinite-tests: New file.
39723         * tests/tests-isfinite.c: New file.
39724         * doc/functions/isfinite.texi: Mention isfinite module.
39725         * MODULES.html.sh: Mention new module.
39726
39727 2007-10-27  Ben Pfaff  <blp@gnu.org>
39728
39729         Ralf Wildenhues reported that Tru64 4.0D declares the round
39730         functions but does not have definitions.
39731         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39732         cannot be found in any library, set the output variable to
39733         "missing" instead of "".
39734         * m4/round.m4: Also use our substitute if we cannot find round in
39735         any library, even if it is declared.
39736         * m4/roundf.m4: Likewise for roundf.
39737         * m4/roundl.m4: Likewise for roundl.
39738         * lib/math.in.h: Undefine roundf, round, roundl before defining
39739         their replacements, to allow for hypothetical systems where these
39740         may be defined as macros but not available in libraries.
39741
39742 2007-10-27  Bruno Haible  <bruno@clisp.org>
39743
39744         * doc/gnulib.texi: Invoke @firstparagraphindent.
39745         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39746         changes in gnulib.
39747         (Source changes): New section.
39748
39749 2007-10-26  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39752         borrowed from autoconf.
39753
39754 2007-10-26  Bruno Haible  <bruno@clisp.org>
39755
39756         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39757         strerror returned the empty string. Needed on HP-UX 11.00.
39758
39759 2007-10-24  Micah Cowan  <micah@cowan.name>
39760
39761         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39762         * build-aux/bootstrap: Remove support for now-unnecessary option,
39763         --cvs-user, and envvars CVS_USER, CVS_RSH.
39764
39765 2007-10-24  Jim Meyering  <meyering@redhat.com>
39766
39767         Avoid diagnostics from sha1sum when there is no cached checksum.
39768         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39769         if the po.s1 file hasn't been created yet.
39770
39771         * build-aux/bootstrap: Sync from coreutils:
39772         2007-10-24  Jim Meyering  <meyering@redhat.com>
39773         Get gnulib from the git repository, not from an obsolete cvs one.
39774         * build-aux/bootstrap: Suggestion from Micah Cowan.
39775         2007-10-04  Jim Meyering  <jim@meyering.net>
39776         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39777         (update_po_files): Work also when there are no .po files in po/.
39778
39779 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39780
39781         * README: Append ".git" to git and cg examples.
39782         Problem reported by Benoit Sigoure.
39783
39784 2007-10-23  Micah Cowan  <micah@cowan.name>
39785
39786         * users.txt: Add wget.
39787
39788 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39789
39790         Fix linking of some unistdio tests on FreeBSD.
39791         * modules/unistdio/u16-vsnprintf-tests
39792         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39793         * modules/unistdio/u16-vsprintf-tests
39794         (test_u16_vsnprintf1_LDADD): Likewise.
39795         * modules/unistdio/u32-vsnprintf-tests
39796         (test_u32_vsnprintf1_LDADD): Likewise.
39797         * modules/unistdio/u32-vsprintf-tests
39798         (test_u32_vsprintf1_LDADD): Likewise.
39799         * modules/unistdio/u8-vsnprintf-tests
39800         (test_u8_vsnprintf1_LDADD): Likewise.
39801         * modules/unistdio/u8-vsprintf-tests
39802         (test_u8_vsprintf1_LDADD): Likewise.
39803         * modules/unistdio/ulc-vsnprintf-tests
39804         (test_ulc_vsnprintf1_LDADD): Likewise.
39805         * modules/unistdio/ulc-vsprintf-tests
39806         (test_ulc_vsprintf1_LDADD): Likewise.
39807
39808         Fix linking of some uniconv tests on FreeBSD.
39809         * modules/uniconv/u16-conv-from-enc-tests
39810         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39811         * modules/uniconv/u16-conv-to-enc-tests
39812         (test_u16_conv_to_enc_LDADD): Likewise.
39813         * modules/uniconv/u16-strconv-from-enc-tests
39814         (test_u16_strconv_from_enc_LDADD): Likewise.
39815         * modules/uniconv/u16-strconv-to-enc-tests
39816         (test_u16_strconv_to_enc_LDADD): Likewise.
39817         * modules/uniconv/u32-conv-from-enc-tests
39818         (test_u32_conv_from_enc_LDADD): Likewise.
39819         * modules/uniconv/u32-conv-to-enc-tests
39820         (test_u32_conv_to_enc_LDADD): Likewise.
39821         * modules/uniconv/u32-strconv-from-enc-tests
39822         (test_u32_strconv_from_enc_LDADD): Likewise.
39823         * modules/uniconv/u32-strconv-to-enc-tests
39824         (test_u32_strconv_to_enc_LDADD): Likewise.
39825         * modules/uniconv/u8-conv-from-enc-tests
39826         (test_u8_conv_from_enc_LDADD): Likewise.
39827         * modules/uniconv/u8-conv-to-enc-tests
39828         (test_u8_conv_to_enc_LDADD): Likewise.
39829         * modules/uniconv/u8-strconv-from-enc-tests
39830         (test_u8_strconv_from_enc_LDADD): Likewise.
39831         * modules/uniconv/u8-strconv-to-enc-tests
39832         (test_u8_strconv_to_enc_LDADD): Likewise.
39833
39834 2007-10-22  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39837         size.
39838
39839 2007-10-22  Eric Blake  <ebb9@byu.net>
39840
39841         Tweak x*printf documentation.
39842         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39843         variable name and comments.
39844         Suggested by Bruno Haible.
39845
39846 2007-10-22  Bruno Haible  <bruno@clisp.org>
39847
39848         * lib/acl.c (copy_acl): Fix file name in comment.
39849
39850 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39851
39852         Fix Tru64 problem with stdbool.h.
39853         * lib/stdbool.in.h (false, true):
39854         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39855         Don't declare as an enum in this situation; it runs afoul of Tru64.
39856         Problem reported by Steven M. Schweda in
39857         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39858
39859 2007-10-22  Eric Blake  <ebb9@byu.net>
39860
39861         Also wrap vf?printf.
39862         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39863         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39864         (xvprintf, xvfprintf): New functions.
39865
39866 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39867
39868         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39869         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39870
39871         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39872         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39873
39874 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39875
39876         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39877         by Bruno Haible.
39878
39879 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39880
39881         * lib/getloadavg.c
39882         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39883         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39884
39885         * tests/test-i-ring.c: Work for C89.
39886
39887 2007-10-22  Bruno Haible  <bruno@clisp.org>
39888
39889         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39890         -1u, in preprocessor expression, so that we don't test for the bug
39891         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39893
39894 2007-10-22  Eric Blake  <ebb9@byu.net>
39895
39896         * tests/test-yesno.sh: Silence stderr during test.
39897
39898 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39899
39900         * modules/crypto/gc-camellia: New file.
39901
39902         * m4/gc-camellia.m4: New file.
39903
39904         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39905
39906         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39907
39908 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39909
39910         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39911         --help to stdout.  Reported by sms@antinode.org (Steven
39912         M. Schweda).
39913
39914 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39915
39916         * users.txt: Fix link to libksba.
39917
39918 2007-10-21  Ben Pfaff  <blp@gnu.org>
39919
39920         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39921         round.c roundf implementation that depends on floorf and ceilf to
39922         be tested unconditionally.
39923
39924 2007-10-21  Ben Pfaff  <blp@gnu.org>
39925
39926         * m4/check-libm-func.m4: Removed.
39927         * m4/check-math-lib.m4: New file.
39928         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39929         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39930         definition and lack of AC_LIBOBJ([roundf]).
39931         * m4/roundl.m4: Ditto, and similarly for roundl.
39932         * modules/round: Reference new m4 file.
39933         * modules/roundf: Ditto.
39934         * modules/roundl: Ditto.
39935         * tests/test-round2.c (main): Use ROUND instead of round.
39936         Bug report from Bruno Haible.
39937
39938 2007-10-21  Bruno Haible  <bruno@clisp.org>
39939
39940         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39941         context.
39942
39943 2007-10-21  Bruno Haible  <bruno@clisp.org>
39944
39945         * tests/test-wcwidth.c (main): Allow negative result for some control
39946         characters.
39947
39948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39949         Needed on OSF/1 5.1.
39950
39951 2007-10-21  Bruno Haible  <bruno@clisp.org>
39952
39953         * tests/test-floorf1.c: Include isnanf.h.
39954         (main): Use isnanf() instead of isnan().
39955         * tests/test-ceilf1.c: Include isnanf.h.
39956         (main): Use isnanf() instead of isnan().
39957         * tests/test-truncf1.c: Include isnanf.h.
39958         (main): Use isnanf() instead of isnan().
39959         * tests/test-roundf1.c: Include isnanf.h.
39960         (main): Use isnanf() instead of isnan().
39961
39962 2007-10-21  Eric Blake  <ebb9@byu.net>
39963
39964         * users.txt: Update URL for m4.
39965
39966 2007-10-21  Bruno Haible  <bruno@clisp.org>
39967
39968         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39969
39970 2007-10-21  Bruno Haible  <bruno@clisp.org>
39971
39972         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39973         Git's management files if the CVS files are not present.
39974
39975 2007-10-20  Bruno Haible  <bruno@clisp.org>
39976
39977         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39978         gcc-3.4.x.
39979
39980 2007-10-20  Ben Pfaff  <blp@gnu.org>
39981
39982         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39983         implementations.
39984         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39985         * lib/round.c: New file.
39986         * lib/roundf.c: New file.
39987         * lib/roundl.c: New file.
39988         * m4/round.m4: New file.
39989         * m4/roundf.m4: New file.
39990         * m4/roundl.m4: New file.
39991         * m4/check-libm-func-m4: New file.
39992         * modules/math: Replace round, roundf, roundl related @VARS@ in
39993         math.in.h.
39994         * modules/round: New file.
39995         * modules/round-tests: New file.
39996         * modules/roundf: New file.
39997         * modules/roundf-tests: New file.
39998         * modules/roundl: New file.
39999         * modules/roundl-tests: New file.
40000         * tests/test-round1.c: New file.
40001         * tests/test-round2.c: New file.
40002         * tests/test-roundf1.c: New file.
40003         * tests/test-roundf2.c: New file.
40004         * tests/test-roundl.c: New file.
40005         * doc/functions/round.texi: Mention round module.
40006         * doc/functions/roundf.texi: Mention roundf module.
40007         * doc/functions/roundl.texi: Mention roundl module.
40008         * MODULES.html.sh: Mention new modules.
40009         Thanks to Bruno Haible for suggestions.
40010
40011 2007-10-20  Jim Meyering  <meyering@redhat.com>
40012
40013         * lib/xprintf.c: Include <config.h> unconditionally.
40014
40015         Change xprintf's license to GPL.
40016         * modules/xprintf (License): s/LGPL/GPL/, since this module
40017         depends on modules (exit and exitfail) which are GPL.
40018         Suggestion from Bruno Haible.
40019
40020         xprintf fixes.
40021         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40022         Use a clearer diagnostic.
40023         Patch from Bruno Haible.
40024
40025 2007-10-20  Bruno Haible  <bruno@clisp.org>
40026
40027         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40028         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40030
40031 2007-10-20  Bruno Haible  <bruno@clisp.org>
40032
40033         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40034         precision in the comparison result > x - 1 or similar.
40035         * tests/test-ceilf2.c (correct_result_p): Likewise.
40036         * tests/test-truncf2.c (correct_result_p): Likewise.
40037         * tests/test-trunc2.c (correct_result_p): Likewise.
40038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40039
40040 2007-10-20  Bruno Haible  <bruno@clisp.org>
40041
40042         * modules/ceil: New file.
40043         * m4/ceil.m4: New file.
40044         * doc/functions/ceil.texi: Mention the 'ceil' module.
40045
40046 2007-10-20  Bruno Haible  <bruno@clisp.org>
40047
40048         * modules/floor: New file.
40049         * m4/floor.m4: New file.
40050         * doc/functions/floor.texi: Mention the 'floor' module.
40051
40052 2007-10-20  Bruno Haible  <bruno@clisp.org>
40053
40054         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40055         of %a.
40056         * modules/floorf-tests (Depends-on): Likewise.
40057         * modules/truncf-tests (Depends-on): Likewise.
40058         * modules/trunc-tests (Depends-on): Likewise.
40059         Reported by Ben Pfaff.
40060
40061 2007-10-19  Jim Meyering  <meyering@redhat.com>
40062
40063         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40064         Don't bother testing specific errno values.  Just test ferror.
40065
40066         New module: xprintf
40067         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40068
40069 2007-10-19  Bruno Haible  <bruno@clisp.org>
40070
40071         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40072         syntax.
40073         * modules/javaexec (Makefile.am): Likewise.
40074         * modules/relocatable-prog (Makefile.am): Likewise.
40075         Suggested by Jim Meyering.
40076
40077 2007-10-18  Bruno Haible  <bruno@clisp.org>
40078
40079         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40080         Reported by Jim Meyering.
40081
40082 2007-10-18  Eric Blake  <ebb9@byu.net>
40083
40084         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40085
40086 2007-10-18  Bruno Haible  <bruno@clisp.org>
40087
40088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40089         the format string into writable memory. Needed in Fortify conditions.
40090
40091 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40092             Bruno Haible  <bruno@clisp.org>
40093
40094         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40095         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40096         * modules/trim (Depends-on): Add mbchar.
40097         (configure.ac): Add gl_FUNC_MBRTOWC.
40098         (Makefile.am): Augment lib_SOURCES.
40099
40100 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40101
40102         Modify glob.c to use fstatat and dirfd, to simplify it.
40103         Suggested by Eric Blake.
40104         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40105         Don't include <stdbool.h>; not used.
40106         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40107         (link_exists_p): Simplify implementation, since we can now assume
40108         dirfd and fstatat.
40109         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40110
40111 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40112
40113         * gnulib-tool (func_get_dependencies): Fix sed script to
40114         match only tests.
40115
40116 2007-10-17  Bruno Haible  <bruno@clisp.org>
40117
40118         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40119         allow locale names without encoding suffix.
40120         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40121         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40122
40123 2007-10-16  Bruno Haible  <bruno@clisp.org>
40124
40125         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40126         * lib/getgroups.c (getgroups): Likewise.
40127         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40128
40129 2007-10-16  Bruno Haible  <bruno@clisp.org>
40130
40131         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40132         * modules/malloc-posix (License): Likewise.
40133         * modules/realloc-posix (License): Likewise.
40134         * modules/calloc-posix (License): Likewise.
40135         * modules/intprops (License): Change from GPL to LGPL, with
40136         Paul Eggert's approval.
40137
40138 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         Merge glibc changes into lib/glob.c.
40141
40142         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40143         2007-10-15 04:59:03 UTC.  Here are the changes:
40144
40145         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40146
40147         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40148
40149         * lib/glob.c: Add some branch prediction throughout.
40150
40151         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40152
40153         [BZ #5103]
40154         * lib/glob.c (glob): Recognize patterns starting \/.
40155
40156         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40157
40158         [BZ #3996]
40159         * lib/glob.c (attribute_hidden): Define if not defined.
40160         (glob): Unescape dirname, filename or username when needed and not
40161         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40162         is NULL.  Handle unescaped [ in pattern without closing ].
40163         Don't pass GLOB_CHECK down to recursive glob for directories.
40164         (__glob_pattern_type): New function.
40165         (__glob_pattern_p): Implement using __glob_pattern_type.
40166         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40167         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40168         Remove unreachable code.
40169
40170         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40171
40172         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40173         explain why there are no leaks.
40174
40175         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40176
40177         [BZ #3253]
40178         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40179         time, rather allocate increasingly bigger arrays of pointers, if
40180         possible with alloca, if too large with malloc.
40181
40182 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40183
40184         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40185         Problem reported by H.Merijn Brand in
40186         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40187         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40188         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40189
40190 2007-10-15  Bruno Haible  <bruno@clisp.org>
40191
40192         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40193         with explicit rpl_ prefix.
40194         * lib/fopen.c (fopen): Likewise.
40195         * lib/freopen.c (freopen): Likewise.
40196         * lib/iconv.c (iconv): Likewise.
40197         * lib/iconv_close.c (iconv_close): Likewise.
40198
40199 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40200
40201         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40202
40203 2007-10-15  Bruno Haible  <bruno@clisp.org>
40204
40205         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40206         <stddef.h> instead of <stdlib.h> since we only need NULL.
40207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40208
40209 2007-10-15  Bruno Haible  <bruno@clisp.org>
40210
40211         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40212         Replace paragraph talking about LIBOBJS.
40213         Reported by Colin Watson <cjwatson@debian.org>.
40214
40215 2007-10-15  Bruno Haible  <bruno@clisp.org>
40216
40217         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40218         <stdlib.h> before using NULL.
40219
40220 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40221
40222         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40223         Reported by Albert Chin <china@thewrittenword.com>.
40224
40225 2007-10-14  Bruno Haible  <bruno@clisp.org>
40226
40227         * modules/iconv_open-utf-tests: New file.
40228         * tests/test-iconv-utf.c: New file.
40229
40230         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40231         * modules/iconv_open-utf: New file.
40232         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40233         (iconv, iconv_close): New declarations.
40234         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40235         be defined.
40236         (iconv_open): Add special handling of conversion between UTF-8 and
40237         UTF-{16,32}{BE,LE}.
40238         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40239         * lib/iconv_close.c: New file.
40240         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40241         gl_FUNC_ICONV_OPEN.
40242         (gl_FUNC_ICONV_OPEN): Use it.
40243         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40244         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40245         and REPLACE_ICONV_UTF.
40246         * modules/iconv_open (Depends-on): Add c-strcase.
40247         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40248         ICONV_CONST.
40249         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40250
40251 2007-10-13  Albert Chin  <china@thewrittenword.com>
40252             Bruno Haible  <bruno@clisp.org>
40253
40254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40255         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40256
40257 2007-10-13  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40260         defined, use the ISO C99 inline semantics.
40261         * lib/argp.h (ARGP_EI): Likewise.
40262
40263 2007-10-13  Bruno Haible  <bruno@clisp.org>
40264
40265         Handle 'inline' change in gcc 4.3.0.
40266         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40267         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40268         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40269         argp_fmtstream_point): Disable 'extern' declaration if the function
40270         definition is going to be provided inline.
40271         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40272         semantics, not the ISO C99 inline semantics.
40273         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40274         'extern' declaration if the function definition is going to be provided
40275         inline.
40276         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40277         the GNU C inline semantics, not the ISO C99 inline semantics. With
40278         GCC 4.2, avoid a warning.
40279
40280 2007-10-13  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/freading.h (freading): Enable the use of __freading for
40283         glibc >= 2.7.
40284         * lib/freading.c (freading): Likewise.
40285
40286 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40287
40288         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40289         "warning: C99 inline functions are not supported; using GNU89".
40290
40291 2007-10-12  Bruno Haible  <bruno@clisp.org>
40292
40293         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40294         of 2.
40295         * tests/test-ceilf2.c: New file.
40296         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40297
40298         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40299         * modules/ceilf-tests: Update.
40300
40301 2007-10-12  Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40304         of 2.
40305         * tests/test-floorf2.c: New file.
40306         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40307
40308         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40309         * modules/floorf-tests: Update.
40310
40311 2007-10-12  Bruno Haible  <bruno@clisp.org>
40312
40313         * tests/test-trunc2.c: New file.
40314         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40315
40316         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40317         * modules/trunc-tests: Update.
40318
40319 2007-10-12  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40322         of 2.
40323         * tests/test-truncf2.c: New file.
40324         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40325
40326         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40327         * modules/truncf-tests: Update.
40328
40329 2007-10-11  Eric Blake  <ebb9@byu.net>
40330
40331         Don't claim strerror is broken on Interix.
40332         * doc/functions/strerror.texi (strerror): Known broken systems are
40333         now Solaris 8, and not Interix.
40334         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40335         Interix on cross-compile.
40336         Reported by Martin Koeppe in
40337         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40338
40339 2007-10-11  Bruno Haible  <bruno@clisp.org>
40340
40341         * modules/i-ring-tests: New file.
40342         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40343         instead of assert.
40344
40345 2007-10-11  Bruno Haible  <bruno@clisp.org>
40346
40347         * modules/filenamecat-tests: New file.
40348         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40349         * lib/filenamecat.c: Remove test code.
40350
40351 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40352
40353         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40354
40355         * lib/strerror.c: Include <string.h> always, to test interface,
40356         and to remove the need for the dummy.
40357         Include intprops.h to compute width instead of doing it ourselves
40358         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40359         (strerror): Define it to return NULL if there's no system strerror.
40360         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40361         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40362         ancient pre-strerror Unix systems well any more.  Saying "unknown
40363         system error" is enough.
40364         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40365         simpler strerror.c implementation.
40366         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40367         Simplify the tests to reflect the simpler strerror implementation.
40368         * modules/strerror (Depends-on): Add intprops.
40369
40370 2007-10-09  Eric Blake  <ebb9@byu.net>
40371
40372         Silence test-fpending.
40373         * modules/fpending-tests (Files): Add wrapper script.
40374         * tests/test-fpending.sh: New file.
40375
40376 2007-10-09  Bruno Haible  <bruno@clisp.org>
40377
40378         * MODULES.html.sh (func_module): Don't create a hyperlink for
40379         function names like 'printf_frexp'.
40380         (Misc): Add crc, memxor.
40381         (Characteristics of floating types): New section.
40382         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40383         isnanf-nolibm, signbit, trunc, truncf, truncl.
40384         (Enhancements for ISO C 99 functions): New subsection Input/output.
40385         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40386         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40387         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40388         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40389         (Enhancements for POSIX:2001 functions): Add chdir-long.
40390         (File system functions): Add areadlink, chdir-safer, read-file.
40391         Remove cycle-check.
40392         (File system as inode set): New section.
40393         (Date and time): Add gethrxtime.
40394         (Multithreading): Add openmp.
40395         (Internationalization functions): Add localename.
40396         (Unicode string functions): Add unistr/u*-mbsnlen.
40397         (Support for maintaining and releasing projects): Add git-version-gen.
40398         (Lone files): Remove directories.
40399
40400 2007-10-08  Ben Pfaff  <blp@gnu.org>
40401
40402         * lib/xmalloca.h: Fix typo in comment.
40403
40404 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40405
40406         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40407         when avoiding problems with integer overflow.  Use a portable test
40408         instead.
40409
40410 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40411
40412         * modules/dummy (License): Change to LGPLv2+.
40413         * modules/float (License): Likewise
40414         * modules/realloc (License): Likewise
40415         * modules/stdlib (License): Likewise
40416
40417 2007-10-07  Bruno Haible  <bruno@clisp.org>
40418
40419         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40420         * floor.c (TWO_MANT_DIG): Likewise.
40421         * ceil.c (TWO_MANT_DIG): Likewise.
40422         Reported by Ben Pfaff.
40423
40424 2007-10-07  Bruno Haible  <bruno@clisp.org>
40425
40426         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40427         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40428         * lib/frexp.c (FUNC): Likewise.
40429         * lib/printf-frexp.h (printf_frexp): Likewise.
40430         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40431         * lib/printf-frexp.c (FUNC): Likewise.
40432         Suggested by Jim Meyering.
40433
40434 2007-10-07  Jim Meyering  <meyering@redhat.com>
40435
40436         Make xnanosleep's integer overflow test more robust.
40437         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40438         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40439
40440 2007-10-07  Bruno Haible  <bruno@clisp.org>
40441
40442         * NEWS: Mention the license change.
40443
40444         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40445         abbreviations in the modules files.
40446
40447         Change copyright notice from GPLv2+ to GPLv3+.
40448         * README: Change copyright notice.
40449         * MODULES.html.sh: Likewise.
40450         * build-aux/bootstrap.conf: Likewise.
40451         * build-aux/config.libpath: Likewise.
40452         * build-aux/csharpcomp.sh.in: Likewise.
40453         * build-aux/csharpexec.sh.in: Likewise.
40454         * build-aux/install-reloc: Likewise.
40455         * build-aux/javacomp.sh.in: Likewise.
40456         * build-aux/javaexec.sh.in: Likewise.
40457         * build-aux/ldd.sh.in: Likewise.
40458         * build-aux/reloc-ldflags: Likewise.
40459         * build-aux/relocatable.sh.in: Likewise.
40460         * build-aux/x-to-1.in: Likewise.
40461         * check-module: Likewise.
40462         * config/srclistvars.sh: Likewise.
40463         * gnulib-tool: Likewise.
40464         * lib/acl-internal.h: Likewise.
40465         * lib/acl.c: Likewise.
40466         * lib/acl.h: Likewise.
40467         * lib/acl_entries.c: Likewise.
40468         * lib/areadlink-with-size.c: Likewise.
40469         * lib/areadlink.c: Likewise.
40470         * lib/areadlink.h: Likewise.
40471         * lib/argmatch.c: Likewise.
40472         * lib/argmatch.h: Likewise.
40473         * lib/argp-ba.c: Likewise.
40474         * lib/argp-eexst.c: Likewise.
40475         * lib/argp-fmtstream.c: Likewise.
40476         * lib/argp-fmtstream.h: Likewise.
40477         * lib/argp-fs-xinl.c: Likewise.
40478         * lib/argp-help.c: Likewise.
40479         * lib/argp-namefrob.h: Likewise.
40480         * lib/argp-parse.c: Likewise.
40481         * lib/argp-pin.c: Likewise.
40482         * lib/argp-pv.c: Likewise.
40483         * lib/argp-pvh.c: Likewise.
40484         * lib/argp-xinl.c: Likewise.
40485         * lib/argp.h: Likewise.
40486         * lib/at-func.c: Likewise.
40487         * lib/atanl.c: Likewise.
40488         * lib/backupfile.c: Likewise.
40489         * lib/backupfile.h: Likewise.
40490         * lib/basename.c: Likewise.
40491         * lib/binary-io.h: Likewise.
40492         * lib/byteswap.in.h: Likewise.
40493         * lib/c-stack.c: Likewise.
40494         * lib/c-stack.h: Likewise.
40495         * lib/c-strcasestr.c: Likewise.
40496         * lib/c-strcasestr.h: Likewise.
40497         * lib/c-strstr.c: Likewise.
40498         * lib/c-strstr.h: Likewise.
40499         * lib/c-strtod.c: Likewise.
40500         * lib/calloc.c: Likewise.
40501         * lib/canon-host.c: Likewise.
40502         * lib/canon-host.h: Likewise.
40503         * lib/canonicalize-lgpl.c: Likewise.
40504         * lib/canonicalize.c: Likewise.
40505         * lib/canonicalize.h: Likewise.
40506         * lib/ceil.c: Likewise.
40507         * lib/ceilf.c: Likewise.
40508         * lib/ceill.c: Likewise.
40509         * lib/chdir-long.c: Likewise.
40510         * lib/chdir-long.h: Likewise.
40511         * lib/chdir-safer.c: Likewise.
40512         * lib/chdir-safer.h: Likewise.
40513         * lib/chown.c: Likewise.
40514         * lib/classpath.c: Likewise.
40515         * lib/classpath.h: Likewise.
40516         * lib/clean-temp.c: Likewise.
40517         * lib/clean-temp.h: Likewise.
40518         * lib/cloexec.c: Likewise.
40519         * lib/close-stream.c: Likewise.
40520         * lib/closein.c: Likewise.
40521         * lib/closein.h: Likewise.
40522         * lib/closeout.c: Likewise.
40523         * lib/closeout.h: Likewise.
40524         * lib/concat-filename.c: Likewise.
40525         * lib/copy-file.c: Likewise.
40526         * lib/copy-file.h: Likewise.
40527         * lib/count-one-bits.h: Likewise.
40528         * lib/crc.c: Likewise.
40529         * lib/crc.h: Likewise.
40530         * lib/creat-safer.c: Likewise.
40531         * lib/csharpcomp.c: Likewise.
40532         * lib/csharpcomp.h: Likewise.
40533         * lib/csharpexec.c: Likewise.
40534         * lib/csharpexec.h: Likewise.
40535         * lib/cycle-check.c: Likewise.
40536         * lib/cycle-check.h: Likewise.
40537         * lib/diacrit.c: Likewise.
40538         * lib/diacrit.h: Likewise.
40539         * lib/diffseq.h: Likewise.
40540         * lib/dirchownmod.c: Likewise.
40541         * lib/dirent.in.h: Likewise.
40542         * lib/dirfd.c: Likewise.
40543         * lib/dirfd.h: Likewise.
40544         * lib/dirname.c: Likewise.
40545         * lib/dirname.h: Likewise.
40546         * lib/dummy.c: Likewise.
40547         * lib/dup-safer.c: Likewise.
40548         * lib/dup2.c: Likewise.
40549         * lib/eealloc.h: Likewise.
40550         * lib/error.c: Likewise.
40551         * lib/error.h: Likewise.
40552         * lib/euidaccess.c: Likewise.
40553         * lib/exclude.c: Likewise.
40554         * lib/exclude.h: Likewise.
40555         * lib/execute.c: Likewise.
40556         * lib/execute.h: Likewise.
40557         * lib/exitfail.c: Likewise.
40558         * lib/exitfail.h: Likewise.
40559         * lib/expl.c: Likewise.
40560         * lib/fatal-signal.c: Likewise.
40561         * lib/fatal-signal.h: Likewise.
40562         * lib/fbufmode.c: Likewise.
40563         * lib/fbufmode.h: Likewise.
40564         * lib/fchdir.c: Likewise.
40565         * lib/fchmodat.c: Likewise.
40566         * lib/fchownat.c: Likewise.
40567         * lib/fcntl--.h: Likewise.
40568         * lib/fcntl-safer.h: Likewise.
40569         * lib/fcntl.in.h: Likewise.
40570         * lib/fd-safer.c: Likewise.
40571         * lib/fflush.c: Likewise.
40572         * lib/file-has-acl.c: Likewise.
40573         * lib/file-set.c: Likewise.
40574         * lib/file-type.c: Likewise.
40575         * lib/file-type.h: Likewise.
40576         * lib/fileblocks.c: Likewise.
40577         * lib/filemode.c: Likewise.
40578         * lib/filemode.h: Likewise.
40579         * lib/filename.h: Likewise.
40580         * lib/filenamecat.c: Likewise.
40581         * lib/filenamecat.h: Likewise.
40582         * lib/findprog.c: Likewise.
40583         * lib/findprog.h: Likewise.
40584         * lib/float.in.h: Likewise.
40585         * lib/floor.c: Likewise.
40586         * lib/floorf.c: Likewise.
40587         * lib/floorl.c: Likewise.
40588         * lib/fopen-safer.c: Likewise.
40589         * lib/fopen.c: Likewise.
40590         * lib/fpending.c: Likewise.
40591         * lib/fpending.h: Likewise.
40592         * lib/fprintf.c: Likewise.
40593         * lib/fprintftime.h: Likewise.
40594         * lib/fpucw.h: Likewise.
40595         * lib/fpurge.c: Likewise.
40596         * lib/fpurge.h: Likewise.
40597         * lib/freadable.c: Likewise.
40598         * lib/freadable.h: Likewise.
40599         * lib/freadahead.c: Likewise.
40600         * lib/freadahead.h: Likewise.
40601         * lib/freading.c: Likewise.
40602         * lib/freading.h: Likewise.
40603         * lib/free.c: Likewise.
40604         * lib/freopen.c: Likewise.
40605         * lib/frexp.c: Likewise.
40606         * lib/frexpl.c: Likewise.
40607         * lib/fseek.c: Likewise.
40608         * lib/fseterr.c: Likewise.
40609         * lib/fseterr.h: Likewise.
40610         * lib/fstatat.c: Likewise.
40611         * lib/fstrcmp.c: Likewise.
40612         * lib/fstrcmp.h: Likewise.
40613         * lib/fsusage.c: Likewise.
40614         * lib/fsusage.h: Likewise.
40615         * lib/ftell.c: Likewise.
40616         * lib/ftello.c: Likewise.
40617         * lib/fts-cycle.c: Likewise.
40618         * lib/fts.c: Likewise.
40619         * lib/fts_.h: Likewise.
40620         * lib/full-read.c: Likewise.
40621         * lib/full-read.h: Likewise.
40622         * lib/full-write.c: Likewise.
40623         * lib/full-write.h: Likewise.
40624         * lib/fwritable.c: Likewise.
40625         * lib/fwritable.h: Likewise.
40626         * lib/fwriteerror.c: Likewise.
40627         * lib/fwriteerror.h: Likewise.
40628         * lib/fwriting.c: Likewise.
40629         * lib/fwriting.h: Likewise.
40630         * lib/gcd.c: Likewise.
40631         * lib/gcd.h: Likewise.
40632         * lib/getcwd.c: Likewise.
40633         * lib/getdate.h: Likewise.
40634         * lib/getdate.y: Likewise.
40635         * lib/getdomainname.c: Likewise.
40636         * lib/getdomainname.h: Likewise.
40637         * lib/getgroups.c: Likewise.
40638         * lib/gethostname.c: Likewise.
40639         * lib/gethrxtime.c: Likewise.
40640         * lib/gethrxtime.h: Likewise.
40641         * lib/getloadavg.c: Likewise.
40642         * lib/getndelim2.c: Likewise.
40643         * lib/getndelim2.h: Likewise.
40644         * lib/getnline.c: Likewise.
40645         * lib/getnline.h: Likewise.
40646         * lib/getopt.c: Likewise.
40647         * lib/getopt.in.h: Likewise.
40648         * lib/getopt1.c: Likewise.
40649         * lib/getopt_int.h: Likewise.
40650         * lib/getpagesize.h: Likewise.
40651         * lib/getsubopt.c: Likewise.
40652         * lib/gettime.c: Likewise.
40653         * lib/getugroups.c: Likewise.
40654         * lib/getugroups.h: Likewise.
40655         * lib/getusershell.c: Likewise.
40656         * lib/gl_anyavltree_list1.h: Likewise.
40657         * lib/gl_anyavltree_list2.h: Likewise.
40658         * lib/gl_anyhash_list1.h: Likewise.
40659         * lib/gl_anyhash_list2.h: Likewise.
40660         * lib/gl_anylinked_list1.h: Likewise.
40661         * lib/gl_anylinked_list2.h: Likewise.
40662         * lib/gl_anyrbtree_list1.h: Likewise.
40663         * lib/gl_anyrbtree_list2.h: Likewise.
40664         * lib/gl_anytree_list1.h: Likewise.
40665         * lib/gl_anytree_list2.h: Likewise.
40666         * lib/gl_anytree_oset.h: Likewise.
40667         * lib/gl_anytreehash_list1.h: Likewise.
40668         * lib/gl_anytreehash_list2.h: Likewise.
40669         * lib/gl_array_list.c: Likewise.
40670         * lib/gl_array_list.h: Likewise.
40671         * lib/gl_array_oset.c: Likewise.
40672         * lib/gl_array_oset.h: Likewise.
40673         * lib/gl_avltree_list.c: Likewise.
40674         * lib/gl_avltree_list.h: Likewise.
40675         * lib/gl_avltree_oset.c: Likewise.
40676         * lib/gl_avltree_oset.h: Likewise.
40677         * lib/gl_avltreehash_list.c: Likewise.
40678         * lib/gl_avltreehash_list.h: Likewise.
40679         * lib/gl_carray_list.c: Likewise.
40680         * lib/gl_carray_list.h: Likewise.
40681         * lib/gl_linked_list.c: Likewise.
40682         * lib/gl_linked_list.h: Likewise.
40683         * lib/gl_linkedhash_list.c: Likewise.
40684         * lib/gl_linkedhash_list.h: Likewise.
40685         * lib/gl_list.c: Likewise.
40686         * lib/gl_list.h: Likewise.
40687         * lib/gl_oset.c: Likewise.
40688         * lib/gl_oset.h: Likewise.
40689         * lib/gl_rbtree_list.c: Likewise.
40690         * lib/gl_rbtree_list.h: Likewise.
40691         * lib/gl_rbtree_oset.c: Likewise.
40692         * lib/gl_rbtree_oset.h: Likewise.
40693         * lib/gl_rbtreehash_list.c: Likewise.
40694         * lib/gl_rbtreehash_list.h: Likewise.
40695         * lib/gl_sublist.c: Likewise.
40696         * lib/gl_sublist.h: Likewise.
40697         * lib/group-member.c: Likewise.
40698         * lib/group-member.h: Likewise.
40699         * lib/hard-locale.c: Likewise.
40700         * lib/hard-locale.h: Likewise.
40701         * lib/hash-pjw.c: Likewise.
40702         * lib/hash-pjw.h: Likewise.
40703         * lib/hash-triple.c: Likewise.
40704         * lib/hash.c: Likewise.
40705         * lib/hash.h: Likewise.
40706         * lib/human.c: Likewise.
40707         * lib/human.h: Likewise.
40708         * lib/i-ring.c: Likewise.
40709         * lib/i-ring.h: Likewise.
40710         * lib/idcache.c: Likewise.
40711         * lib/imaxabs.c: Likewise.
40712         * lib/imaxdiv.c: Likewise.
40713         * lib/inet_pton.c: Likewise.
40714         * lib/inet_pton.h: Likewise.
40715         * lib/intprops.h: Likewise.
40716         * lib/inttostr.c: Likewise.
40717         * lib/inttostr.h: Likewise.
40718         * lib/inttypes.in.h: Likewise.
40719         * lib/isapipe.c: Likewise.
40720         * lib/isdir.c: Likewise.
40721         * lib/isnan.c: Likewise.
40722         * lib/isnan.h: Likewise.
40723         * lib/isnanf.c: Likewise.
40724         * lib/isnanf.h: Likewise.
40725         * lib/isnanl-nolibm.h: Likewise.
40726         * lib/isnanl.c: Likewise.
40727         * lib/isnanl.h: Likewise.
40728         * lib/javacomp.c: Likewise.
40729         * lib/javacomp.h: Likewise.
40730         * lib/javaexec.c: Likewise.
40731         * lib/javaexec.h: Likewise.
40732         * lib/javaversion.c: Likewise.
40733         * lib/javaversion.h: Likewise.
40734         * lib/javaversion.java: Likewise.
40735         * lib/lbrkprop.h: Likewise.
40736         * lib/lchmod.h: Likewise.
40737         * lib/lchown.c: Likewise.
40738         * lib/ldexpl.c: Likewise.
40739         * lib/linebreak.c: Likewise.
40740         * lib/linebreak.h: Likewise.
40741         * lib/linebuffer.c: Likewise.
40742         * lib/linebuffer.h: Likewise.
40743         * lib/locale.in.h: Likewise.
40744         * lib/logl.c: Likewise.
40745         * lib/long-options.c: Likewise.
40746         * lib/long-options.h: Likewise.
40747         * lib/lstat.c: Likewise.
40748         * lib/lstat.h: Likewise.
40749         * lib/math.in.h: Likewise.
40750         * lib/mbchar.c: Likewise.
40751         * lib/mbchar.h: Likewise.
40752         * lib/mbfile.h: Likewise.
40753         * lib/mbiter.h: Likewise.
40754         * lib/mbscasecmp.c: Likewise.
40755         * lib/mbscasestr.c: Likewise.
40756         * lib/mbschr.c: Likewise.
40757         * lib/mbscspn.c: Likewise.
40758         * lib/mbslen.c: Likewise.
40759         * lib/mbsncasecmp.c: Likewise.
40760         * lib/mbsnlen.c: Likewise.
40761         * lib/mbspbrk.c: Likewise.
40762         * lib/mbspcasecmp.c: Likewise.
40763         * lib/mbsrchr.c: Likewise.
40764         * lib/mbssep.c: Likewise.
40765         * lib/mbsspn.c: Likewise.
40766         * lib/mbsstr.c: Likewise.
40767         * lib/mbstok_r.c: Likewise.
40768         * lib/mbswidth.c: Likewise.
40769         * lib/mbswidth.h: Likewise.
40770         * lib/mbuiter.h: Likewise.
40771         * lib/memcasecmp.c: Likewise.
40772         * lib/memcasecmp.h: Likewise.
40773         * lib/memchr.c: Likewise.
40774         * lib/memcmp.c: Likewise.
40775         * lib/memcoll.c: Likewise.
40776         * lib/memcoll.h: Likewise.
40777         * lib/memcpy.c: Likewise.
40778         * lib/memrchr.c: Likewise.
40779         * lib/mkancesdirs.c: Likewise.
40780         * lib/mkdir-p.c: Likewise.
40781         * lib/mkdir-p.h: Likewise.
40782         * lib/mkdir.c: Likewise.
40783         * lib/mkdirat.c: Likewise.
40784         * lib/mkdtemp.c: Likewise.
40785         * lib/mkstemp-safer.c: Likewise.
40786         * lib/mkstemp.c: Likewise.
40787         * lib/modechange.c: Likewise.
40788         * lib/modechange.h: Likewise.
40789         * lib/mountlist.c: Likewise.
40790         * lib/mountlist.h: Likewise.
40791         * lib/mpsort.c: Likewise.
40792         * lib/nanosleep.c: Likewise.
40793         * lib/obstack.c: Likewise.
40794         * lib/obstack.h: Likewise.
40795         * lib/open-safer.c: Likewise.
40796         * lib/open.c: Likewise.
40797         * lib/openat-die.c: Likewise.
40798         * lib/openat-priv.h: Likewise.
40799         * lib/openat-proc.c: Likewise.
40800         * lib/openat.c: Likewise.
40801         * lib/openat.h: Likewise.
40802         * lib/pagealign_alloc.c: Likewise.
40803         * lib/pagealign_alloc.h: Likewise.
40804         * lib/physmem.c: Likewise.
40805         * lib/physmem.h: Likewise.
40806         * lib/pipe-safer.c: Likewise.
40807         * lib/pipe.c: Likewise.
40808         * lib/pipe.h: Likewise.
40809         * lib/posixtm.c: Likewise.
40810         * lib/posixtm.h: Likewise.
40811         * lib/posixver.c: Likewise.
40812         * lib/printf-frexp.c: Likewise.
40813         * lib/printf-frexp.h: Likewise.
40814         * lib/printf-frexpl.c: Likewise.
40815         * lib/printf-frexpl.h: Likewise.
40816         * lib/printf.c: Likewise.
40817         * lib/progname.c: Likewise.
40818         * lib/progname.h: Likewise.
40819         * lib/progreloc.c: Likewise.
40820         * lib/putenv.c: Likewise.
40821         * lib/quote.c: Likewise.
40822         * lib/quote.h: Likewise.
40823         * lib/quotearg.c: Likewise.
40824         * lib/quotearg.h: Likewise.
40825         * lib/raise.c: Likewise.
40826         * lib/readline.c: Likewise.
40827         * lib/readline.h: Likewise.
40828         * lib/readlink.c: Likewise.
40829         * lib/readtokens.c: Likewise.
40830         * lib/readtokens.h: Likewise.
40831         * lib/readtokens0.c: Likewise.
40832         * lib/readtokens0.h: Likewise.
40833         * lib/readutmp.c: Likewise.
40834         * lib/readutmp.h: Likewise.
40835         * lib/realloc.c: Likewise.
40836         * lib/relocwrapper.c: Likewise.
40837         * lib/rename-dest-slash.c: Likewise.
40838         * lib/rename.c: Likewise.
40839         * lib/rmdir.c: Likewise.
40840         * lib/rpmatch.c: Likewise.
40841         * lib/safe-read.c: Likewise.
40842         * lib/safe-read.h: Likewise.
40843         * lib/safe-write.c: Likewise.
40844         * lib/safe-write.h: Likewise.
40845         * lib/same-inode.h: Likewise.
40846         * lib/same.c: Likewise.
40847         * lib/same.h: Likewise.
40848         * lib/save-cwd.c: Likewise.
40849         * lib/save-cwd.h: Likewise.
40850         * lib/savedir.c: Likewise.
40851         * lib/savedir.h: Likewise.
40852         * lib/savewd.c: Likewise.
40853         * lib/savewd.h: Likewise.
40854         * lib/search.in.h: Likewise.
40855         * lib/setenv.c: Likewise.
40856         * lib/setenv.h: Likewise.
40857         * lib/settime.c: Likewise.
40858         * lib/sh-quote.c: Likewise.
40859         * lib/sh-quote.h: Likewise.
40860         * lib/sig2str.c: Likewise.
40861         * lib/sig2str.h: Likewise.
40862         * lib/signal.in.h: Likewise.
40863         * lib/signbitd.c: Likewise.
40864         * lib/signbitf.c: Likewise.
40865         * lib/signbitl.c: Likewise.
40866         * lib/sigprocmask.c: Likewise.
40867         * lib/sincosl.c: Likewise.
40868         * lib/sleep.c: Likewise.
40869         * lib/sprintf.c: Likewise.
40870         * lib/sqrtl.c: Likewise.
40871         * lib/stat-time.h: Likewise.
40872         * lib/stdio--.h: Likewise.
40873         * lib/stdio-safer.h: Likewise.
40874         * lib/stdlib--.h: Likewise.
40875         * lib/stdlib-safer.h: Likewise.
40876         * lib/stdlib.in.h: Likewise.
40877         * lib/stpcpy.c: Likewise.
40878         * lib/stpncpy.c: Likewise.
40879         * lib/strchrnul.c: Likewise.
40880         * lib/strcspn.c: Likewise.
40881         * lib/strerror.c: Likewise.
40882         * lib/strftime.c: Likewise.
40883         * lib/strftime.h: Likewise.
40884         * lib/striconveh.c: Likewise.
40885         * lib/striconveh.h: Likewise.
40886         * lib/striconveha.c: Likewise.
40887         * lib/striconveha.h: Likewise.
40888         * lib/stripslash.c: Likewise.
40889         * lib/strnlen1.c: Likewise.
40890         * lib/strnlen1.h: Likewise.
40891         * lib/strtod.c: Likewise.
40892         * lib/strtoimax.c: Likewise.
40893         * lib/strtok_r.c: Likewise.
40894         * lib/strtol.c: Likewise.
40895         * lib/strtoll.c: Likewise.
40896         * lib/strtoul.c: Likewise.
40897         * lib/strtoull.c: Likewise.
40898         * lib/sysexits.in.h: Likewise.
40899         * lib/tempname.c: Likewise.
40900         * lib/tempname.h: Likewise.
40901         * lib/timespec.h: Likewise.
40902         * lib/tls.c: Likewise.
40903         * lib/tls.h: Likewise.
40904         * lib/tmpdir.c: Likewise.
40905         * lib/tmpdir.h: Likewise.
40906         * lib/tmpfile-safer.c: Likewise.
40907         * lib/tmpfile.c: Likewise.
40908         * lib/trigl.c: Likewise.
40909         * lib/trigl.h: Likewise.
40910         * lib/trim.c: Likewise.
40911         * lib/trim.h: Likewise.
40912         * lib/trunc.c: Likewise.
40913         * lib/truncf.c: Likewise.
40914         * lib/truncl.c: Likewise.
40915         * lib/tsearch.c: Likewise.
40916         * lib/unicodeio.c: Likewise.
40917         * lib/unicodeio.h: Likewise.
40918         * lib/unistd--.h: Likewise.
40919         * lib/unistd-safer.h: Likewise.
40920         * lib/unistdio/ulc-fprintf.c: Likewise.
40921         * lib/unistdio/ulc-vfprintf.c: Likewise.
40922         * lib/unlinkdir.c: Likewise.
40923         * lib/unlinkdir.h: Likewise.
40924         * lib/unlocked-io.h: Likewise.
40925         * lib/unsetenv.c: Likewise.
40926         * lib/userspec.c: Likewise.
40927         * lib/utime.c: Likewise.
40928         * lib/utimecmp.c: Likewise.
40929         * lib/utimecmp.h: Likewise.
40930         * lib/utimens.c: Likewise.
40931         * lib/verify.h: Likewise.
40932         * lib/verror.c: Likewise.
40933         * lib/verror.h: Likewise.
40934         * lib/version-etc-fsf.c: Likewise.
40935         * lib/version-etc.c: Likewise.
40936         * lib/version-etc.h: Likewise.
40937         * lib/vfprintf.c: Likewise.
40938         * lib/vprintf.c: Likewise.
40939         * lib/vsprintf.c: Likewise.
40940         * lib/w32spawn.h: Likewise.
40941         * lib/wait-process.c: Likewise.
40942         * lib/wait-process.h: Likewise.
40943         * lib/wcwidth.c: Likewise.
40944         * lib/write-any-file.c: Likewise.
40945         * lib/xalloc-die.c: Likewise.
40946         * lib/xalloc.h: Likewise.
40947         * lib/xasprintf.c: Likewise.
40948         * lib/xgetcwd.c: Likewise.
40949         * lib/xgetcwd.h: Likewise.
40950         * lib/xgetdomainname.c: Likewise.
40951         * lib/xgetdomainname.h: Likewise.
40952         * lib/xgethostname.c: Likewise.
40953         * lib/xmalloc.c: Likewise.
40954         * lib/xmalloca.c: Likewise.
40955         * lib/xmalloca.h: Likewise.
40956         * lib/xmemcoll.c: Likewise.
40957         * lib/xnanosleep.c: Likewise.
40958         * lib/xreadlink.c: Likewise.
40959         * lib/xreadlink.h: Likewise.
40960         * lib/xsetenv.c: Likewise.
40961         * lib/xsetenv.h: Likewise.
40962         * lib/xstriconv.c: Likewise.
40963         * lib/xstriconv.h: Likewise.
40964         * lib/xstrndup.c: Likewise.
40965         * lib/xstrndup.h: Likewise.
40966         * lib/xstrtod.c: Likewise.
40967         * lib/xstrtod.h: Likewise.
40968         * lib/xstrtol-error.c: Likewise.
40969         * lib/xstrtol.c: Likewise.
40970         * lib/xstrtol.h: Likewise.
40971         * lib/xtime.h: Likewise.
40972         * lib/xvasprintf.c: Likewise.
40973         * lib/xvasprintf.h: Likewise.
40974         * lib/yesno.c: Likewise.
40975         * lib/yesno.h: Likewise.
40976         * posix-modules: Likewise.
40977         * tests/test-alloca-opt.c: Likewise.
40978         * tests/test-arcfour.c: Likewise.
40979         * tests/test-arctwo.c: Likewise.
40980         * tests/test-argmatch.c: Likewise.
40981         * tests/test-argp-2.sh: Likewise.
40982         * tests/test-argp.c: Likewise.
40983         * tests/test-arpa_inet.c: Likewise.
40984         * tests/test-array_list.c: Likewise.
40985         * tests/test-array_oset.c: Likewise.
40986         * tests/test-atexit.c: Likewise.
40987         * tests/test-avltree_list.c: Likewise.
40988         * tests/test-avltree_oset.c: Likewise.
40989         * tests/test-avltreehash_list.c: Likewise.
40990         * tests/test-base64.c: Likewise.
40991         * tests/test-binary-io.c: Likewise.
40992         * tests/test-byteswap.c: Likewise.
40993         * tests/test-c-ctype.c: Likewise.
40994         * tests/test-c-strcasecmp.c: Likewise.
40995         * tests/test-c-strcasestr.c: Likewise.
40996         * tests/test-c-strncasecmp.c: Likewise.
40997         * tests/test-c-strstr.c: Likewise.
40998         * tests/test-canonicalize-lgpl.c: Likewise.
40999         * tests/test-canonicalize.c: Likewise.
41000         * tests/test-carray_list.c: Likewise.
41001         * tests/test-ceilf.c: Likewise.
41002         * tests/test-ceill.c: Likewise.
41003         * tests/test-count-one-bits.c: Likewise.
41004         * tests/test-crc.c: Likewise.
41005         * tests/test-dirname.c: Likewise.
41006         * tests/test-fbufmode.c: Likewise.
41007         * tests/test-fcntl.c: Likewise.
41008         * tests/test-fflush.c: Likewise.
41009         * tests/test-floorf.c: Likewise.
41010         * tests/test-floorl.c: Likewise.
41011         * tests/test-fopen.c: Likewise.
41012         * tests/test-fprintf-posix.c: Likewise.
41013         * tests/test-fprintf-posix.h: Likewise.
41014         * tests/test-fpurge.c: Likewise.
41015         * tests/test-freadable.c: Likewise.
41016         * tests/test-freadahead.c: Likewise.
41017         * tests/test-freading.c: Likewise.
41018         * tests/test-freopen.c: Likewise.
41019         * tests/test-frexp.c: Likewise.
41020         * tests/test-frexpl.c: Likewise.
41021         * tests/test-fseek.c: Likewise.
41022         * tests/test-fseeko.c: Likewise.
41023         * tests/test-fseterr.c: Likewise.
41024         * tests/test-fstrcmp.c: Likewise.
41025         * tests/test-ftell.c: Likewise.
41026         * tests/test-ftello.c: Likewise.
41027         * tests/test-fwritable.c: Likewise.
41028         * tests/test-fwriting.c: Likewise.
41029         * tests/test-getaddrinfo.c: Likewise.
41030         * tests/test-getpass.c: Likewise.
41031         * tests/test-gettimeofday.c: Likewise.
41032         * tests/test-hmac-md5.c: Likewise.
41033         * tests/test-hmac-sha1.c: Likewise.
41034         * tests/test-iconv.c: Likewise.
41035         * tests/test-iconvme.c: Likewise.
41036         * tests/test-inttypes.c: Likewise.
41037         * tests/test-isnan.c: Likewise.
41038         * tests/test-isnanf.c: Likewise.
41039         * tests/test-isnanl-nolibm.c: Likewise.
41040         * tests/test-isnanl.c: Likewise.
41041         * tests/test-isnanl.h: Likewise.
41042         * tests/test-ldexpl.c: Likewise.
41043         * tests/test-linked_list.c: Likewise.
41044         * tests/test-linkedhash_list.c: Likewise.
41045         * tests/test-locale.c: Likewise.
41046         * tests/test-localename.c: Likewise.
41047         * tests/test-lock.c: Likewise.
41048         * tests/test-lseek.c: Likewise.
41049         * tests/test-malloca.c: Likewise.
41050         * tests/test-math.c: Likewise.
41051         * tests/test-mbscasecmp.c: Likewise.
41052         * tests/test-mbscasestr1.c: Likewise.
41053         * tests/test-mbscasestr2.c: Likewise.
41054         * tests/test-mbscasestr3.c: Likewise.
41055         * tests/test-mbscasestr4.c: Likewise.
41056         * tests/test-mbschr.c: Likewise.
41057         * tests/test-mbscspn.c: Likewise.
41058         * tests/test-mbsncasecmp.c: Likewise.
41059         * tests/test-mbspbrk.c: Likewise.
41060         * tests/test-mbspcasecmp.c: Likewise.
41061         * tests/test-mbsrchr.c: Likewise.
41062         * tests/test-mbsspn.c: Likewise.
41063         * tests/test-mbsstr1.c: Likewise.
41064         * tests/test-mbsstr2.c: Likewise.
41065         * tests/test-mbsstr3.c: Likewise.
41066         * tests/test-md5.c: Likewise.
41067         * tests/test-memmem.c: Likewise.
41068         * tests/test-netinet_in.c: Likewise.
41069         * tests/test-open.c: Likewise.
41070         * tests/test-printf-frexp.c: Likewise.
41071         * tests/test-printf-frexpl.c: Likewise.
41072         * tests/test-printf-posix.c: Likewise.
41073         * tests/test-printf-posix.h: Likewise.
41074         * tests/test-rbtree_list.c: Likewise.
41075         * tests/test-rbtree_oset.c: Likewise.
41076         * tests/test-rbtreehash_list.c: Likewise.
41077         * tests/test-read-file.c: Likewise.
41078         * tests/test-rijndael.c: Likewise.
41079         * tests/test-search.c: Likewise.
41080         * tests/test-signbit.c: Likewise.
41081         * tests/test-sleep.c: Likewise.
41082         * tests/test-snprintf-posix.c: Likewise.
41083         * tests/test-snprintf-posix.h: Likewise.
41084         * tests/test-snprintf.c: Likewise.
41085         * tests/test-sprintf-posix.c: Likewise.
41086         * tests/test-sprintf-posix.h: Likewise.
41087         * tests/test-stat-time.c: Likewise.
41088         * tests/test-stdbool.c: Likewise.
41089         * tests/test-stdint.c: Likewise.
41090         * tests/test-stdio.c: Likewise.
41091         * tests/test-stdlib.c: Likewise.
41092         * tests/test-stpncpy.c: Likewise.
41093         * tests/test-strcasestr.c: Likewise.
41094         * tests/test-striconv.c: Likewise.
41095         * tests/test-striconveh.c: Likewise.
41096         * tests/test-striconveha.c: Likewise.
41097         * tests/test-string.c: Likewise.
41098         * tests/test-sys_select.c: Likewise.
41099         * tests/test-sys_socket.c: Likewise.
41100         * tests/test-sys_stat.c: Likewise.
41101         * tests/test-sys_time.c: Likewise.
41102         * tests/test-sysexits.c: Likewise.
41103         * tests/test-time.c: Likewise.
41104         * tests/test-tls.c: Likewise.
41105         * tests/test-trunc.c: Likewise.
41106         * tests/test-truncf.c: Likewise.
41107         * tests/test-truncl.c: Likewise.
41108         * tests/test-unistd.c: Likewise.
41109         * tests/test-vasnprintf-posix.c: Likewise.
41110         * tests/test-vasnprintf-posix2.c: Likewise.
41111         * tests/test-vasnprintf.c: Likewise.
41112         * tests/test-vasprintf-posix.c: Likewise.
41113         * tests/test-vasprintf.c: Likewise.
41114         * tests/test-verify.c: Likewise.
41115         * tests/test-vfprintf-posix.c: Likewise.
41116         * tests/test-vprintf-posix.c: Likewise.
41117         * tests/test-vsnprintf-posix.c: Likewise.
41118         * tests/test-vsnprintf.c: Likewise.
41119         * tests/test-vsprintf-posix.c: Likewise.
41120         * tests/test-wchar.c: Likewise.
41121         * tests/test-wctype.c: Likewise.
41122         * tests/test-wcwidth.c: Likewise.
41123         * tests/test-xstrtol.c: Likewise.
41124         * tests/test-xvasprintf.c: Likewise.
41125         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41126         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41127         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41128         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41129         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41130         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41131         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41132         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41133         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41134         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41135         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41136         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41137         * tests/uniname/test-uninames.c: Likewise.
41138         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41139         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41140         * tests/unistdio/test-u16-printf1.h: Likewise.
41141         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41142         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41143         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41144         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41145         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41146         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41147         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41148         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41149         * tests/unistdio/test-u32-printf1.h: Likewise.
41150         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41151         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41152         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41153         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41154         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41155         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41156         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41157         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41158         * tests/unistdio/test-u8-printf1.h: Likewise.
41159         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41160         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41161         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41162         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41163         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41164         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41165         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41166         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41167         * tests/unistdio/test-ulc-printf1.h: Likewise.
41168         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41169         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41170         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41171         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41172         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41173         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41174         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41175         * tests/uniwidth/test-u16-width.c: Likewise.
41176         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41177         * tests/uniwidth/test-u32-width.c: Likewise.
41178         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41179         * tests/uniwidth/test-u8-width.c: Likewise.
41180         * tests/uniwidth/test-uc_width.c: Likewise.
41181         * config/srclist-update: Likewise.
41182         (fixlicense): Update to GPLv3+.
41183
41184         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41185         * tests/test-tsearch.c: Change copyright notice.
41186
41187         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41188         * lib/c-strcaseeq.h: Change copyright notice.
41189         * lib/streq.h: Likewise.
41190         * lib/uniconv.h: Likewise.
41191         * lib/uniconv/u-conv-from-enc.h: Likewise.
41192         * lib/uniconv/u-conv-to-enc.h: Likewise.
41193         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41194         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41195         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41196         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41197         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41198         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41199         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41200         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41201         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41202         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41203         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41204         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41205         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41206         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41207         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41208         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41209         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41210         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41211         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41212         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41213         * lib/uniname.h: Likewise.
41214         * lib/uniname/uniname.c: Likewise.
41215         * lib/unistdio.h: Likewise.
41216         * lib/unistdio/u-asnprintf.h: Likewise.
41217         * lib/unistdio/u-asprintf.h: Likewise.
41218         * lib/unistdio/u-printf-args.c: Likewise.
41219         * lib/unistdio/u-printf-args.h: Likewise.
41220         * lib/unistdio/u-printf-parse.h: Likewise.
41221         * lib/unistdio/u-snprintf.h: Likewise.
41222         * lib/unistdio/u-sprintf.h: Likewise.
41223         * lib/unistdio/u-vasprintf.h: Likewise.
41224         * lib/unistdio/u-vsnprintf.h: Likewise.
41225         * lib/unistdio/u-vsprintf.h: Likewise.
41226         * lib/unistdio/u16-asnprintf.c: Likewise.
41227         * lib/unistdio/u16-asprintf.c: Likewise.
41228         * lib/unistdio/u16-printf-parse.c: Likewise.
41229         * lib/unistdio/u16-snprintf.c: Likewise.
41230         * lib/unistdio/u16-sprintf.c: Likewise.
41231         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41232         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41233         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41234         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41235         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41236         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41237         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41238         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41239         * lib/unistdio/u16-vasnprintf.c: Likewise.
41240         * lib/unistdio/u16-vasprintf.c: Likewise.
41241         * lib/unistdio/u16-vsnprintf.c: Likewise.
41242         * lib/unistdio/u16-vsprintf.c: Likewise.
41243         * lib/unistdio/u32-asnprintf.c: Likewise.
41244         * lib/unistdio/u32-asprintf.c: Likewise.
41245         * lib/unistdio/u32-printf-parse.c: Likewise.
41246         * lib/unistdio/u32-snprintf.c: Likewise.
41247         * lib/unistdio/u32-sprintf.c: Likewise.
41248         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41249         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41250         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41251         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41252         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41253         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41254         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41255         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41256         * lib/unistdio/u32-vasnprintf.c: Likewise.
41257         * lib/unistdio/u32-vasprintf.c: Likewise.
41258         * lib/unistdio/u32-vsnprintf.c: Likewise.
41259         * lib/unistdio/u32-vsprintf.c: Likewise.
41260         * lib/unistdio/u8-asnprintf.c: Likewise.
41261         * lib/unistdio/u8-asprintf.c: Likewise.
41262         * lib/unistdio/u8-printf-parse.c: Likewise.
41263         * lib/unistdio/u8-snprintf.c: Likewise.
41264         * lib/unistdio/u8-sprintf.c: Likewise.
41265         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41266         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41267         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41268         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41269         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41270         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41271         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41272         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41273         * lib/unistdio/u8-vasnprintf.c: Likewise.
41274         * lib/unistdio/u8-vasprintf.c: Likewise.
41275         * lib/unistdio/u8-vsnprintf.c: Likewise.
41276         * lib/unistdio/u8-vsprintf.c: Likewise.
41277         * lib/unistdio/ulc-asnprintf.c: Likewise.
41278         * lib/unistdio/ulc-asprintf.c: Likewise.
41279         * lib/unistdio/ulc-printf-parse.c: Likewise.
41280         * lib/unistdio/ulc-snprintf.c: Likewise.
41281         * lib/unistdio/ulc-sprintf.c: Likewise.
41282         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41283         * lib/unistdio/ulc-vasprintf.c: Likewise.
41284         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41285         * lib/unistdio/ulc-vsprintf.c: Likewise.
41286         * lib/unistr.h: Likewise.
41287         * lib/unistr/u-cpy-alloc.h: Likewise.
41288         * lib/unistr/u-cpy.h: Likewise.
41289         * lib/unistr/u-endswith.h: Likewise.
41290         * lib/unistr/u-move.h: Likewise.
41291         * lib/unistr/u-set.h: Likewise.
41292         * lib/unistr/u-startswith.h: Likewise.
41293         * lib/unistr/u-stpcpy.h: Likewise.
41294         * lib/unistr/u-stpncpy.h: Likewise.
41295         * lib/unistr/u-strcat.h: Likewise.
41296         * lib/unistr/u-strcpy.h: Likewise.
41297         * lib/unistr/u-strcspn.h: Likewise.
41298         * lib/unistr/u-strdup.h: Likewise.
41299         * lib/unistr/u-strlen.h: Likewise.
41300         * lib/unistr/u-strncat.h: Likewise.
41301         * lib/unistr/u-strncpy.h: Likewise.
41302         * lib/unistr/u-strnlen.h: Likewise.
41303         * lib/unistr/u-strpbrk.h: Likewise.
41304         * lib/unistr/u-strspn.h: Likewise.
41305         * lib/unistr/u-strstr.h: Likewise.
41306         * lib/unistr/u-strtok.h: Likewise.
41307         * lib/unistr/u16-check.c: Likewise.
41308         * lib/unistr/u16-chr.c: Likewise.
41309         * lib/unistr/u16-cmp.c: Likewise.
41310         * lib/unistr/u16-cpy-alloc.c: Likewise.
41311         * lib/unistr/u16-cpy.c: Likewise.
41312         * lib/unistr/u16-endswith.c: Likewise.
41313         * lib/unistr/u16-mblen.c: Likewise.
41314         * lib/unistr/u16-mbsnlen.c: Likewise.
41315         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41316         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41317         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41318         * lib/unistr/u16-mbtouc.c: Likewise.
41319         * lib/unistr/u16-mbtoucr.c: Likewise.
41320         * lib/unistr/u16-move.c: Likewise.
41321         * lib/unistr/u16-next.c: Likewise.
41322         * lib/unistr/u16-prev.c: Likewise.
41323         * lib/unistr/u16-set.c: Likewise.
41324         * lib/unistr/u16-startswith.c: Likewise.
41325         * lib/unistr/u16-stpcpy.c: Likewise.
41326         * lib/unistr/u16-stpncpy.c: Likewise.
41327         * lib/unistr/u16-strcat.c: Likewise.
41328         * lib/unistr/u16-strchr.c: Likewise.
41329         * lib/unistr/u16-strcmp.c: Likewise.
41330         * lib/unistr/u16-strcpy.c: Likewise.
41331         * lib/unistr/u16-strcspn.c: Likewise.
41332         * lib/unistr/u16-strdup.c: Likewise.
41333         * lib/unistr/u16-strlen.c: Likewise.
41334         * lib/unistr/u16-strmblen.c: Likewise.
41335         * lib/unistr/u16-strmbtouc.c: Likewise.
41336         * lib/unistr/u16-strncat.c: Likewise.
41337         * lib/unistr/u16-strncmp.c: Likewise.
41338         * lib/unistr/u16-strncpy.c: Likewise.
41339         * lib/unistr/u16-strnlen.c: Likewise.
41340         * lib/unistr/u16-strpbrk.c: Likewise.
41341         * lib/unistr/u16-strrchr.c: Likewise.
41342         * lib/unistr/u16-strspn.c: Likewise.
41343         * lib/unistr/u16-strstr.c: Likewise.
41344         * lib/unistr/u16-strtok.c: Likewise.
41345         * lib/unistr/u16-to-u32.c: Likewise.
41346         * lib/unistr/u16-to-u8.c: Likewise.
41347         * lib/unistr/u16-uctomb-aux.c: Likewise.
41348         * lib/unistr/u16-uctomb.c: Likewise.
41349         * lib/unistr/u32-check.c: Likewise.
41350         * lib/unistr/u32-chr.c: Likewise.
41351         * lib/unistr/u32-cmp.c: Likewise.
41352         * lib/unistr/u32-cpy-alloc.c: Likewise.
41353         * lib/unistr/u32-cpy.c: Likewise.
41354         * lib/unistr/u32-endswith.c: Likewise.
41355         * lib/unistr/u32-mblen.c: Likewise.
41356         * lib/unistr/u32-mbsnlen.c: Likewise.
41357         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41358         * lib/unistr/u32-mbtouc.c: Likewise.
41359         * lib/unistr/u32-mbtoucr.c: Likewise.
41360         * lib/unistr/u32-move.c: Likewise.
41361         * lib/unistr/u32-next.c: Likewise.
41362         * lib/unistr/u32-prev.c: Likewise.
41363         * lib/unistr/u32-set.c: Likewise.
41364         * lib/unistr/u32-startswith.c: Likewise.
41365         * lib/unistr/u32-stpcpy.c: Likewise.
41366         * lib/unistr/u32-stpncpy.c: Likewise.
41367         * lib/unistr/u32-strcat.c: Likewise.
41368         * lib/unistr/u32-strchr.c: Likewise.
41369         * lib/unistr/u32-strcmp.c: Likewise.
41370         * lib/unistr/u32-strcpy.c: Likewise.
41371         * lib/unistr/u32-strcspn.c: Likewise.
41372         * lib/unistr/u32-strdup.c: Likewise.
41373         * lib/unistr/u32-strlen.c: Likewise.
41374         * lib/unistr/u32-strmblen.c: Likewise.
41375         * lib/unistr/u32-strmbtouc.c: Likewise.
41376         * lib/unistr/u32-strncat.c: Likewise.
41377         * lib/unistr/u32-strncmp.c: Likewise.
41378         * lib/unistr/u32-strncpy.c: Likewise.
41379         * lib/unistr/u32-strnlen.c: Likewise.
41380         * lib/unistr/u32-strpbrk.c: Likewise.
41381         * lib/unistr/u32-strrchr.c: Likewise.
41382         * lib/unistr/u32-strspn.c: Likewise.
41383         * lib/unistr/u32-strstr.c: Likewise.
41384         * lib/unistr/u32-strtok.c: Likewise.
41385         * lib/unistr/u32-to-u16.c: Likewise.
41386         * lib/unistr/u32-to-u8.c: Likewise.
41387         * lib/unistr/u32-uctomb.c: Likewise.
41388         * lib/unistr/u8-check.c: Likewise.
41389         * lib/unistr/u8-chr.c: Likewise.
41390         * lib/unistr/u8-cmp.c: Likewise.
41391         * lib/unistr/u8-cpy-alloc.c: Likewise.
41392         * lib/unistr/u8-cpy.c: Likewise.
41393         * lib/unistr/u8-endswith.c: Likewise.
41394         * lib/unistr/u8-mblen.c: Likewise.
41395         * lib/unistr/u8-mbsnlen.c: Likewise.
41396         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41397         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41398         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41399         * lib/unistr/u8-mbtouc.c: Likewise.
41400         * lib/unistr/u8-mbtoucr.c: Likewise.
41401         * lib/unistr/u8-move.c: Likewise.
41402         * lib/unistr/u8-next.c: Likewise.
41403         * lib/unistr/u8-prev.c: Likewise.
41404         * lib/unistr/u8-set.c: Likewise.
41405         * lib/unistr/u8-startswith.c: Likewise.
41406         * lib/unistr/u8-stpcpy.c: Likewise.
41407         * lib/unistr/u8-stpncpy.c: Likewise.
41408         * lib/unistr/u8-strcat.c: Likewise.
41409         * lib/unistr/u8-strchr.c: Likewise.
41410         * lib/unistr/u8-strcmp.c: Likewise.
41411         * lib/unistr/u8-strcpy.c: Likewise.
41412         * lib/unistr/u8-strcspn.c: Likewise.
41413         * lib/unistr/u8-strdup.c: Likewise.
41414         * lib/unistr/u8-strlen.c: Likewise.
41415         * lib/unistr/u8-strmblen.c: Likewise.
41416         * lib/unistr/u8-strmbtouc.c: Likewise.
41417         * lib/unistr/u8-strncat.c: Likewise.
41418         * lib/unistr/u8-strncmp.c: Likewise.
41419         * lib/unistr/u8-strncpy.c: Likewise.
41420         * lib/unistr/u8-strnlen.c: Likewise.
41421         * lib/unistr/u8-strpbrk.c: Likewise.
41422         * lib/unistr/u8-strrchr.c: Likewise.
41423         * lib/unistr/u8-strspn.c: Likewise.
41424         * lib/unistr/u8-strstr.c: Likewise.
41425         * lib/unistr/u8-strtok.c: Likewise.
41426         * lib/unistr/u8-to-u16.c: Likewise.
41427         * lib/unistr/u8-to-u32.c: Likewise.
41428         * lib/unistr/u8-uctomb-aux.c: Likewise.
41429         * lib/unistr/u8-uctomb.c: Likewise.
41430         * lib/unitypes.h: Likewise.
41431         * lib/uniwidth.h: Likewise.
41432         * lib/uniwidth/cjk.h: Likewise.
41433         * lib/uniwidth/u16-strwidth.c: Likewise.
41434         * lib/uniwidth/u16-width.c: Likewise.
41435         * lib/uniwidth/u32-strwidth.c: Likewise.
41436         * lib/uniwidth/u32-width.c: Likewise.
41437         * lib/uniwidth/u8-strwidth.c: Likewise.
41438         * lib/uniwidth/u8-width.c: Likewise.
41439         * lib/uniwidth/width.c: Likewise.
41440
41441 2007-10-07  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41444         The file is still under LGPL (see modules/inttypes).
41445
41446 2007-10-06  Bruno Haible  <bruno@clisp.org>
41447
41448         * modules/trunc (Dependencies): Add 'extensions'.
41449         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41450         Reported by Ben Pfaff <blp@gnu.org>.
41451
41452 2007-10-06  Bruno Haible  <bruno@clisp.org>
41453
41454         * modules/freopen-tests: New file.
41455         * tests/test-freopen.c: New file.
41456
41457         * modules/fopen-tests: New file.
41458         * tests/test-fopen.c: New file.
41459
41460         * modules/fopen: New file.
41461         * lib/fopen.c: New file.
41462         * m4/fopen.m4: New file.
41463         * modules/freopen: New file.
41464         * lib/freopen.c: New file.
41465         * m4/freopen.m4: New file.
41466         * lib/stdio.in.h (fopen, freopen): New declarations.
41467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41468         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41469         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41470         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41471         * doc/functions/fopen.texi: Mention the 'fopen' module.
41472         * doc/functions/freopen.texi: Mention the 'freopen' module.
41473
41474 2007-10-06  Bruno Haible  <bruno@clisp.org>
41475
41476         * modules/open-tests: New file.
41477         * tests/test-open.c: New file.
41478
41479         * modules/open: New file.
41480         * lib/open.c: New file.
41481         * m4/open.m4: New file.
41482         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41483         lib/open.c does.
41484         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41485         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41486         macros.
41487         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41488         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41489         REPLACE_OPEN.
41490         * doc/functions/open.texi: Mention the 'open' module.
41491
41492 2007-10-04  Bruno Haible  <bruno@clisp.org>
41493
41494         * modules/ceill-tests: New file.
41495         * tests/test-ceill.c: New file.
41496
41497         * modules/ceill: New file.
41498         * lib/ceill.c: Replace entire file.
41499         * m4/ceill.m4: New file.
41500         * lib/math.in.h (ceill): Replace declaration.
41501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41502         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41503         * doc/functions/ceill.texi: Mention the 'ceill' module.
41504         * modules/mathl (Files): Remove lib/ceill.c.
41505         (Depends-on): Add ceill.
41506
41507 2007-10-04  Bruno Haible  <bruno@clisp.org>
41508
41509         * modules/ceilf-tests: New file.
41510         * tests/test-ceilf.c: New file.
41511
41512         * modules/ceilf: New file.
41513         * lib/ceil.c: New file.
41514         * lib/ceilf.c: New file.
41515         * m4/ceilf.m4: New file.
41516         * lib/math.in.h (ceilf): New declaration.
41517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41518         HAVE_DECL_CEILF.
41519         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41520         HAVE_DECL_CEILF.
41521         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41522
41523 2007-10-04  Bruno Haible  <bruno@clisp.org>
41524
41525         * modules/floorl-tests: New file.
41526         * tests/test-floorl.c: New file.
41527
41528         * modules/floorl: New file.
41529         * lib/floorl.c: Replace entire file.
41530         * m4/floorl.m4: New file.
41531         * lib/math.in.h (floorl): Replace declaration.
41532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41533         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41534         * doc/functions/floorl.texi: Mention the 'floorl' module.
41535         * modules/mathl (Files): Remove lib/floorl.c.
41536         (Depends-on): Add floorl.
41537
41538 2007-10-04  Bruno Haible  <bruno@clisp.org>
41539
41540         * modules/floorf-tests: New file.
41541         * tests/test-floorf.c: New file.
41542
41543         * modules/floorf: New file.
41544         * lib/floor.c: New file.
41545         * lib/floorf.c: New file.
41546         * m4/floorf.m4: New file.
41547         * lib/math.in.h (floorf): New declaration.
41548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41549         HAVE_DECL_FLOORF.
41550         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41551         HAVE_DECL_FLOORF.
41552         * doc/functions/floorf.texi: Mention the 'floorf' module.
41553
41554 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41555             Bruno Haible  <bruno@clisp.org>
41556
41557         Advertise for the Git server instead of the CVS server.
41558         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41559         repository instead of the CVS one.
41560         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41561         about all VCS systems generically.
41562         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41563
41564 2007-10-04  Bruno Haible  <bruno@clisp.org>
41565
41566         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41567         means.
41568         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41569
41570 2007-10-04  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/truncl-tests: New file.
41573         * tests/test-truncl.c: New file.
41574
41575         * modules/truncl: New file.
41576         * lib/truncl.c: New file.
41577         * m4/truncl.m4: New file.
41578         * lib/math.in.h (truncl): New declaration.
41579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41580         HAVE_DECL_TRUNCL.
41581         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41582         HAVE_DECL_TRUNCL.
41583         * doc/functions/truncl.texi: Mention the 'truncl' module.
41584
41585 2007-10-04  Bruno Haible  <bruno@clisp.org>
41586
41587         * modules/truncf-tests: New file.
41588         * tests/test-truncf.c: New file.
41589
41590         * modules/truncf: New file.
41591         * lib/trunc.c: Make paramerizable through USE_* macros.
41592         * lib/truncf.c: New file.
41593         * m4/truncf.m4: New file.
41594         * lib/math.in.h (truncf): New declaration.
41595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41596         HAVE_DECL_TRUNCF.
41597         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41598         HAVE_DECL_TRUNCF.
41599         * doc/functions/truncf.texi: Mention the 'truncf' module.
41600
41601 2007-10-03  Bruno Haible  <bruno@clisp.org>
41602
41603         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41604         augmentation also for tests modules.
41605         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41606         * modules/atexit-tests (Makefile.am): Likewise.
41607         * modules/binary-io-tests (Makefile.am): Likewise.
41608         * modules/c-strcase-tests (Makefile.am): Likewise.
41609         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41610         * modules/canonicalize-tests (Makefile.am): Likewise.
41611         * modules/closein-tests (Makefile.am): Likewise.
41612         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41613         * modules/freadahead-tests (Makefile.am): Likewise.
41614         * modules/fseek-tests (Makefile.am): Likewise.
41615         * modules/fseeko-tests (Makefile.am): Likewise.
41616         * modules/ftell-tests (Makefile.am): Likewise.
41617         * modules/ftello-tests (Makefile.am): Likewise.
41618         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41619         * modules/isnanl-tests (Makefile.am): Likewise.
41620         * modules/lseek-tests (Makefile.am): Likewise.
41621         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41622         * modules/mbscasestr-tests (Makefile.am): Likewise.
41623         * modules/mbschr-tests (Makefile.am): Likewise.
41624         * modules/mbscspn-tests (Makefile.am): Likewise.
41625         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41626         * modules/mbspbrk-tests (Makefile.am): Likewise.
41627         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41628         * modules/mbsrchr-tests (Makefile.am): Likewise.
41629         * modules/mbsspn-tests (Makefile.am): Likewise.
41630         * modules/mbsstr-tests (Makefile.am): Likewise.
41631         * modules/printf-posix-tests (Makefile.am): Likewise.
41632         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41633         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41634         * modules/tsearch-tests (Makefile.am): Likewise.
41635         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41636         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41637         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41638         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41639         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41640         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41641         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41642         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41643         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41644         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41645         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41646         * modules/xstrtol-tests (Makefile.am): Likewise.
41647         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41648         * modules/yesno-tests (Makefile.am): Likewise.
41649
41650 2007-10-03  Bruno Haible  <bruno@clisp.org>
41651
41652         * modules/trunc-tests: New file.
41653         * tests/test-trunc.c: New file.
41654
41655         * modules/trunc: New file.
41656         * lib/trunc.c: New file.
41657         * m4/trunc.m4: New file.
41658         * lib/math.in.h (trunc): New declaration.
41659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41660         HAVE_DECL_TRUNC.
41661         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41662         HAVE_DECL_TRUNC.
41663         * doc/functions/trunc.texi: Mention the 'trunc' module.
41664
41665 2007-10-03  Bruno Haible  <bruno@clisp.org>
41666
41667         * tests/test-fpending.c: New file, mostly copied
41668         from coreutils/lib/t-fpending.c.
41669         * modules/fpending-tests: New file.
41670
41671 2007-10-03  Bruno Haible  <bruno@clisp.org>
41672
41673         Port the stdio extensions to QNX (untested).
41674         * lib/fseterr.c (fseterr): Add support for QNX.
41675         * lib/fbufmode.c (fbufmode): Likewise.
41676         * lib/freadable.c (freadable): Likewise.
41677         * lib/fwritable.c (fwritable): Likewise.
41678         * lib/freading.c (freading): Likewise.
41679         * lib/fwriting.c (fwriting): Likewise.
41680         * lib/freadahead.c (freadahed): Likewise.
41681         * lib/fpurge.c (fpurge): Likewise.
41682         * lib/fseeko.c (rpl_fseeko): Likewise.
41683
41684 2007-10-03  Bruno Haible  <bruno@clisp.org>
41685             Jim Meyering  <jim@meyering.net>
41686             Eric Blake  <ebb9@byu.net>
41687
41688         * doc/relocatable.texi: Use @command instead of @program.
41689
41690 2007-10-02  Jim Meyering  <jim@meyering.net>
41691
41692         Perform one more "_.h" -> ".in.h" substitution.
41693         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41694         instead of unistd_.h here, too.
41695
41696 2007-10-01  Bruno Haible  <bruno@clisp.org>
41697
41698         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41699         Needed for the alloca-opt module.
41700
41701 2007-09-30  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41704         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41705         alloca_.h.
41706         * lib/argz.in.h: Renamed from lib/argz_.h.
41707         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41708         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41709         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41710         byteswap_.h.
41711         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41712         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41713         dirent_.h.
41714         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41715         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41716         fcntl_.h.
41717         * lib/float.in.h: Renamed from lib/float_.h.
41718         * modules/float (Files, Makefile.am): Use float.in.h instead of
41719         float_.h.
41720         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41721         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41722         fnmatch_.h.
41723         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41724         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41725         getopt_.h.
41726         * lib/glob.in.h: Renamed from lib/glob_.h.
41727         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41728         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41729         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41730         iconv_.h.
41731         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41732         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41733         inttypes_.h.
41734         * lib/locale.in.h: Renamed from lib/locale_.h.
41735         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41736         locale_.h.
41737         * lib/math.in.h: Renamed from lib/math_.h.
41738         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41739         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41740         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41741         of netinet_in_.h. Add dependency.
41742         * lib/poll.in.h: Renamed from lib/poll_.h.
41743         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41744         * lib/search.in.h: Renamed from lib/search_.h.
41745         * modules/search (Files, Makefile.am): Use search.in.h instead of
41746         search_.h.
41747         * lib/signal.in.h: Renamed from lib/signal_.h.
41748         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41749         _signal.h.
41750         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41751         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41752         stdbool_.h.
41753         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41754         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41755         stdint_.h.
41756         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41757         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41758         stdio_.h.
41759         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41760         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41761         stdlib_.h.
41762         * lib/string.in.h: Renamed from lib/string_.h.
41763         * modules/string (Files, Makefile.am): Use string.in.h instead of
41764         string_.h.
41765         * doc/gnulib-tool.texi (Initial import): Update.
41766         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41767         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41768         of sys_select_.h. Add dependency.
41769         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41770         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41771         of sys_socket_.h.
41772         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41773         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41774         sys_stat_.h.
41775         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41776         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41777         sys_time_.h.
41778         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41779         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41780         sysexits_.h.
41781         * lib/time.in.h: Renamed from lib/time_.h.
41782         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41783         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41784         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41785         unistd_.h.
41786         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41787         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41788         wchar_.h.
41789         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41790         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41791         wctype_.h.
41792         * build-aux/bootstrap (slurp): Update.
41793         * lib/.cppi-disable: Update.
41794
41795 2007-09-30  Bruno Haible  <bruno@clisp.org>
41796
41797         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41798         Needed on BeOS.
41799
41800 2007-09-30  Bruno Haible  <bruno@clisp.org>
41801
41802         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41803
41804 2007-09-29  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41807
41808 2007-09-29  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41811         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41812         * build-aux/install-reloc: Compile also areadlink.c.
41813         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41814
41815 2007-09-29  Bruno Haible  <bruno@clisp.org>
41816
41817         * gnulib-tool (func_emit_initmacro_done): Indentation.
41818
41819 2007-09-29  Bruno Haible  <bruno@clisp.org>
41820
41821         * README: Add CVS checkout update instructions.
41822         Info from Bob Proulx <bob@proulx.com>.
41823
41824 2007-09-28  Eric Blake  <ebb9@byu.net>
41825
41826         Provide move-if-change.
41827         * build-aux/move-if-change: New file, based on best practice
41828         rather than any canonical upstream location.
41829
41830 2007-09-28  Jim Meyering  <jim@meyering.net>
41831
41832         Fix canonicalize loop-detection corner case.
41833         Do not attempt to stat the symlink values stored via seen_triple.
41834         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41835         on linux-2.6.18, (but not 2.6.22).
41836         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41837         triple_compare.  The former compares dev,ino,filename, while the latter
41838         would actually stat dirname(filename) when dev and ino were equal.
41839         * lib/hash-triple.c: Install <string.h>.
41840         (STREQ): Define.
41841         (triple_compare_ino_str): New function.
41842         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41843
41844 2007-09-28  Eric Blake  <ebb9@byu.net>
41845
41846         Enforce that AC_REPLACE_FUNCS files exist.
41847         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41848         override check for typos.
41849
41850         Fix test-closein on Solaris 10.
41851         * tests/test-closein.c (main): Don't assume stdin can be inherited
41852         closed on all systems.
41853         * tests/test-closein.sh: Likewise.
41854         Reported by Piotr Tarnowski.
41855
41856 2007-09-28  Jim Meyering  <jim@meyering.net>
41857
41858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41859
41860 2007-09-27  Jim Meyering  <jim@meyering.net>
41861
41862         canonicalize: Avoid a false-positive cycle failure.
41863         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41864         Sort.  Remove cycle-check.
41865         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41866         not cycle-check.h.
41867         (seen_triple): New function.
41868         (canonicalize_filename_mode): Use it instead of cycle-check.
41869         * tests/test-canonicalize.c: Add a test for this bug.
41870         * tests/test-canonicalize.sh: Set up and run the test.
41871
41872         New module, file-set, from coreutils.
41873         * modules/file-set: Define it.
41874         * lib/file-set.c, lib/file-set.h: Implement.
41875
41876         New module, hash-triple, from coreutils.
41877         * modules/hash-triple: Define it.
41878         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41879
41880 2007-09-25  Eric Blake  <ebb9@byu.net>
41881
41882         Fix strerror on Interix.
41883         * lib/string_.h (strerror): Declare replacement.
41884         * doc/functions/strerror.texi (strerror): Document the Interix
41885         shortcoming.
41886         * modules/string (Makefile.am): Support new hooks.
41887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41888         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41889         gl_FUNC_STRERROR_SEPARATE.
41890         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41891         * lib/strerror.c (rpl_strerror): Provide replacement.
41892         * modules/strerror (Depends-on): Add string.
41893         (configure.ac): Detect use of module.
41894         * tests/test-strerror.c: New file.
41895         * modules/strerror-tests: New test module.
41896         * modules/argp (Depends-on): Add strerror.
41897         * modules/error (Depends-on): Likewise.
41898         Reported by Martin Koeppe.
41899
41900 2007-09-24  Bruno Haible  <bruno@clisp.org>
41901
41902         * README: Update git instructions.
41903
41904 2007-09-24  Eric Blake  <ebb9@byu.net>
41905
41906         Revert fpending breakage from 2007-09-08.
41907         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41908         __fpending.c.
41909
41910 2007-09-24  Jim Meyering  <jim@meyering.net>
41911
41912         filenamecat.c: Add a test.
41913         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41914         showing how the function works when DIR is the empty string.
41915
41916 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41917
41918         * tests/test-canonicalize.sh: Turn on executable bit.
41919
41920 2007-09-19  Eric Blake  <ebb9@byu.net>
41921
41922         * README: Update CVS instructions.
41923
41924 2007-09-18  Bruno Haible  <bruno@clisp.org>
41925
41926         * modules/areadlink: New file.
41927         * lib/areadlink.h (areadlink): New declaration.
41928         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41929
41930 2007-09-17  Jim Meyering  <jim@meyering.net>
41931
41932         * lib/savewd.c (ESTALE) [!defined]: Define.
41933         Reported to be required on Interix by Martin Koeppe.
41934
41935 2007-09-17  Bruno Haible  <bruno@clisp.org>
41936
41937         * gnulib-tool (func_version): Use $version.
41938
41939 2007-09-16  Bruno Haible  <bruno@clisp.org>
41940
41941         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41942         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41943         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41944         Reported by Greg Schafer <gschafer@zip.com.au>.
41945
41946 2007-09-15  Bruno Haible  <bruno@clisp.org>
41947
41948         * gnulib-tool (sed): Try a little harder to make bash understand the
41949         alias.
41950         Reported by Bruce Korb <bruce.korb@gmail.com>.
41951
41952 2007-09-13  Eric Blake  <ebb9@byu.net>
41953
41954         * ChangeLog: Remove conflict markers.
41955
41956 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41957
41958         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41959         Reported by Bruno Haible <bruno@clisp.org>.
41960
41961 2007-09-12  Bruno Haible  <bruno@clisp.org>
41962
41963         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41964         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41965         is not defined.
41966
41967 2007-09-12  Eric Blake  <ebb9@byu.net>
41968
41969         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41971         Autoconf definition.
41972         * modules/euidaccess (Depends-on): Add extensions, for
41973         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41974         * modules/fnmatch (Depends-on): Likewise.
41975         * modules/getaddrinfo (Depends-on): Likewise.
41976         * modules/getdelim (Depends-on): Likewise.
41977         * modules/getline (Depends-on): Likewise.
41978         * modules/getsubopt (Depends-on): Likewise.
41979         * modules/gettext (Depends-on): Likewise.
41980         * modules/group-member (Depends-on): Likewise.
41981         * modules/mbchar (Depends-on): Likewise.
41982         * modules/memmem (Depends-on): Likewise.
41983         * modules/mempcpy (Depends-on): Likewise.
41984         * modules/memrchr (Depends-on): Likewise.
41985         * modules/pagealign_alloc (Depends-on): Likewise.
41986         * modules/readutmp (Depends-on): Likewise.
41987         * modules/stpcpy (Depends-on): Likewise.
41988         * modules/stpncpy (Depends-on): Likewise.
41989         * modules/strchrnul (Depends-on): Likewise.
41990         * modules/strndup (Depends-on): Likewise.
41991         * modules/strsep (Depends-on): Likewise.
41992         * modules/strverscmp (Depends-on): Likewise.
41993         * modules/vasprintf (Depends-on): Likewise.
41994         * modules/wcwidth (Depends-on): Likewise.
41995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41996         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41998         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42000         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42001         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42002         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42003         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42004         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42006         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42008         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42009         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42010         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42011         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42012         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42013         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42014         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42015         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42016         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42017         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42018         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42019         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42021         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42022         so that lock.m4 can be used in gettext without extensions module.
42023
42024 2007-09-11  Bruno Haible  <bruno@clisp.org>
42025
42026         * m4/isc-posix.m4: Remove file.
42027         Suggested by Eric Blake.
42028
42029 2007-09-11  Eric Blake  <ebb9@byu.net>
42030
42031         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42032
42033 2007-09-10  Bruno Haible  <bruno@clisp.org>
42034
42035         * posix-modules: Fix typo in error message.
42036         Reported by Matt <mkraai@beckman.com>.
42037
42038 2007-09-09  Bruno Haible  <bruno@clisp.org>
42039
42040         * doc/functions/getdelim.texi: Update list of platforms lacking the
42041         function.
42042         * doc/functions/getline.texi: Likewise.
42043
42044 2007-09-09  Jim Meyering  <jim@meyering.net>
42045
42046         * lib/hash.c (hash_initialize): Detect calloc failure.
42047         Reported by Bruno Haible.
42048
42049 2007-09-09  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42052         malloc or realloc fails.
42053
42054 2007-09-09  Bruno Haible  <bruno@clisp.org>
42055
42056         * modules/getcwd (Depends-on): Add malloc-posix.
42057         * modules/glob (Depends-on): Likewise.
42058         * modules/putenv (Depends-on): Likewise.
42059         * modules/strdup (Depends-on): Likewise.
42060         * modules/getdelim (Depends-on): Add realloc-posix.
42061         * modules/read-file (Depends-on): Likewise.
42062
42063 2007-09-09  Bruno Haible  <bruno@clisp.org>
42064
42065         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42066         (gl_FUNC_MALLOC_POSIX): Require it.
42067         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42068         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42069         * modules/realloc (Files): Add m4/malloc.m4.
42070         * modules/calloc (Files): Likewise.
42071
42072 2007-09-09  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/malloc-posix: New file.
42075         * modules/malloc (Depends-on): Add malloc-posix.
42076         * lib/malloc.c: Include errno.h.
42077         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42078         and a POSIX-compatible malloc into a single function. Set ENOMEM
42079         when returning NULL.
42080         * m4/malloc.m4: New file.
42081         * doc/functions/malloc.texi: Mention the malloc-posix module.
42082         * lib/stdlib_.h (malloc): New declaration.
42083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42084         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42085         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42086         and HAVE_MALLOC_POSIX.
42087
42088 2007-09-09  Bruno Haible  <bruno@clisp.org>
42089
42090         * modules/realloc-posix: New file.
42091         * modules/realloc (Depends-on): Add realloc-posix.
42092         * lib/realloc.c: Include errno.h.
42093         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42094         and a POSIX-compatible realloc into a single function. Set ENOMEM
42095         when returning NULL.
42096         * m4/realloc.m4: New file.
42097         * doc/functions/realloc.texi: Mention the realloc-posix module.
42098         * lib/stdlib_.h (realloc): New declaration.
42099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42100         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42101         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42102         and HAVE_REALLOC_POSIX.
42103
42104 2007-09-09  Bruno Haible  <bruno@clisp.org>
42105
42106         * modules/calloc-posix: New file.
42107         * modules/calloc (Depends-on): Add calloc-posix.
42108         * lib/calloc.c: Include errno.h.
42109         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42110         and a POSIX-compatible calloc into a single function. Set ENOMEM
42111         when returning NULL.
42112         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42113         * doc/functions/calloc.texi: Mention the calloc-posix module.
42114         * lib/stdlib_.h (calloc): New declaration.
42115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42116         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42117         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42118         and HAVE_CALLOC_POSIX.
42119
42120 2007-09-09  Bruno Haible  <bruno@clisp.org>
42121
42122         Allow for modules to show an arbitrary notice.
42123         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42124         * gnulib-tool: New option --extract-notice.
42125         (func_usage): Document it.
42126         (sed_extract_prog): Update.
42127         (func_get_notice): New function.
42128         (func_modules_notice): New function.
42129         (func_import, func_create_testdir): Invoke it.
42130         Suggested by Jim Meyering.
42131
42132 2007-09-09  Bruno Haible  <bruno@clisp.org>
42133
42134         * gnulib-tool: New options --verbose, --quiet.
42135         (func_usage): Document them.
42136         (verbose): New variable.
42137         (func_execute_command): New function.
42138         (func_import): Don't show the module list and the file list if
42139         $verbose < 0.
42140         (func_create_testdir): Likewise. Use func_execute_command.
42141         (func_create_megatestdir): Use func_execute_command.
42142
42143 2007-09-08  Bruno Haible  <bruno@clisp.org>
42144
42145         * gnulib-tool (func_import): Prefer rsync over wget when available,
42146         for fetching the PO files.
42147
42148 2007-09-08  Bruno Haible  <bruno@clisp.org>
42149
42150         * posix-modules: New file. Portions copied from gnulib-tool.
42151         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42152
42153 2007-09-08  Jim Meyering  <jim@meyering.net>
42154
42155         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42156         * lib/fpending.h: Rename from __fpending.h.
42157         * lib/fpending.c: Rename from __fpending.c.
42158         Include "fpending.h", not "__fpending.h".
42159         * lib/__fpending.h, lib/__fpending.c: Remove files.
42160         * modules/fpending (Files): Reflect new file names.
42161         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42162
42163 2007-09-08  Bruno Haible  <bruno@clisp.org>
42164
42165         * m4/inttypes-h.m4: Remove stub file.
42166
42167 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42168
42169         * doc/headers/stdint.texi: Discuss #include_next issue.
42170
42171 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42172
42173         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42174
42175 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42176
42177         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42178         in variable name.
42179
42180 2007-09-03  Jim Meyering  <jim@meyering.net>
42181
42182         New module: git-version-gen.
42183         * modules/git-version-gen: New file.
42184
42185         Import changes from coreutils for bootstrap script.
42186
42187         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42188
42189         bootstrap: uses rsync to download the .po files
42190         * build-aux/bootstrap (po_download_command_format): New global.
42191         (download_po_files): Use rsync.
42192         (update_po_files): Don't remove .po files after download,
42193         so future rsync runs can take advantage of the copies.
42194
42195         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42196
42197         Solve the unnecessary-.po-file-regeneration problem once and for all.
42198         * build-aux/bootstrap (download_po_files): New function, renamed from
42199         get_translations.  Now, downloads, but doesn't update LINGUAS.
42200         (update_po_files): New function.
42201
42202         bootstrap: Ignore more.
42203         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42204         uniwidth to e.g., lib/.gitignore.
42205         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42206
42207         * build-aux/bootstrap: New setting: vc_ignore.
42208         (insert_sorted_if_absent): Create $file if absent.
42209         Adapt to new, possibly empty, list: $vc_ignore.
42210
42211         bootstrap: generate more ignorable names
42212         * build-aux/bootstrap (slurp): When generating ignorable names,
42213         also map .sin to .sed, .gperf to .c, and .y to .c.
42214
42215 2007-09-03  Jim Meyering  <jim@meyering.net>
42216
42217         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42218         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42219
42220 2007-09-02  Bruno Haible  <bruno@clisp.org>
42221
42222         Fix mis-recognition of 'mcs' on QNX 6.
42223         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42224         output contains the string "Mono".
42225         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42226         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42227
42228 2007-09-01  Bruno Haible  <bruno@clisp.org>
42229
42230         Fix collision between uniwidth/* and linebreak modules.
42231         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42232         u32_width): Remove declarations.
42233         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42234         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42235         streq3, streq2, streq1, streq0): Remove functions.
42236         (STREQ): Remove macro.
42237         (is_cjk_encoding): Remove function.
42238         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42239         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42240         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42241         * NEWS: Document the change.
42242
42243 2007-09-01  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/streq.h: Add double-inclusion guard.
42246
42247 2007-09-01  Karl Berry  <karl@gnu.org>
42248
42249         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42250
42251 2007-08-28  Jim Meyering  <jim@meyering.net>
42252
42253         Rename mreadlink_with_size to areadlink_with_size.
42254         * NEWS: Document the change.
42255         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42256         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42257         * lib/mreadlink.h: Rename this to...
42258         * lib/areadlink.h: ...this.
42259         * modules/mreadlink-with-size: Rename this to...
42260         * modules/areadlink-with-size: ...this.
42261         * lib/canonicalize.c: Reflect the renaming.
42262         * modules/canonicalize: Likewise.
42263
42264 2007-08-26  Bruno Haible  <bruno@clisp.org>
42265
42266         * gnulib-tool (func_import): When deciding which files to remove,
42267         consider also dangling symbolic links.
42268         Reported by Eric Blake.
42269
42270 2007-08-26  Bruno Haible  <bruno@clisp.org>
42271
42272         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42273
42274 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42275
42276         * lib/readline.c: Don't include getline.h, the prototype is now
42277         found in stdio.h.
42278
42279 2007-08-23  Jim Meyering  <jim@meyering.net>
42280
42281         Getdelim touchup.
42282         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42283         around the funlockfile call, since funlockfile never sets errno.
42284         Don't set errno upon failed realloc.
42285
42286 2007-08-22  Eric Blake  <ebb9@byu.net>
42287
42288         Getline touchups.
42289         * lib/getdelim.c (getdelim): Revert regression that required *n to
42290         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42292         getdelim, rather than whether implementation is missing.
42293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42294         * lib/stdio_.h (getline): Also declare if replacement is
42295         required.
42296         * doc/functions/getdelim.texi: New file.
42297         * doc/functions/getline.texi: Likewise.
42298         * doc/gnulib.texi (Function Substitutes): Add new files.
42299         Reported by Bruno Haible.
42300
42301 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42302
42303         * users.txt: Add Guile.
42304
42305 2007-08-22  Eric Blake  <ebb9@byu.net>
42306
42307         * tests/test-getdelim.c (main): Use remove, not unlink.
42308         * tests/test-getline.c (main): Likewise.
42309
42310         Move getline and getdelim into stdio.h, per POSIX 200x.
42311         * modules/getline (Files): Remove getline.h.
42312         (Depends-on): Add stdio.
42313         (configure.ac): Add module indicator.
42314         * modules/getdelim (Files): Remove getdelim.h.
42315         (Depends-on): Add stdio.
42316         (configure.ac): Add module indicator.
42317         * modules/stdio (Makefile.am): Work with new indicators.
42318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42319         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42320         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42321         * lib/getdelim.h: Delete.
42322         * lib/getline.h: Delete.
42323         * lib/stdio_.h (getdelim, getline): Declare.
42324         * modules/getdelim-tests: New module.
42325         * modules/getline-tests: Likewise.
42326         * tests/test-getdelim.c: New file.
42327         * tests/test-getline.c: Likewise.
42328         * NEWS: Document the change.
42329         * lib/getline.c: Update choice of header.
42330         * lib/csharpcomp.c: Likewise.
42331         * lib/getpass.c: Likewise.
42332         * lib/javacomp.c: Likewise.
42333         * lib/javaversion.c: Likewise.
42334         * lib/yesno.c: Likewise.
42335         * lib/getdelim.c: Likewise.
42336         (getdelim): Set errno on failure, and avoid memory leak.
42337
42338 2007-08-19  Bruno Haible  <bruno@clisp.org>
42339
42340         * modules/closein (Depends-on): Add freadahead.
42341         * lib/closein.c: Include freadahead.h.
42342         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42343         is zero.
42344
42345 2007-08-19  Bruno Haible  <bruno@clisp.org>
42346
42347         * modules/freadahead-tests: New file.
42348         * tests/test-freadahead.sh: New file.
42349         * tests/test-freadahead.c: New file.
42350
42351         * modules/freadahead: New file.
42352         * lib/freadahead.h: New file.
42353         * lib/freadahead.c: New file.
42354         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42355         fbufmode, fpurge, freadable, fwritable.
42356
42357 2007-08-19  Eric Blake  <ebb9@byu.net>
42358
42359         Test yesno in combination with closein.
42360         * lib/yesno.c (yesno): Document use of stdin.
42361         * modules/yesno-tests (Files): New module.
42362         * tests/test-yesno.c (main): New file.
42363         * tests/test-yesno.sh: Likewise.
42364
42365 2007-08-19  Bruno Haible  <bruno@clisp.org>
42366
42367         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42368         * lib/fseeko.c (rpl_fseeko): Likewise.
42369         * lib/fseterr.c (fseterr): Likewise.
42370
42371 2007-08-19  Bruno Haible  <bruno@clisp.org>
42372
42373         * tests/test-lseek.c (main): Disable a test for BeOS.
42374         * doc/functions/lseek.texi: Document the BeOS bug.
42375
42376 2007-08-19  Bruno Haible  <bruno@clisp.org>
42377             Eric Blake  <ebb9@byu.net>
42378
42379         * lib/lseek.c: Include <sys/stat.h>.
42380         (rpl_lseek): Add workaround code also for Unix platforms.
42381         Needed for BeOS.
42382         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42383         * doc/functions/lseek.texi: Document BeOS definiency.
42384
42385 2007-08-18  Bruno Haible  <bruno@clisp.org>
42386
42387         * modules/fstrcmp-tests: New file.
42388         * tests/test-fstrcmp.c: New file.
42389
42390 2007-08-18  Bruno Haible  <bruno@clisp.org>
42391
42392         * modules/fstrcmp: New file, from GNU gettext with modifications.
42393         * lib/fstrcmp.h: New file, from GNU gettext.
42394         * lib/fstrcmp.c: New file, from GNU gettext.
42395         * MODULES.html.sh (String handling): Add fstrcmp.
42396
42397 2007-08-18  Bruno Haible  <bruno@clisp.org>
42398
42399         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42400         'bool'.
42401         (diag, compareseq): Remove const from the ctxt argument.
42402         (USE_HEURISTIC): Undefine at the end.
42403
42404 2007-08-18  Jim Meyering  <jim@meyering.net>
42405
42406         New file: lib/idcache.h
42407         * NEWS: Mention the addition.
42408         * modules/idcache (Files): Add lib/idcache.h
42409         * lib/idcache.c: Include "idcache.h".
42410         Don't include <sys/types.h>.
42411         Add a FIXME comment.
42412         Move file-scoped "static" declarations to the top.
42413         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42414
42415 2007-08-17  Bruno Haible  <bruno@clisp.org>
42416         and Paul Eggert  <eggert@cs.ucla.edu>
42417
42418         * MODULES.html.sh: Add diffseq.
42419         * modules/diffseq: New file.
42420         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42421         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42422
42423 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42424
42425         Import changes from coreutils for bootstrap script.
42426
42427         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42428
42429         * build-aux/bootstrap (slurp): Work even in environments where
42430         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42431         current code does not slurp files whose names start with ".", and
42432         this looks like it might be a troublesome area.
42433
42434         2007-07-11  Jim Meyering  <jim@meyering.net>
42435
42436         If there's a GPL vN copyright comment, require that N == 3.
42437
42438         2007-07-08  Jim Meyering  <jim@meyering.net>
42439
42440         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42441         * build-aux/bootstrap (mam_template): Move definition out of loop.
42442
42443         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42444
42445         * build-aux/bootstrap (symlink_to_dir): Rename function from
42446         symlink_to_gnulib.  Add a directory parameter.  Update all
42447         callers.
42448         (cp_mark_as_generated): Also check for -- and link to -- files in
42449         gl/.
42450
42451         2007-07-08  Jim Meyering  <jim@meyering.net>
42452
42453         Adapt to deeper hierarchy in gnulib.
42454         * build-aux/bootstrap (symlink_to_dir): If the destination
42455         directory doesn't exist, create it. This is required at least for
42456         "lib/uniwidth/cjk.h".
42457
42458         2007-05-15  Jim Meyering  <jim@meyering.net>
42459
42460         * build-aux/bootstrap: Now that generated Makefile.am files
42461         are no longer under version control, they must be created at
42462         bootstrap time.
42463
42464 2007-08-14  Ben Pfaff  <blp@gnu.org>
42465
42466         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42467
42468 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42469
42470         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42471         given the changes below.
42472         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42473         even on hosts that have padding bits beyond the supported 64.
42474
42475 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42476
42477         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42478         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42479         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42480         depends on it.
42481         (xstrtol_error): Remove.
42482         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42483         but with a different signature.
42484         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42485         * lib/xstrtol-error.c: Include exitfail.h.
42486         (xstrtol_fatal): New function, with a different signature from the
42487         old xstrtol_error, so that the caller need not worry about passing
42488         in an exit status, or about storage management of the option argument.
42489         (xstrtol_error): Now a static function.  Redo signature to
42490         implement xstrtol_fatal.  Output the correct number of hyphens in
42491         front of the option so that the caller need not worry about
42492         storage management.
42493         (N_): New macro.
42494         (_): Remove; not used now.
42495         * modules/xstrtol: Depend on getopt.
42496         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42497         of old STRTOL_FATAL_ERROR macro.
42498         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42499         of test program.
42500         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42501         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42502
42503 2007-08-08  Eric Blake  <ebb9@byu.net>
42504
42505         * lib/xstrtol-error.c: Add missing include.
42506
42507         Move xstrtol messages into gnulib domain, when --pobase is used.
42508         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42509         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42510         * modules/xstrtol (Files): Distribute new file.
42511         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42512         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42513         * tests/test-xstrtol.c: ...into new file.
42514         * tests/test-xstrtoul.c: Also test xstrtoul.
42515         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42516         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42517         * tests/test-xstrtol.sh: Drive the tests.
42518         * tests/test-xstrtoimax.sh: Likewise.
42519         * tests/test-xstrtoumax.sh: Likewise.
42520         * modules/xstrtol-tests: New module.
42521         * modules/xstrtoimax-tests: Likewise.
42522         * modules/xstrtoumax-tests: Likewise.
42523
42524 2007-08-08  Jim Meyering  <jim@meyering.net>
42525
42526         New function: mfile_name_concat.
42527         * lib/filenamecat.c (mfile_name_concat): New function, just like
42528         file_name_concat, but return NULL upon failure rather than exiting
42529         with a diagnostic.
42530         * lib/filenamecat.h: Declare it.
42531
42532 2007-08-07  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42535         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42536         warning from gcc.
42537         Reported by Eric Blake.
42538
42539 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42540
42541         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42542         * modules/crypto/arcfour (License): Likewise.
42543         * modules/crypto/des-tests (License): Likewise.
42544         * modules/crypto/gc-arctwo-tests (License): Likewise.
42545         * modules/crypto/gc-des-tests (License): Likewise.
42546         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42547         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42548         * modules/crypto/gc-md2-tests (License): Likewise.
42549         * modules/crypto/gc-md4-tests (License): Likewise.
42550         * modules/crypto/gc-md5-tests (License): Likewise.
42551         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42552         * modules/crypto/gc-rijndael-tests (License): Likewise.
42553         * modules/crypto/gc-sha1-tests (License): Likewise.
42554         * modules/crypto/gc-tests (License): Likewise.
42555         * modules/crypto/hmac-md5 (License): Likewise.
42556         * modules/crypto/hmac-sha1 (License): Likewise.
42557         * modules/crypto/md2-tests (License): Likewise.
42558         * modules/crypto/md4-tests (License): Likewise.
42559         * modules/crypto/md5 (License): Likewise.
42560         * modules/crypto/rijndael (License): Likewise.
42561         * modules/crypto/sha1 (License): Likewise.
42562         * modules/memxor (License): Likewise.
42563
42564 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42565         and Bruno Haible  <bruno@clisp.org>
42566
42567         * NEWS: Describe interface changes to human, xstrtol.
42568         * lib/human.h: Include <xstrtol.h>.
42569         (human_options): Return enum strtol_error, not int.  Remove
42570         bool arg; take int * instead.
42571         * lib/human.c: Don't include "gettext.h".
42572         (_): Remove; no longer used.
42573         Don't include <xstrtol.h>, since human.h does it.
42574         (human_options): Adjust to abovementioned interface changes.
42575         Do not report error to stderr; that's now the caller's
42576         responsibility.
42577         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42578         interface change.
42579         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42580         Str, Argument_type_string.  All uses changed.  Put " argument"
42581         in diagnostics to make them clearer.  Change wording of suffix
42582         message for clarity.
42583         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42584         Argument_type_string.
42585         (STRTOL_FATAL_WARN): Remove; no longer used.
42586         * modules/human (Depends-on): Remove gettext-h.
42587
42588 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42589
42590         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42591
42592 2007-07-31  Bruno Haible  <bruno@clisp.org>
42593
42594         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42595         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42596         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42597
42598 2007-07-31  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42601         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42602
42603 2007-07-30  Bruno Haible  <bruno@clisp.org>
42604
42605         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42606         * modules/c-ctype (License): Likewise.
42607         * modules/c-strcase (License): Likewise.
42608         * modules/check-version (License): Likewise.
42609         * modules/iconv (License): Likewise.
42610         * modules/iconv_open (License): Likewise.
42611         * modules/read-file (License): Likewise.
42612         * modules/striconv (License): Likewise.
42613         * modules/strverscmp (License): Likewise.
42614         * modules/vasprintf (License): Likewise.
42615         * modules/crypto/des (License): Likewise.
42616         * modules/crypto/gc (License): Likewise.
42617         * modules/crypto/gc-arcfour (License): Likewise.
42618         * modules/crypto/gc-arctwo (License): Likewise.
42619         * modules/crypto/gc-des (License): Likewise.
42620         * modules/crypto/gc-hmac-md5 (License): Likewise.
42621         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42622         * modules/crypto/gc-md2 (License): Likewise.
42623         * modules/crypto/gc-md4 (License): Likewise.
42624         * modules/crypto/gc-md5 (License): Likewise.
42625         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42626         * modules/crypto/gc-random (License): Likewise.
42627         * modules/crypto/gc-rijndael (License): Likewise.
42628         * modules/crypto/gc-sha1 (License): Likewise.
42629         * modules/crypto/md2 (License): Likewise.
42630         * modules/crypto/md4 (License): Likewise.
42631
42632 2007-07-30  Jim Meyering  <jim@meyering.net>
42633
42634         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42635         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42636         it has valid stat data.  This bug would cause du not to count the
42637         sizes of inaccessible directories.
42638         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42639         in <http://bugzilla.redhat.com/250077>.
42640
42641 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42642             Bruno Haible  <bruno@clisp.org>
42643
42644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42645         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42646         #include_next, gives a diagnostic about it, but reports no error in
42647         the exit code.
42648         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42649
42650 2007-07-24  Ben Pfaff  <blp@gnu.org>
42651
42652         Improve name: "count-one-bits" is better than "popcount".
42653         * MODULES.html.sh: Update name.
42654         * lib/popcount.h: Renamed lib/count-one-bits.h.
42655         (popcount): Renamed count_one_bits.
42656         (popcountl): Renamed count_one_bits_l.
42657         (popcountll): Renamed count_one_bits_ll.
42658         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42659         * modules/popcount: Renamed module/count-one-bits.
42660         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42661         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42662
42663 2007-07-23  Ben Pfaff  <blp@gnu.org>
42664
42665         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42666         better code generation, and add U to large constants to avoid
42667         warnings, in non-GCC case.
42668         Suggested by Bruno Haible.
42669
42670 2007-07-23  Ben Pfaff  <blp@gnu.org>
42671
42672         * lib/popcount.h: Use verify_true instead of if...abort.
42673         * modules/popcount: Depend on verify module.
42674         Suggested by Jim Meyering.
42675
42676 2007-07-23  Bruno Haible  <bruno@clisp.org>
42677
42678         * gnulib-tool (func_import): Create a .cvsignore file also when the
42679         directory is not yet in CVS but the toplevel directory is. When
42680         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42681         Reported by Karl Berry.
42682
42683 2007-07-22  Ben Pfaff  <blp@gnu.org>
42684
42685         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42686         case.
42687         Suggested by Eric Blake.
42688
42689 2007-07-22  Ben Pfaff  <blp@gnu.org>
42690
42691         New module: popcount.
42692         * MODULES.html.sh: Add popcount.
42693         * modules/popcount: New file.
42694         * modules/popcount-tests: New file.
42695         * tests/test-popcount.c: New file.
42696         * lib/popcount.h: New file.
42697         * m4/popcount.m4: New file.
42698
42699 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42700
42701         * build-aux/announce-gen: Update to GPLv3.
42702
42703         * build-aux/config.guess: Update from config.
42704
42705 2007-07-21  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42708         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42709
42710 2007-07-20  Jim Meyering  <jim@meyering.net>
42711
42712         * check-module: Diagnose a self-dependency.
42713
42714 2007-07-19  Bruno Haible  <bruno@clisp.org>
42715
42716         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42717         empty.
42718         Reported by Eric Blake.
42719
42720 2007-07-18  Bruno Haible  <bruno@clisp.org>
42721
42722         * gnulib-tool: New options --po-base, --po-domain.
42723         (func_usage): Document them.
42724         (pobase, po_domain): New variables.
42725         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42726         DEFAULT_TEXT_DOMAIN.
42727         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42728         (func_import): Consider pobase and po_domain. Create a po/ directory.
42729         (func_create_testdir): Set pobase and po_domain to empty.
42730         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42731         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42732
42733 2007-07-18  Bruno Haible  <bruno@clisp.org>
42734
42735         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42736         EXTRA_DIST augmentation for files in build-aux/.
42737
42738 2007-07-16  Bruno Haible  <bruno@clisp.org>
42739
42740         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42741         * modules/getdelim (License): Likewise.
42742
42743 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42744
42745         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42746         * modules/d-type (License): Likewise.
42747         * modules/extensions (License): Likewise.
42748         * modules/fnmatch (License): Likewise.
42749         * modules/fseeko (License): Likewise.
42750         * modules/getaddrinfo (License): Likewise.
42751         * modules/getline (License): Likewise.
42752         * modules/getlogin_r (License): Likewise.
42753         * modules/getpass (License): Likewise.
42754         * modules/gettimeofday (License): Likewise.
42755         * modules/glob (License): Likewise.
42756         * modules/inet_ntop (License): Likewise.
42757         * modules/malloc (License): Likewise.
42758         * modules/malloca (License): Likewise.
42759         * modules/memmem (License): Likewise.
42760         * modules/mempcpy (License): Likewise.
42761         * modules/memset (License): Likewise.
42762         * modules/minmax (License): Likewise.
42763         * modules/mktime (License): Likewise.
42764         * modules/netinet_in (License): Likewise.
42765         * modules/pathmax (License): Likewise.
42766         * modules/poll (License): Likewise.
42767         * modules/regex (License): Likewise.
42768         * modules/snprintf (License): Likewise.
42769         * modules/stdbool (License): Likewise.
42770         * modules/stdint (License): Likewise.
42771         * modules/stdio (License): Likewise.
42772         * modules/strcase (License): Likewise.
42773         * modules/strcasestr (License): Likewise.
42774         * modules/strdup (License): Likewise.
42775         * modules/string (License): Likewise.
42776         * modules/strndup (License): Likewise.
42777         * modules/strnlen (License): Likewise.
42778         * modules/strpbrk (License): Likewise.
42779         * modules/strptime (License): Likewise.
42780         * modules/strsep (License): Likewise.
42781         * modules/sys_select (License): Likewise.
42782         * modules/sys_socket (License): Likewise.
42783         * modules/sys_stat (License): Likewise.
42784         * modules/sys_time (License): Likewise.
42785         * modules/time (License): Likewise.
42786         * modules/time_r (License): Likewise.
42787         * modules/timegm (License): Likewise.
42788         * modules/unistd (License): Likewise.
42789         * modules/vsnprintf (License): Likewise.
42790         * modules/wctype (License): Likewise.
42791
42792 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42793
42794         * modules/argz (License): LGPLv2+.
42795
42796 2007-07-15  Karl Berry  <karl@gnu.org>
42797
42798         * doc/gnulib.texi: revise node structure per new fdl.texi.
42799
42800 2007-07-14  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42803         the output file.
42804         * lib/uniname/uninames.h: Regenerated.
42805
42806 2007-07-14  Karl Berry  <karl@gnu.org>
42807
42808         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42809         omitting sectioning and index commands.
42810
42811 2007-07-13  Bruno Haible  <bruno@clisp.org>
42812
42813         New gnulib-tool option --more-symlinks.
42814         * gnulib-tool (func_usage): Document --more-symlinks.
42815         (do_copyrights): New variable.
42816         Recognize option --more-symlinks.
42817         (func_import): Don't add a copyright notice transform to
42818         sed_transform_lib_file if do_copyrights is empty.
42819
42820 2007-07-13  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/vasnprintf.c (decimal_point_char): Define also if
42823         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42824         && !NEED_PRINTF_DIRECTIVE_A.
42825         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42826         Gary V. Vaughan <gary@gnu.org>.
42827
42828 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42829
42830         * lib/inttypes_.h: Undo previous change, since it was fixed
42831         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42832
42833 2007-07-13  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42836         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42837
42838 2007-07-13  Jim Meyering  <jim@meyering.net>
42839
42840         df: Don't fail for Tru64's "file-on-file mount".
42841         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42842         so we fall through and use statfs instead.  Details here:
42843         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42844         Reported by Albert Chin.
42845
42846 2007-07-13  Bruno Haible  <bruno@clisp.org>
42847
42848         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42849         * modules/configmake (License): Likewise.
42850         * modules/gettext (License): Likewise.
42851         * modules/gettext-h (License): Likewise.
42852         * modules/include_next (License): Likewise.
42853         * modules/link-warning (License): Likewise.
42854         * modules/localcharset (License): Likewise.
42855         * modules/localename (License): Likewise.
42856         * modules/lock (License): Likewise.
42857         * modules/relocatable-lib-lgpl (License): Likewise.
42858         * modules/size_max (License): Likewise.
42859         * modules/vasnprintf (License): Likewise.
42860         * modules/wchar (License): Likewise.
42861         * modules/xsize (License): Likewise.
42862
42863 2007-07-13  Bruno Haible  <bruno@clisp.org>
42864
42865         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42866         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42867
42868 2007-07-12  Bruno Haible  <bruno@clisp.org>
42869
42870         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42871         in the modules files.
42872
42873 2007-07-11  Karl Berry  <karl@gnu.org>
42874
42875         * MODULES.html.sh (func_module): use
42876          sed -e '\|^'"${includefile}"'$|d'
42877          instead of /.../d, to avoid errors on $includefile's containing /.
42878
42879 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42880
42881         * gnulib-tool (func_import): Avoid duplication of --avoid
42882         statements
42883         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42884         names to `_' in variable names.
42885
42886 2007-07-10  Eric Blake  <ebb9@byu.net>
42887
42888         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42889         * NEWS: Document this change.
42890
42891 2007-07-08  Bruno Haible  <bruno@clisp.org>
42892
42893         Update to Unicode 5.0.
42894         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42895         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42896         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42897         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42898         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42899         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42900         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42901         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42902         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42903         U+10A3F, U+1D242..U+1D244.
42904         (nonspacing_table_ind): Update.
42905         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42906         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42907
42908 2007-07-08  Bruno Haible  <bruno@clisp.org>
42909
42910         Update to Unicode 5.0.
42911         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42912         code transform. Extend the name index field of unicode_name_to_code and
42913         unicode_code_to_name from 16 to 24 bits.
42914         * lib/uniname/uniname.c (unicode_character_name,
42915         unicode_name_character): Add the range 0x12xxx to the code transform.
42916         * lib/uniname/uninames.h: Regenerated.
42917         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42918
42919 2007-07-07  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/wcwidth-tests: New file.
42922         * tests/test-wcwidth.c: New file.
42923
42924         Work around MacOS X wcwidth() bug.
42925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42926         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42927         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42928         original wcwidth in non-UTF-8 locales.
42929         * modules/wcwidth (Depends-on): Add localcharset, streq,
42930         uniwidth/width.
42931         * doc/functions/wcwidth.texi: Update.
42932
42933 2007-07-07  Bruno Haible  <bruno@clisp.org>
42934
42935         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42936         (wcwidth): New declaration.
42937         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42938         macros.
42939         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42940         here. Prepare for creating <wchar.h> unconditionally.
42941         * modules/wchar (Depends-on): Add link-warning.
42942         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42943         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42944         * lib/wcwidth.h: Remove file.
42945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42946         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42947         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42948         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42949         (Include): Replace wcwidth.h with <wchar.h>.
42950         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42951         * lib/mbchar.h: Don't include wcwidth.h.
42952         * lib/mbswidth.c: Likewise.
42953         * NEWS: Mention the change.
42954
42955 2007-07-07  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42958         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42959         definition with an external declaration.
42960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42961         defined as a function. Remove AC_C_INLINE requirement.
42962         * modules/wcwidth (Files): Add lib/wcwidth.c.
42963         (Makefile.am): Remove redundant statement.
42964
42965 2007-07-07  Bruno Haible  <bruno@clisp.org>
42966
42967         * MODULES.html.sh (Unicode string functions): Add the new modules.
42968
42969         * tests/uniwidth/test-u32-strwidth.c: New file.
42970         * modules/uniwidth/u32-strwidth-tests: New file.
42971
42972         * lib/uniwidth/u32-strwidth.c: New file.
42973         * modules/uniwidth/u32-strwidth: New file.
42974
42975         * tests/uniwidth/test-u16-strwidth.c: New file.
42976         * modules/uniwidth/u16-strwidth-tests: New file.
42977
42978         * lib/uniwidth/u16-strwidth.c: New file.
42979         * modules/uniwidth/u16-strwidth: New file.
42980
42981         * tests/uniwidth/test-u8-strwidth.c: New file.
42982         * modules/uniwidth/u8-strwidth-tests: New file.
42983
42984         * lib/uniwidth/u8-strwidth.c: New file.
42985         * modules/uniwidth/u8-strwidth: New file.
42986
42987         * tests/uniwidth/test-u32-width.c: New file.
42988         * modules/uniwidth/u32-width-tests: New file.
42989
42990         * lib/uniwidth/u32-width.c: New file.
42991         * modules/uniwidth/u32-width: New file.
42992
42993         * tests/uniwidth/test-u16-width.c: New file.
42994         * modules/uniwidth/u16-width-tests: New file.
42995
42996         * lib/uniwidth/u16-width.c: New file.
42997         * modules/uniwidth/u16-width: New file.
42998
42999         * tests/uniwidth/test-u8-width.c: New file.
43000         * modules/uniwidth/u8-width-tests: New file.
43001
43002         * lib/uniwidth/u8-width.c: New file.
43003         * modules/uniwidth/u8-width: New file.
43004
43005         * tests/uniwidth/test-uc_width.c: New file.
43006         * modules/uniwidth/width-tests: New file.
43007
43008         * lib/uniwidth/width.c: New file, from GNU libiconv.
43009         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43010         * modules/uniwidth/width: New file.
43011
43012         * lib/uniwidth.h: New file, from GNU libiconv.
43013         * modules/uniwidth/base: New file.
43014
43015 2007-07-07  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/uniname.h: New file, from GNU gettext.
43018         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43019         * lib/uniname/uninames.h: New file, from GNU gettext.
43020         * lib/uniname/uniname.c: New file, from GNU gettext.
43021         * tests/uniname/test-uninames.sh: New file.
43022         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43023         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43024         * modules/uniname/base: New file.
43025         * modules/uniname/uniname: New file.
43026         * modules/uniname/uniname-tests: New file.
43027         * MODULES.html.sh (Unicode string functions): Add the new modules.
43028
43029 2007-07-06  Bruno Haible  <bruno@clisp.org>
43030
43031         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43032
43033 2007-07-06  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43036         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43037         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43038         include <sys/time.h>.
43039         Reported by Eric Blake.
43040
43041 2007-07-06  Eric Blake  <ebb9@byu.net>
43042
43043         Fix testing canonicalize on cygwin.
43044         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43045         Revert patch from 2007-06-19.
43046         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43047         canonicalize module is also in use.
43048         * tests/test-canonicalize.c: New file.
43049         * tests/test-canonicalize.sh: Likewise.
43050         * modules/canonicalize-tests: Likewise.
43051
43052 2007-07-06  Jim Meyering  <jim@meyering.net>
43053
43054         * lib/getugroups.c (getugroups): Detect getgrent failure.
43055         Adjust comment to reflect reality: this function may return -1.
43056
43057 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43058
43059         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43060         the new TP address.
43061         (usage): Fix typo
43062         (gnulib_mk): New variable.
43063
43064 2007-07-05  Jim Meyering  <jim@meyering.net>
43065
43066         Don't let endgrent clobber errno, no matter how improbable.
43067         * lib/getugroups.c (getugroups): Save and restore errno around
43068         endgrent call.
43069
43070         Close the group DB even when failing with 2^31 or more members.
43071         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43072
43073 2007-07-04  Jim Meyering  <jim@meyering.net>
43074
43075         * lib/getugroups.h: New file.
43076         * lib/getugroups.c: Include "getugroups.h".
43077         Remove uses of "register" keyword.
43078         Move local variable, "cp", down into scope where used.
43079         Give "username" parameter the "const" attribute.
43080         * modules/getugroups (Files): Add lib/getugroups.h
43081
43082 2007-07-04  Karl Berry  <karl@gnu.org>
43083
43084         * MODULES.html.sh (func_all_modules): Complete rename of
43085         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43086
43087 2007-07-02  Bruno Haible  <bruno@clisp.org>
43088
43089         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43090         mode, when inttypes.h comes from gnulib.
43091         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43092
43093 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43094
43095         * NEWS: Mention lgpl module name change.
43096
43097         * modules/lgpl-2.1: Renamed from lgpl.
43098
43099         * NEWS: Mention gpl module name change.
43100
43101         * modules/gpl-3.0: New file, based on gpl-2.0.
43102
43103         * modules/gpl-2.0: Renamed from gpl.
43104
43105         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43106         doc/gpl-2.0.texi.
43107
43108 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43109
43110         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43111         #define __STDC_LIMIT_MACROS temporarily while including
43112         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43113         Problem reported by Joel E. Denny in
43114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43115
43116 2007-07-01  Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/unistdio.h: New file.
43119         * lib/unistdio/u-asnprintf.h: New file.
43120         * lib/unistdio/u-asprintf.h: New file.
43121         * lib/unistdio/u-printf-args.c: New file.
43122         * lib/unistdio/u-printf-args.h: New file.
43123         * lib/unistdio/u-printf-parse.h: New file.
43124         * lib/unistdio/u-snprintf.h: New file.
43125         * lib/unistdio/u-sprintf.h: New file.
43126         * lib/unistdio/u-vasprintf.h: New file.
43127         * lib/unistdio/u-vsnprintf.h: New file.
43128         * lib/unistdio/u-vsprintf.h: New file.
43129         * lib/unistdio/ulc-asnprintf.c: New file.
43130         * lib/unistdio/ulc-asprintf.c: New file.
43131         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43132         * lib/unistdio/ulc-printf-parse.c: New file.
43133         * lib/unistdio/ulc-snprintf.c: New file.
43134         * lib/unistdio/ulc-sprintf.c: New file.
43135         * lib/unistdio/ulc-vasnprintf.c: New file.
43136         * lib/unistdio/ulc-vasprintf.c: New file.
43137         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43138         * lib/unistdio/ulc-vsnprintf.c: New file.
43139         * lib/unistdio/ulc-vsprintf.c: New file.
43140         * lib/unistdio/u8-asnprintf.c: New file.
43141         * lib/unistdio/u8-asprintf.c: New file.
43142         * lib/unistdio/u8-printf-parse.c: New file.
43143         * lib/unistdio/u8-snprintf.c: New file.
43144         * lib/unistdio/u8-sprintf.c: New file.
43145         * lib/unistdio/u8-vasnprintf.c: New file.
43146         * lib/unistdio/u8-vasprintf.c: New file.
43147         * lib/unistdio/u8-vsnprintf.c: New file.
43148         * lib/unistdio/u8-vsprintf.c: New file.
43149         * lib/unistdio/u8-u8-asnprintf.c: New file.
43150         * lib/unistdio/u8-u8-asprintf.c: New file.
43151         * lib/unistdio/u8-u8-snprintf.c: New file.
43152         * lib/unistdio/u8-u8-sprintf.c: New file.
43153         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43154         * lib/unistdio/u8-u8-vasprintf.c: New file.
43155         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43156         * lib/unistdio/u8-u8-vsprintf.c: New file.
43157         * lib/unistdio/u16-asnprintf.c: New file.
43158         * lib/unistdio/u16-asprintf.c: New file.
43159         * lib/unistdio/u16-printf-parse.c: New file.
43160         * lib/unistdio/u16-snprintf.c: New file.
43161         * lib/unistdio/u16-sprintf.c: New file.
43162         * lib/unistdio/u16-vasnprintf.c: New file.
43163         * lib/unistdio/u16-vasprintf.c: New file.
43164         * lib/unistdio/u16-vsnprintf.c: New file.
43165         * lib/unistdio/u16-vsprintf.c: New file.
43166         * lib/unistdio/u16-u16-asnprintf.c: New file.
43167         * lib/unistdio/u16-u16-asprintf.c: New file.
43168         * lib/unistdio/u16-u16-snprintf.c: New file.
43169         * lib/unistdio/u16-u16-sprintf.c: New file.
43170         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43171         * lib/unistdio/u16-u16-vasprintf.c: New file.
43172         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43173         * lib/unistdio/u16-u16-vsprintf.c: New file.
43174         * lib/unistdio/u32-asnprintf.c: New file.
43175         * lib/unistdio/u32-asprintf.c: New file.
43176         * lib/unistdio/u32-printf-parse.c: New file.
43177         * lib/unistdio/u32-snprintf.c: New file.
43178         * lib/unistdio/u32-sprintf.c: New file.
43179         * lib/unistdio/u32-vasnprintf.c: New file.
43180         * lib/unistdio/u32-vasprintf.c: New file.
43181         * lib/unistdio/u32-vsnprintf.c: New file.
43182         * lib/unistdio/u32-vsprintf.c: New file.
43183         * lib/unistdio/u32-u32-asnprintf.c: New file.
43184         * lib/unistdio/u32-u32-asprintf.c: New file.
43185         * lib/unistdio/u32-u32-snprintf.c: New file.
43186         * lib/unistdio/u32-u32-sprintf.c: New file.
43187         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43188         * lib/unistdio/u32-u32-vasprintf.c: New file.
43189         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43190         * lib/unistdio/u32-u32-vsprintf.c: New file.
43191         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43192         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43193         * tests/unistdio/test-ulc-printf1.h: New file.
43194         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43195         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43196         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43197         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43198         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43199         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43200         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43201         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43202         * tests/unistdio/test-u8-asnprintf1.c: New file.
43203         * tests/unistdio/test-u8-asnprintf1.h: New file.
43204         * tests/unistdio/test-u8-printf1.h: New file.
43205         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43206         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43207         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43208         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43209         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43210         * tests/unistdio/test-u8-vasprintf1.c: New file.
43211         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43212         * tests/unistdio/test-u8-vsprintf1.c: New file.
43213         * tests/unistdio/test-u16-asnprintf1.c: New file.
43214         * tests/unistdio/test-u16-asnprintf1.h: New file.
43215         * tests/unistdio/test-u16-printf1.h: New file.
43216         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43217         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43218         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43219         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43220         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43221         * tests/unistdio/test-u16-vasprintf1.c: New file.
43222         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43223         * tests/unistdio/test-u16-vsprintf1.c: New file.
43224         * tests/unistdio/test-u32-asnprintf1.c: New file.
43225         * tests/unistdio/test-u32-asnprintf1.h: New file.
43226         * tests/unistdio/test-u32-printf1.h: New file.
43227         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43228         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43229         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43230         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43231         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43232         * tests/unistdio/test-u32-vasprintf1.c: New file.
43233         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43234         * tests/unistdio/test-u32-vsprintf1.c: New file.
43235         * modules/unistdio/base: New file.
43236         * modules/unistdio/u-printf-args: New file.
43237         * modules/unistdio/ulc-asnprintf: New file.
43238         * modules/unistdio/ulc-asprintf: New file.
43239         * modules/unistdio/ulc-fprintf: New file.
43240         * modules/unistdio/ulc-printf-parse: New file.
43241         * modules/unistdio/ulc-snprintf: New file.
43242         * modules/unistdio/ulc-sprintf: New file.
43243         * modules/unistdio/ulc-vasnprintf: New file.
43244         * modules/unistdio/ulc-vasprintf: New file.
43245         * modules/unistdio/ulc-vfprintf: New file.
43246         * modules/unistdio/ulc-vsnprintf: New file.
43247         * modules/unistdio/ulc-vsprintf: New file.
43248         * modules/unistdio/u8-asnprintf: New file.
43249         * modules/unistdio/u8-asprintf: New file.
43250         * modules/unistdio/u8-printf-parse: New file.
43251         * modules/unistdio/u8-snprintf: New file.
43252         * modules/unistdio/u8-sprintf: New file.
43253         * modules/unistdio/u8-vasnprintf: New file.
43254         * modules/unistdio/u8-vasprintf: New file.
43255         * modules/unistdio/u8-vsnprintf: New file.
43256         * modules/unistdio/u8-vsprintf: New file.
43257         * modules/unistdio/u8-u8-asnprintf: New file.
43258         * modules/unistdio/u8-u8-asprintf: New file.
43259         * modules/unistdio/u8-u8-snprintf: New file.
43260         * modules/unistdio/u8-u8-sprintf: New file.
43261         * modules/unistdio/u8-u8-vasnprintf: New file.
43262         * modules/unistdio/u8-u8-vasprintf: New file.
43263         * modules/unistdio/u8-u8-vsnprintf: New file.
43264         * modules/unistdio/u8-u8-vsprintf: New file.
43265         * modules/unistdio/u16-asnprintf: New file.
43266         * modules/unistdio/u16-asprintf: New file.
43267         * modules/unistdio/u16-printf-parse: New file.
43268         * modules/unistdio/u16-snprintf: New file.
43269         * modules/unistdio/u16-sprintf: New file.
43270         * modules/unistdio/u16-vasnprintf: New file.
43271         * modules/unistdio/u16-vasprintf: New file.
43272         * modules/unistdio/u16-vsnprintf: New file.
43273         * modules/unistdio/u16-vsprintf: New file.
43274         * modules/unistdio/u16-u16-asnprintf: New file.
43275         * modules/unistdio/u16-u16-asprintf: New file.
43276         * modules/unistdio/u16-u16-snprintf: New file.
43277         * modules/unistdio/u16-u16-sprintf: New file.
43278         * modules/unistdio/u16-u16-vasnprintf: New file.
43279         * modules/unistdio/u16-u16-vasprintf: New file.
43280         * modules/unistdio/u16-u16-vsnprintf: New file.
43281         * modules/unistdio/u16-u16-vsprintf: New file.
43282         * modules/unistdio/u32-asnprintf: New file.
43283         * modules/unistdio/u32-asprintf: New file.
43284         * modules/unistdio/u32-printf-parse: New file.
43285         * modules/unistdio/u32-snprintf: New file.
43286         * modules/unistdio/u32-sprintf: New file.
43287         * modules/unistdio/u32-vasnprintf: New file.
43288         * modules/unistdio/u32-vasprintf: New file.
43289         * modules/unistdio/u32-vsnprintf: New file.
43290         * modules/unistdio/u32-vsprintf: New file.
43291         * modules/unistdio/u32-u32-asnprintf: New file.
43292         * modules/unistdio/u32-u32-asprintf: New file.
43293         * modules/unistdio/u32-u32-snprintf: New file.
43294         * modules/unistdio/u32-u32-sprintf: New file.
43295         * modules/unistdio/u32-u32-vasnprintf: New file.
43296         * modules/unistdio/u32-u32-vasprintf: New file.
43297         * modules/unistdio/u32-u32-vsnprintf: New file.
43298         * modules/unistdio/u32-u32-vsprintf: New file.
43299         * modules/unistdio/ulc-asnprintf-tests: New file.
43300         * modules/unistdio/ulc-vasnprintf-tests: New file.
43301         * modules/unistdio/ulc-vasprintf-tests: New file.
43302         * modules/unistdio/ulc-vsnprintf-tests: New file.
43303         * modules/unistdio/ulc-vsprintf-tests: New file.
43304         * modules/unistdio/u8-asnprintf-tests: New file.
43305         * modules/unistdio/u8-vasnprintf-tests: New file.
43306         * modules/unistdio/u8-vasprintf-tests: New file.
43307         * modules/unistdio/u8-vsnprintf-tests: New file.
43308         * modules/unistdio/u8-vsprintf-tests: New file.
43309         * modules/unistdio/u16-asnprintf-tests: New file.
43310         * modules/unistdio/u16-vasnprintf-tests: New file.
43311         * modules/unistdio/u16-vasprintf-tests: New file.
43312         * modules/unistdio/u16-vsnprintf-tests: New file.
43313         * modules/unistdio/u16-vsprintf-tests: New file.
43314         * modules/unistdio/u32-asnprintf-tests: New file.
43315         * modules/unistdio/u32-vasnprintf-tests: New file.
43316         * modules/unistdio/u32-vasprintf-tests: New file.
43317         * modules/unistdio/u32-vsnprintf-tests: New file.
43318         * modules/unistdio/u32-vsprintf-tests: New file.
43319         * MODULES.html.sh (Unicode string functions): Add the new modules.
43320
43321 2007-07-01  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/sprintf.c (sprintf): Limit the available length estimation,
43324         to avoid address wraparound.
43325         * lib/vsprintf.c (vsprintf): Likewise.
43326         * modules/sprintf-posix (Dependencies): Add stdint.
43327         * modules/vsprintf-posix (Dependencies): Likewise.
43328
43329 2007-07-01  Bruno Haible  <bruno@clisp.org>
43330
43331         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43332         Windows PATH as well. Conservative double-quoting. Comments.
43333
43334 2007-07-01  Bruno Haible  <bruno@clisp.org>
43335             Eric Blake  <ebb9@byu.net>
43336             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43337
43338         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43339         empty components in $PATH, denoting '.'.
43340
43341 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43342
43343         * gnulib-tool: Fix indentation.
43344         (func_create_megatestdir): Likewise.
43345         Report by Bruno Haible.
43346
43347 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43348
43349         Sync from Automake.
43350         * build-aux/gnupload: Fix shell portability issues with for loops.
43351         Report by Karl Berry.
43352
43353 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43354
43355         * build-aux/maint.mk (POURL): Use translationproject.org.
43356
43357 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43358             Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43361         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43362         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43363         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43364         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43365
43366 2007-06-27  Bruno Haible  <bruno@clisp.org>
43367
43368         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43369         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43370
43371 2007-06-26  Karl Berry  <karl@gnu.org>
43372
43373         * MODULES.html.sh: remove xreadlink-with-size.
43374
43375 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43376
43377         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43378         method that I hope also handles the double-include problem noted
43379         by Bruno Haible in
43380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43381
43382 2007-06-23  Bruno Haible  <bruno@clisp.org>
43383
43384         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43385         Don't let the 'mostlyclean' target fail if the last subdirectory could
43386         not be removed.
43387         Reported by Karl Berry.
43388
43389 2007-06-23  Bruno Haible  <bruno@clisp.org>
43390
43391         * gnulib-tool (echo): Add a speedier workaround for ksh.
43392         * tests/test-echo.sh: Likewise.
43393
43394 2007-06-23  Bruno Haible  <bruno@clisp.org>
43395
43396         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43397         * tests/test-echo.sh: Likewise.
43398
43399 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43400
43401         * gnulib-tool (IFS): Initialize early, so we don't set it to
43402         empty later.
43403         (self_abspathname): Rewrite algorithm to set it, reindent.
43404         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43405         (func_create_megatestdir): Merge some sed scripts.
43406
43407 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43410         exposed by Sun Studio 11 cc on Solaris 8.
43411
43412 2007-06-22  Bruno Haible  <bruno@clisp.org>
43413
43414         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43415         backslashes.
43416         * tests/test-echo.sh: New file.
43417
43418 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43419
43420         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43421         simplify `sed_replace_build_aux' scripts, they are portable but
43422         echoing them with `echo' is not.
43423         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43424
43425 2007-06-21  Karl Berry  <karl@gnu.org>
43426
43427         * config/srclist.txt: guess we can't handle the licenses via
43428         srclist at the moment.
43429
43430 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43431
43432         * MODULES.html.sh: Add include_next.
43433         * modules/include_next: New file.
43434
43435 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43438         INCLUDE_NEXT.
43439         (gl_CHECK_NEXT_HEADERS): New macro.
43440         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43441         the obsolescent gl_ABSOLUTE_HEADER.
43442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43443         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43444         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43445         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43446         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43447         * m4/math_h.m4 (gl_MATH_H): Likewise.
43448         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43449         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43450         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43451         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43452         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43453         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43454         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43456         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43458         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43459         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43460         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43461         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43462         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43463         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43464         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43465         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43466         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43467         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43468         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43469         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43470         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43471         * lib/float_.h: Likewise.
43472         * lib/inttypes_.h: Likewise.
43473         * lib/math_.h: Likewise.
43474         * lib/search_.h: Likewise.
43475         * lib/signal_.h: Likewise.
43476         * lib/stdint_.h: Likewise.
43477         * lib/stdio_.h: Likewise.
43478         * lib/stdlib_.h: Likewise.
43479         * lib/string_.h: Likewise.
43480         * lib/sys_stat_.h: Likewise.
43481         * lib/sys_time_.h: Likewise.
43482         * lib/time_.h: Likewise.
43483         * lib/unistd_.h: Likewise.
43484         * lib/wchar_.h: Likewise.
43485         * lib/wctype_.h: Likewise.
43486         * lib/dirent_.h: Likewise.
43487         * lib/iconv_.h: Likewise.
43488         * lib/locale_.h: Likewise.
43489         * lib/netinet_in_.h: Likewise.
43490         * lib/sys_select_.h: Likewise.
43491         * lib/sys_socket_.h: Likewise.
43492         * lib/sysexits_.h: Likewise.
43493         * modules/fcntl (Depends-on): Depend on include_next, not
43494         absolute_header.
43495         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43496         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43497         * modules/fchdir: Likewise.
43498         * modules/float: Likewise.
43499         * modules/iconv_open: Likewise.
43500         * modules/inttypes: Likewise.
43501         * modules/locale: Likewise.
43502         * modules/math: Likewise.
43503         * modules/netinet_in: Likewise.
43504         * modules/search: Likewise.
43505         * modules/signal: Likewise.
43506         * modules/stdint: Likewise.
43507         * modules/stdio: Likewise.
43508         * modules/stdlib: Likewise.
43509         * modules/string: Likewise.
43510         * modules/sys_select: Likewise.
43511         * modules/sys_socket: Likewise.
43512         * modules/sys_stat: Likewise.
43513         * modules/sys_time: Likewise.
43514         * modules/sysexits: Likewise.
43515         * modules/time: Likewise.
43516         * modules/unistd: Likewise.
43517         * modules/wchar: Likewise.
43518         * modules/wctype: Likewise.
43519         * modules/sys_stat: Change maintainer to "all".
43520         * modules/unistd: Likewise.
43521
43522 2007-06-20  Karl Berry  <karl@gnu.org>
43523
43524         * config/srclist.txt: track www changes in license files.
43525
43526 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43527
43528         * build-aux/bootstrap: Remove stray dot.
43529         Make sure build_aux settings are honored when linking
43530         gnulib_extra_files.
43531
43532 2007-06-19  Eric Blake  <ebb9@byu.net>
43533
43534         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43535         Allow compilation on cygwin.
43536
43537 2007-06-19  Jim Meyering  <jim@meyering.net>
43538
43539         xreadlink-with-size: Remove module.  No longer used.
43540         Ex-callers now use xreadlink or mreadlink-with-size.
43541         * modules/xreadlink-with-size: Remove module.
43542         * lib/xreadlink-with-size.c: Remove file.
43543         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43544         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43545         just before the function definition *is* accurate.
43546
43547         Eliminate one way canonicalize_filename_mode could exit.
43548         * lib/canonicalize.c (canonicalize_filename_mode):
43549         Use mreadlink_with_size, not xreadlink_with_size.
43550
43551 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43552
43553         Detect porting problems to FreeBSD/arm, which has time_t wider than
43554         long int.  Original problem reported for GNU diff by Xin Li in
43555         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43556         * modules/getdate (Depends-on): Add intprops, verify.
43557         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43558         is an integer type no wider than long int.
43559
43560 2007-06-18  Jim Meyering  <jim@meyering.net>
43561
43562         New module: mreadlink-with-size.
43563         * MODULES.html.sh: Add mreadlink-with-size.
43564         * modules/mreadlink-with-size: New module
43565         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43566         not xreadlink-with-size.
43567         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43568
43569 2007-06-16  Bruno Haible  <bruno@clisp.org>
43570
43571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43572         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43573         Reported by Gary V. Vaughan <gary@gnu.org>.
43574
43575 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43576
43577         Revamp lchown so that it lives in unistd.h where it belongs.
43578         * lib/lchown.h: Remove.
43579         * lib/dirchownmod.c: Don't include lib/lchown.h.
43580         * lib/fchownat.c: Likewise.
43581         * lib/openat.c: Likewise.
43582         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43583         does not follow symlinks.
43584         (EOPNOTSUPP): Define if not defined.
43585         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43586         is defined to 0.
43587         (lchown): New decl.
43588         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43589         Do not check for lchown decl.
43590         Set REPLACE_LCHOWN.
43591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43592         REPLACE_LCHOWN.
43593         * modules/chown: Make it clear it follows symlinks.
43594         * modules/lchown: Make it clear it doesn't follow symlinks.
43595         (Files): Remove lib/lchown.h
43596         (Depends-on): Add unistd.
43597         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43598         (Include): Include <unistd.h>, not "lchown.h".
43599         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43600         REPLACE_LCHOWN.
43601
43602 2007-06-15  Jim Meyering  <jim@meyering.net>
43603
43604         Change license (GPL to LGPL) of fsusage and dependents.
43605         * modules/fsusage (License): Change to LGPL.
43606         * modules/full-read (License): Likewise.
43607         * modules/full-write (License): Likewise.
43608         * modules/safe-read (License): Likewise.
43609         * modules/safe-write (License): Likewise.
43610
43611 2007-06-14  Ben Pfaff  <blp@gnu.org>
43612
43613         Missing part of allocsa -> malloca transition.
43614         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43615         gl_MALLOCA.
43616
43617 2007-06-12  Bruno Haible  <bruno@clisp.org>
43618
43619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43620         to ia64, x86_64, i386.
43621         Reported by Eric Blake.
43622
43623 2007-06-12  Bruno Haible  <bruno@clisp.org>
43624
43625         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43626         cross-compiling to x86_64.
43627
43628 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43629
43630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43631         glitch reported by Ralf Wildenhues in
43632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43633
43634         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43635         Vin Shelton.
43636
43637 2007-06-11  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43640         replacement string.
43641         Reported by Eric Blake.
43642
43643 2007-06-10  Bruno Haible  <bruno@clisp.org>
43644
43645         Prepare vasnprintf code for use with Unicode strings.
43646         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43647         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43648         TYPE_U32_STRING.
43649         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43650         a_u32_string variants.
43651         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43652         * lib/printf-args.c: Don't include config.h and the specification
43653         header if PRINTF_FETCHARGS is already defined.
43654         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43655         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43656         TYPE_U16_STRING, TYPE_U32_STRING.
43657         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43658         u16_directive, u16_directives, u32_directive, u32_directives): New
43659         types.
43660         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43661         New declarations.
43662         * lib/printf-parse.c: Don't include config.h and the specification
43663         header if PRINTF_PARSE is already defined. Eliminate the set of
43664         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43665         them now. Include c-ctype.h.
43666         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43667         directive and CHAR_T_ONLY_ASCII.
43668         * lib/vasnprintf.c: Don't include config.h and the specification header
43669         if VASNPRINTF is already defined.
43670         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43671         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43672         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43673         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43674         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43675         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43676         code accordingly.
43677         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43678         pad_ourselves also in this case, with the 'c' and 's' directives, and
43679         with a different notion of "width".
43680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43681
43682 2007-06-10  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/unistr/u32-mbsnlen: New file.
43685         * lib/unistr/u32-mbsnlen.c: New file.
43686
43687         * modules/unistr/u16-mbsnlen: New file.
43688         * lib/unistr/u16-mbsnlen.c: New file.
43689
43690         * modules/unistr/u8-mbsnlen: New file.
43691         * lib/unistr/u8-mbsnlen.c: New file.
43692
43693         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43694         declarations.
43695
43696 2007-06-10  Bruno Haible  <bruno@clisp.org>
43697
43698         * lib/string_.h (mbsnlen): New declaration.
43699         * lib/mbsnlen.c: New file.
43700         * m4/mbsnlen.m4: New file.
43701         * modules/mbsnlen: New file.
43702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43703         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43704         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43705
43706 2007-06-10  Bruno Haible  <bruno@clisp.org>
43707
43708         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43709
43710 2007-06-10  Bruno Haible  <bruno@clisp.org>
43711
43712         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43713         * lib/mbuiter.h: Likewise.
43714
43715 2007-06-10  Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43718         declaration.
43719
43720 2007-06-10  Karl Berry  <karl@gnu.org>
43721
43722         * config/srclist.txt: remove gettext entries, Bruno prefers
43723         to update individually.
43724
43725 2007-06-10  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43728         'maxlen'. Ensure only length + width bytes are allocated, not
43729         length + 1 + width.
43730
43731 2007-06-09  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43734         (CHAR_T): Remove macro.
43735         (VASNPRINTF): Update.
43736
43737 2007-06-09  Bruno Haible  <bruno@clisp.org>
43738
43739         * MODULES.html.sh (Unicode string functions): Add the new modules.
43740
43741         * modules/uniconv/u32-conv-to-enc: New file.
43742         * lib/uniconv/u32-conv-to-enc.c: New file.
43743         * modules/uniconv/u32-conv-to-enc-tests: New file.
43744         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43745
43746         * modules/uniconv/u16-conv-to-enc: New file.
43747         * lib/uniconv/u16-conv-to-enc.c: New file.
43748         * lib/uniconv/u-conv-to-enc.h: New file.
43749         * modules/uniconv/u16-conv-to-enc-tests: New file.
43750         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43751
43752         * modules/uniconv/u8-conv-to-enc: New file.
43753         * lib/uniconv/u8-conv-to-enc.c: New file.
43754         * modules/uniconv/u8-conv-to-enc-tests: New file.
43755         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43756
43757         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43758         u32_conv_to_encoding): New declarations.
43759
43760 2007-06-09  Bruno Haible  <bruno@clisp.org>
43761
43762         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43763
43764 2007-06-09  Bruno Haible  <bruno@clisp.org>
43765
43766         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43767         * modules/malloca: Renamed from modules/allocsa, updated.
43768         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43769         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43770         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43771         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43772         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43773         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43774         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43775         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43776         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43777         * modules/c-strcasestr (Depends-on): Update.
43778         * lib/c-strcasestr.c: Update.
43779         * modules/c-strstr (Depends-on): Update.
43780         * lib/c-strstr.c: Update.
43781         * modules/canonicalize-lgpl (Depends-on): Update.
43782         * lib/canonicalize-lgpl.c: Update.
43783         * modules/clean-temp (Depends-on): Update.
43784         * lib/clean-temp.c: Update.
43785         * modules/csharpcomp (Depends-on): Update.
43786         * lib/csharpcomp.c: Update.
43787         * modules/csharpexec (Depends-on): Update.
43788         * lib/csharpexec.c: Update.
43789         * modules/javacomp (Depends-on): Update.
43790         * lib/javacomp.c: Update.
43791         * modules/javaexec (Depends-on): Update.
43792         * lib/javaexec.c: Update.
43793         * modules/mbscasestr (Depends-on): Update.
43794         * lib/mbscasestr.c: Update.
43795         * modules/mbsstr (Depends-on): Update.
43796         * lib/mbsstr.c: Update.
43797         * modules/setenv (Depends-on): Update.
43798         * lib/setenv.c: Update.
43799         * modules/strcasestr (Depends-on): Update.
43800         * lib/strcasestr.c: Update.
43801         * modules/striconveha (Depends-on): Update.
43802         * lib/striconveha.c: Update.
43803         * modules/relocatable-prog-wrapper (Files): Update.
43804         * lib/relocwrapper.c: Update.
43805         * build-aux/install-reloc: Update.
43806         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43807
43808 2007-06-08  Bruno Haible  <bruno@clisp.org>
43809
43810         Port to uClibc.
43811         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43812         * lib/fpurge.c (fpurge): Likewise.
43813         * lib/freading.c (freading): Likewise.
43814         * lib/fseeko.c (rpl_fseeko): Likewise.
43815         * lib/fseterr.c (fseterr): Likewise.
43816         * lib/fwriting.c (fwriting): Likewise.
43817         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43818
43819 2007-06-08  Bruno Haible  <bruno@clisp.org>
43820
43821         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43822         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43823         * modules/gettext (Files): Add m4/intlmacosx.m4.
43824
43825 2007-06-07  Bruno Haible  <bruno@clisp.org>
43826
43827         * modules/localename-tests: New file.
43828         * tests/test-localename.c: New file.
43829
43830         New module 'localename'.
43831         * lib/localename.h: New file.
43832         * lib/localename.c: New file, from GNU gettext.
43833         * m4/localename.m4: New file.
43834         * modules/localename: New file.
43835
43836 2007-06-07  Bruno Haible  <bruno@clisp.org>
43837
43838         Work around the lack of <wchar.h> on some builds of uClibc.
43839         * doc/headers/wchar.texi: Update.
43840         * lib/wchar_.h: Include <wchar.h> only if it exists.
43841         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43842         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43843         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43844         doesn't exist.
43845         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43846         * modules/mbfile (Depends-on): Add wchar.
43847         * modules/mbiter (Depends-on): Likewise.
43848         * modules/mbuiter (Depends-on): Likewise.
43849         Reported by Simon Josefsson.
43850
43851 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43852
43853         Work around problem reported by Steven M. Schweda in
43854         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43855         Tru64 5.1B with the Compaq compiler environment installed declares
43856         an 'isblank' function but does not define it in the C library.
43857         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43858         * lib/regex_internal.h (isblank): Likewise.
43859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43861
43862 2007-06-05  Bruno Haible  <bruno@clisp.org>
43863
43864         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43865         ia64.
43866         * modules/printf-safe: New file.
43867         * modules/fprintf-posix (Depends-on): Add printf-safe.
43868         * modules/printf-posix (Depends-on): Likewise.
43869         * modules/snprintf-posix (Depends-on): Likewise.
43870         * modules/sprintf-posix (Depends-on): Likewise.
43871         * modules/vasnprintf-posix (Depends-on): Likewise.
43872         * modules/vasprintf-posix (Depends-on): Likewise.
43873         * modules/vfprintf-posix (Depends-on): Likewise.
43874         * modules/vprintf-posix (Depends-on): Likewise.
43875         * modules/vsnprintf-posix (Depends-on): Likewise.
43876         * modules/vsprintf-posix (Depends-on): Likewise.
43877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43878         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43879         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43880         "no" on i386, x86_64, ia64.
43881         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43882         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43883         on i386, x86_64, ia64.
43884         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43885         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43886         on i386, x86_64, ia64.
43887         * tests/test-vasnprintf-posix.c: Include float.h.
43888         (LDBL80_WORDS): New macro.
43889         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43890         on i386, x86_64, ia64.
43891         * tests/test-vasprintf-posix.c: Include float.h.
43892         (LDBL80_WORDS): New macro.
43893         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43894         on i386, x86_64, ia64.
43895         * tests/test-snprintf-posix.c: Include float.h.
43896         * tests/test-sprintf-posix.c: Likewise.
43897         * tests/test-vsnprintf-posix.c: Likewise.
43898         * tests/test-vsprintf-posix.c: Likewise.
43899
43900 2007-06-05  Bruno Haible  <bruno@clisp.org>
43901
43902         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43903         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43904         non-IEEE numbers on i386, x86_64, ia64.
43905         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43906         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43907         * tests/test-isnanl.h: Include float.h.
43908         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43909
43910 2007-06-05  Bruno Haible  <bruno@clisp.org>
43911
43912         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43913         also the %a / %A. Handle the %a / %A code before this extra handling.
43914
43915 2007-06-05  Bruno Haible  <bruno@clisp.org>
43916
43917         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43918         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43919
43920 2007-06-05  Bruno Haible  <bruno@clisp.org>
43921
43922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43923         typo in variable name.
43924
43925 2007-06-05  Eric Blake  <ebb9@byu.net>
43926
43927         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43928         Reported by Simon Josefsson.
43929
43930 2007-06-04  Bruno Haible  <bruno@clisp.org>
43931
43932         Avoid test failures on some PowerPC platforms.
43933         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43934         Define differently for PowerPC.
43935         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43936         Reported by Gary V. Vaughan <gary@gnu.org>.
43937
43938 2007-06-02  Bruno Haible  <bruno@clisp.org>
43939
43940         Fix test-stdint failure on FreeBSD/ia64.
43941         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43942         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43943         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43944         * doc/headers/stdint.texi: Update.
43945
43946 2007-06-01  Bruno Haible  <bruno@clisp.org>
43947
43948         * tests/test-binary-io.c (main): Pass a third argument to open().
43949         Reported by Gary V. Vaughan <gary@gnu.org>.
43950
43951 2007-06-01  Bruno Haible  <bruno@clisp.org>
43952
43953         * doc/functions/frexpl.texi: Update for mingw.
43954
43955 2007-06-01  Bruno Haible  <bruno@clisp.org>
43956
43957         * tests/test-lseek.c (main): Disable test of errno for invalid third
43958         argument.
43959         * doc/functions/lseek.texi: Update.
43960         Reported by Gary V. Vaughan <gary@gnu.org>.
43961
43962 2007-05-28  Bruno Haible  <bruno@clisp.org>
43963
43964         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43965
43966 2007-05-31  Eric Blake  <ebb9@byu.net>
43967
43968         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43969         cross compiling.
43970
43971 2007-05-30  Eric Blake  <ebb9@byu.net>
43972         and Bruno Haible  <bruno@clisp.org>
43973
43974         Work around mingw test failures exposed by m4-1.4.9b.
43975         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43976         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43977         moment.
43978
43979 2007-05-30  Bruno Haible  <bruno@clisp.org>
43980
43981         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43982         assuming that they are closed. Needed on HP-UX 11.
43983
43984 2007-05-29  Bruno Haible  <bruno@clisp.org>
43985
43986         Fix a problem with #include_next.
43987         * lib/dirent_.h: Split the double-inclusion guard.
43988         * lib/fcntl_.h: Likewise.
43989         * lib/float_.h: Likewise.
43990         * lib/iconv_.h: Likewise.
43991         * lib/inttypes_.h: Likewise.
43992         * lib/locale_.h: Likewise.
43993         * lib/math_.h: Likewise.
43994         * lib/netinet_in_.h: Likewise.
43995         * lib/search_.h: Likewise.
43996         * lib/signal_.h: Likewise.
43997         * lib/stdint_.h: Likewise.
43998         * lib/stdio_.h: Likewise.
43999         * lib/stdlib_.h: Likewise.
44000         * lib/string_.h: Likewise.
44001         * lib/sys_select_.h: Likewise.
44002         * lib/sys_socket_.h: Likewise.
44003         * lib/sys_stat_.h: Likewise.
44004         * lib/sys_time_.h: Likewise.
44005         * lib/sysexits_.h: Likewise.
44006         * lib/time_.h: Likewise.
44007         * lib/unistd_.h: Likewise.
44008         * lib/wchar_.h: Likewise.
44009         * lib/wctype_.h: Likewise.
44010
44011 2007-05-29  Bruno Haible  <bruno@clisp.org>
44012
44013         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44014         for the moment.
44015
44016 2007-05-29  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44019         invocation.
44020         Reported by Eric Blake.
44021
44022 2007-05-29  Bruno Haible  <bruno@clisp.org>
44023
44024         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44025         compiling case.
44026
44027 2007-05-29  Eric Blake  <ebb9@byu.net>
44028             Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44031         cross compiles.
44032
44033 2007-05-28  Eric Blake  <ebb9@byu.net>
44034
44035         * modules/closein-tests (test_closein_LDADD): Support test on
44036         cygwin with libtool.
44037
44038 2007-05-28  Bruno Haible  <bruno@clisp.org>
44039
44040         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44041         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44042         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44043         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44044         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44045         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44046         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44047         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44048         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44049
44050 2007-05-28  Eric Blake  <ebb9@byu.net>
44051
44052         Unconditionally include <config.h> in unit tests.
44053         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44054         * tests/test-allocsa.c, tests/test-arcfour.c,
44055         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44056         tests/test-array_list.c, tests/test-array_oset.c,
44057         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44058         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44059         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44060         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44061         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44062         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44063         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44064         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44065         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44066         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44067         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44068         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44069         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44070         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44071         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44072         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44073         test-md5.c, test-memmem.c, test-printf-posix.c,
44074         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44075         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44076         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44077         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44078         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44079         test-vasnprintf-posix2.c, test-vasnprintf.c,
44080         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44081         test-vfprintf-posix.c, test-vprintf-posix.c,
44082         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44083         test-xvasprintf.c: Likewise.
44084
44085 2007-05-28  Bruno Haible  <bruno@clisp.org>
44086
44087         * gnulib-tool (func_import): Remember the --with-tests command-line
44088         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44089         Reported by Eric Blake.
44090
44091 2007-05-28  Bruno Haible  <bruno@clisp.org>
44092
44093         * modules/ftell-tests: New file.
44094         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44095         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44096
44097         * lib/ftell.c: New file.
44098         * modules/ftell: New file.
44099         * m4/ftell.m4: New file.
44100         * doc/functions/ftell.texi: Update.
44101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44102         REPLACE_FTELL.
44103         * lib/stdio_.h (rpl_ftell): New declaration.
44104         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44105         REPLACE_FTELL.
44106
44107 2007-05-28  Eric Blake  <ebb9@byu.net>
44108
44109         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44110
44111 2007-05-28  Bruno Haible  <bruno@clisp.org>
44112
44113         * modules/fseek-tests: New file.
44114         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44115         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44116
44117         * lib/fseek.c: New file.
44118         * modules/fseek: New file.
44119         * m4/fseek.m4: New file.
44120         * doc/functions/fseek.texi: Update.
44121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44122         REPLACE_FSEEK.
44123         * lib/stdio_.h (rpl_fseek): New declaration.
44124         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44125         REPLACE_FSEEK.
44126
44127 2007-05-28  Bruno Haible  <bruno@clisp.org>
44128
44129         * lib/stdio_.h (fflush): More comments.
44130
44131 2007-05-28  Bruno Haible  <bruno@clisp.org>
44132
44133         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44134         runtime test.
44135
44136 2007-05-28  Eric Blake  <ebb9@byu.net>
44137
44138         Improve lseek module.
44139         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44140         * lib/unistd_.h (lseek): Scale back link warning message.
44141         * tests/test-lseek.c: Beef up test.
44142         * tests/test-lseek.sh: Exercise more facets of lseek.
44143         Reported by Bruno Haible.
44144
44145 2007-05-28  Bruno Haible  <bruno@clisp.org>
44146
44147         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44148         to define.
44149
44150 2007-05-27  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44153
44154 2007-05-27  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/openmp: New file.
44157         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44158         Noah Misch.
44159
44160 2007-05-26  Bruno Haible  <bruno@clisp.org>
44161
44162         * modules/chdir-long (Depends-on): Add fchdir.
44163         * modules/chdir-safer (Depends-on): Likewise.
44164         * modules/fts (Depends-on): Likewise.
44165         * modules/fts-lgpl (Depends-on): Likewise.
44166         * modules/openat (Depends-on): Likewise.
44167         * modules/savewd (Depends-on): Likewise.
44168
44169 2007-05-24  Eric Blake  <ebb9@byu.net>
44170
44171         Fix lseek on mingw.
44172         * modules/lseek: New module.
44173         * m4/lseek.m4: New file.
44174         * lib/lseek.c: New file.
44175         * modules/lseek-tests: New file.
44176         * tests/test-lseek.c: New file.
44177         * tests/test-lseek.sh: New file.
44178         * MODULES.html.sh: Document lseek module.
44179         * modules/fflush (Depends-on): Add lseek, fseeko.
44180         * modules/fseeko (Depends-on): Likewise.
44181         * modules/ftello (Depends-on): Likewise.
44182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44183         broken.
44184         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44185         broken.
44186         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44187         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44188         * lib/ftello.c (rpl_ftello): Likewise.
44189         * tests/test-fseeko.c (main): Test this.
44190         * tests/test-fseeko.sh: Likewise.
44191         * tests/test-ftello.c (main): Likewise.
44192         * tests/test-ftello.sh: Likewise.
44193         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44194         implies replacing fseek.
44195         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44196         HAVE_FTELLO.
44197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44198         * modules/unistd (Makefile.am): Likewise.
44199         * lib/unistd_.h (lseek): Declare a replacement.
44200         * doc/functions/lseek.texi (lseek): Document this fix.
44201         * doc/functions/fseek.texi (fseek): Likewise.
44202         * doc/functions/ftell.texi (ftell): Likewise.
44203
44204 2007-05-24  Bruno Haible  <bruno@clisp.org>
44205
44206         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44207         in the printed representation of a NaN.
44208         * tests/test-vasprintf-posix.c (test_function): Likewise.
44209         * tests/test-snprintf-posix.h (test_function): Likewise.
44210         * tests/test-sprintf-posix.h (test_function): Likewise.
44211         Reported by Eric Blake.
44212
44213 2007-05-23  Eric Blake  <ebb9@byu.net>
44214
44215         Fix fseeko/ftello on cygwin 1.5.24.
44216         * doc/functions/fseeko.texi (fseeko): Document the fix.
44217         * doc/functions/ftello.texi (ftello): Document the fix.
44218         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44219         * doc/functions/stdout.text (stdout): New file.
44220         * doc/functions/stderr.text (stderr): New file.
44221         * doc/gnulib.texi (Function Substitutes): Use new files.
44222         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44223         prior to 1.7.0.
44224         * tests/test-ftello.c (main): Likewise for ftello.
44225         * tests/test-fseeko.sh: New file.
44226         * tests/test-ftello.sh: New file.
44227         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44228         with seekable stdin.
44229         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44231         (gl_REPLACE_FSEEKO): New macro.
44232         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44233         * modules/fseeko (Files): Distribute fseeko.c.
44234         * modules/ftello (Files): Distribute ftello.c.
44235         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44236         mode.
44237         * lib/ftello.c (rpl_ftello): New file.
44238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44239         fseeko, ftello.
44240         (gl_STDIN_LARGE_OFFSET): New macro.
44241         * modules/stdio (Makefile.am): Perform the replacement.
44242         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44243
44244 2007-05-23  Bruno Haible  <bruno@clisp.org>
44245
44246         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44247         GNULIB_POSIXCHECK is defined.
44248
44249 2007-05-21  Bruno Haible  <bruno@clisp.org>
44250
44251         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44252         Check also the output for NaN arguments. When cross-compiling, guess
44253         no on IRIX.
44254         * lib/vasnprintf.c: Update comments.
44255         * tests/test-vasnprintf-posix.c (strisnan): New function.
44256         (test_function): Use it.
44257         * tests/test-vasprintf-posix.c (strisnan): New function.
44258         (test_function): Use it.
44259         * tests/test-snprintf-posix.h (strisnan): New function.
44260         (test_function): Use it.
44261         * tests/test-sprintf-posix.h (strisnan): New function.
44262         (test_function): Use it.
44263         Reported by Eric Blake.
44264
44265 2007-05-20  Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44268         numbers that fails on BeOS.
44269         * doc/functions/frexpl.texi: Update.
44270
44271 2007-05-20  Jim Meyering  <jim@meyering.net>
44272
44273         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44274         forced upon us by glibc-2.6.
44275
44276 2007-05-20  Bruno Haible  <bruno@clisp.org>
44277
44278         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44279         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44280         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44281         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44282         NEED_PRINTF_INFINITE.
44283         (is_infinitel): New function.
44284         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44286         gl_PREREQ_VASNPRINTF_INFINITE.
44287         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44289         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44290         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44291         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44292         gl_PREREQ_VASNPRINTF_INFINITE.
44293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44300         * doc/functions/fprintf.texi: Update.
44301         * doc/functions/printf.texi: Update.
44302         * doc/functions/snprintf.texi: Update.
44303         * doc/functions/sprintf.texi: Update.
44304         * doc/functions/vfprintf.texi: Update.
44305         * doc/functions/vprintf.texi: Update.
44306         * doc/functions/vsnprintf.texi: Update.
44307         * doc/functions/vsprintf.texi: Update.
44308
44309 2007-05-20  Bruno Haible  <bruno@clisp.org>
44310
44311         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44312         was not found in libc.
44313         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44314
44315 2007-05-20  Bruno Haible  <bruno@clisp.org>
44316
44317         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44318         printed as "-nan" instead of "nan".
44319         * tests/test-vasprintf-posix.c (test_function): Likewise.
44320         * tests/test-snprintf-posix.h (test_function): Likewise.
44321         * tests/test-sprintf-posix.h (test_function): Likewise.
44322         Needed for HP-UX 11.
44323
44324 2007-05-20  Jim Meyering  <jim@meyering.net>
44325
44326         Fix buggy test for the fchownat-deref bug.
44327         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44328         symlink required for the run-test.  Without it, this test would
44329         always declare that fchownat doesn't work, and client code would
44330         unnecessarily use the replacement function with fixed libc.
44331         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44332         Reported by Greg Schafer.
44333
44334 2007-05-19  Bruno Haible  <bruno@clisp.org>
44335
44336         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44337         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44338         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44339         Needed for IRIX 6.5 and Solaris 2.5.1.
44340
44341 2007-05-19  Bruno Haible  <bruno@clisp.org>
44342
44343         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44344         (test_function): Skip tests involving -0.0 on platforms where
44345         -0.0 = 0.0.
44346         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44347         (test_function): Skip tests involving -0.0 on platforms where
44348         -0.0 = 0.0.
44349         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44350         (test_function): Skip tests involving -0.0 on platforms where
44351         -0.0 = 0.0.
44352         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44353         (test_function): Skip tests involving -0.0 on platforms where
44354         -0.0 = 0.0.
44355         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44356         tests.
44357         * tests/test-printf-posix.h (test_function): Likewise.
44358         * tests/test-printf-posix.output: Remove all -0.0 related results.
44359         Needed for IRIX 6.5.
44360
44361 2007-05-19  Bruno Haible  <bruno@clisp.org>
44362
44363         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44364         printed as "nan0x7fffffff" instead of "nan".
44365         * tests/test-vasprintf-posix.c (test_function): Likewise.
44366         * tests/test-snprintf-posix.h (test_function): Likewise.
44367         * tests/test-sprintf-posix.h (test_function): Likewise.
44368         * tests/test-fprintf-posix.h (NaN): Remove macro.
44369         (test_function): Remove all NaN related tests.
44370         * tests/test-printf-posix.h (NaN): Remove macro.
44371         (test_function): Remove all NaN related tests.
44372         * tests/test-printf-posix.output: Remove all NaN related results.
44373         Needed for IRIX 6.5.
44374
44375 2007-05-19  Bruno Haible  <bruno@clisp.org>
44376
44377         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44379
44380 2007-05-19  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/float_.h: New file.
44383         * m4/float_h.m4: New file.
44384         * modules/float: New file.
44385         * modules/isnanl (Dependencies): Add float.
44386         * modules/isnanl-nolibm (Dependencies): Likewise.
44387         * modules/mathl (Dependencies): Likewise.
44388         * modules/printf-frexpl (Dependencies): Likewise.
44389         * modules/signbit (Dependencies): Likewise.
44390         * modules/vasnprintf (Dependencies): Likewise.
44391         * doc/headers/float.texi: Update.
44392
44393 2007-05-19  Jim Meyering  <jim@meyering.net>
44394
44395         * lib/utimens.c (gl_futimens): Rename from futimens,
44396         now that glibc-2.6 declares futimens.
44397         * lib/utimens.h: Likewise.
44398
44399 2007-05-19  Bruno Haible  <bruno@clisp.org>
44400
44401         Avoid test failures on mingw.
44402         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44403         * tests/test-printf-posix.sh: Likewise.
44404         * tests/test-vfprintf-posix.sh: Likewise.
44405         * tests/test-vprintf-posix.sh: Likewise.
44406
44407 2007-05-19  Bruno Haible  <bruno@clisp.org>
44408
44409         Fix *printf result for NaN, Inf, -0.0 on mingw.
44410         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44411         * lib/vasnprintf.c: Include math.h and isnan.h.
44412         (is_infinite_or_zero): New function.
44413         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44414         values in the %f, %F, %e, %E, %g, %G directives.
44415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44417         gl_PRINTF_INFINITE and test its result. Invoke
44418         gl_PREREQ_VASNPRINTF_INFINITE.
44419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44426         * doc/functions/fprintf.texi: Update.
44427         * doc/functions/printf.texi: Update.
44428         * doc/functions/snprintf.texi: Update.
44429         * doc/functions/sprintf.texi: Update.
44430         * doc/functions/vfprintf.texi: Update.
44431         * doc/functions/vprintf.texi: Update.
44432         * doc/functions/vsnprintf.texi: Update.
44433         * doc/functions/vsprintf.texi: Update.
44434
44435 2007-05-19  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44438         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44439         Instead of multiplying with 10^k, set extra_zeroes to k.
44440         (scale10_round_long_double): Remove function.
44441
44442 2007-05-18  Bruno Haible  <bruno@clisp.org>
44443
44444         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44445         introduced on 2007-05-06.
44446
44447 2007-05-18  Bruno Haible  <bruno@clisp.org>
44448
44449         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44450         %g directives.
44451         * tests/test-vasprintf-posix.c (test_function): Likewise.
44452         * tests/test-snprintf-posix.h (test_function): Likewise.
44453         * tests/test-sprintf-posix.h (test_function): Likewise.
44454
44455 2007-05-18  Bruno Haible  <bruno@clisp.org>
44456
44457         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44458         (strmatch): New function.
44459         (test_function): Test the %f directive on numbers of various exponents.
44460         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44461         (strmatch): New function.
44462         (test_function): Test the %f directive on numbers of various exponents.
44463         * tests/test-snprintf-posix.h (strmatch): New function.
44464         (test_function): Test the %f directive on numbers of various exponents.
44465         * tests/test-sprintf-posix.h (strmatch): New function.
44466         (test_function): Test the %f directive on numbers of various exponents.
44467         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44468         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44469         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44470         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44471
44472 2007-05-18  Bruno Haible  <bruno@clisp.org>
44473
44474         Add support for 'long double' number output.
44475         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44476         * lib/vasnprintf.c: Include math.h and float+.h.
44477         (mp_limb_t): New type.
44478         (GMP_LIMB_BITS): New macro.
44479         (mp_twolimb_t): New type.
44480         (GMP_TWOLIMB_BITS): New macro.
44481         (mpn_t): New type.
44482         (multiply, divide, convert_to_decimal, decode_long_double,
44483         scale10_round_long_double, scale10_round_decimal_long_double,
44484         floorlog10l): New functions.
44485         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44486         for the %f, %F, %e, %E, %g, %G directives.
44487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44489         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44490         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44498         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44499         * modules/snprintf-posix (Depends-on): Likewise.
44500         * modules/sprintf-posix (Depends-on): Likewise.
44501         * modules/vasnprintf-posix (Depends-on): Likewise.
44502         * modules/vasprintf-posix (Depends-on): Likewise.
44503         * modules/vfprintf-posix (Depends-on): Likewise.
44504         * modules/vsnprintf-posix (Depends-on): Likewise.
44505         * modules/vsprintf-posix (Depends-on): Likewise.
44506         * modules/vasnprintf (Files): Add lib/float+.h.
44507         * doc/functions/fprintf.texi: Update.
44508         * doc/functions/printf.texi: Update.
44509         * doc/functions/snprintf.texi: Update.
44510         * doc/functions/sprintf.texi: Update.
44511         * doc/functions/vfprintf.texi: Update.
44512         * doc/functions/vprintf.texi: Update.
44513         * doc/functions/vsnprintf.texi: Update.
44514         * doc/functions/vsprintf.texi: Update.
44515
44516 2007-05-18  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44519
44520 2007-05-18  Bruno Haible  <bruno@clisp.org>
44521
44522         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44523         for printing 64-bit integers. Needed for mingw.
44524
44525 2007-05-18  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44528         gl_FUNC_FREXPL_WORKS.
44529         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44530
44531 2007-05-18  Bruno Haible  <bruno@clisp.org>
44532
44533         * modules/frexpl-nolibm-tests: New file.
44534
44535         * modules/frexpl-nolibm: New file.
44536         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44537
44538 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44539
44540         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44541         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44542         GCC 4.2, which otherwise issues a lot of warnings.
44543         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44544         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44545         Likewise.
44546         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44547         * modules/iconv_open (iconv.h): Likewise.
44548         * modules/locale (locale.h): Likewise.
44549         * modules/netinet_in (netinet/in.h): Likewise.
44550         * modules/sys_select (sys_select.h): Likewise.
44551         * modules/sys_socket (sys/socket.h): Likewise.
44552         * modules/sys_stat (sys/stat.h): Likewise.
44553         * modules/sysexits (sysexits.h): Likewise.
44554         * modules/unistd (unistd.h): Likewise.
44555
44556 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44557
44558         * modules/closein-tests (Makefile.am): Distribute
44559         `test-closein.sh'.
44560
44561 2007-05-17  Bruno Haible  <bruno@clisp.org>
44562
44563         * tests/test-printf-posix.output: Renamed from
44564         tests/test-fprintf-posix.out.
44565         * modules/fprintf-posix-tests: Update.
44566         * modules/printf-posix-tests: Update.
44567         * modules/vfprintf-posix-tests: Update.
44568         * modules/vprintf-posix-tests: Update.
44569         * tests/test-fprintf-posix.sh: Update.
44570         * tests/test-printf-posix.sh: Update.
44571         * tests/test-vfprintf-posix.sh: Update.
44572         * tests/test-vprintf-posix.sh: Update.
44573         Reported by Ralf Wildenhues.
44574
44575 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44576
44577         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44578         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44579         GCC 4.2, which otherwise issues a lot of warnings.
44580         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44581         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44582         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44583         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44584         it should no longer be needed.
44585         * lib/string_.h: Likewise.
44586         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44587         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44588         * modules/inttypes (inttypes.h): Likewise.
44589         * modules/math (math.h): Likewise.
44590         * modules/search (search.h): Likewise.
44591         * modules/signal (signal.h): Likewise.
44592         * modules/stdint (stdint.h): Likewise.
44593         * modules/stdio (stdio.h): Likewise.
44594         * modules/stdlib (stdlib.h): Likewise.
44595         * modules/string (string.h): Likewise.
44596         * modules/sys_time (sys/time.h): Likewise.
44597         * modules/time (time.h): Likewise.
44598         * modules/wchar (wchar.h): Likewise.
44599         * modules/wctype (wtype.h): Likewise.
44600
44601 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44602
44603         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44604
44605 2007-05-13  Bruno Haible  <bruno@clisp.org>
44606
44607         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44608         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44609         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44610         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44611         (gl_PREREQ_STRTOK_R): Don't require it here.
44612
44613 2007-05-13  Bruno Haible  <bruno@clisp.org>
44614
44615         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44616         when used in C++ mode.
44617
44618 2007-05-12  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/linebuffer.h: Tweak doc.
44621         * lib/linebuffer.c: Likewise.
44622
44623 2007-05-12  James Youngman  <jay@gnu.org>
44624
44625         * lib/linebuffer.c (readlinebuffer_delim): New function,
44626         like readlinebuffer, but use a caller-specified delimiter.
44627         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44628         as the delimiter.
44629         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44630
44631 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44632
44633         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44634         * modules/openat (Files): Remove openat-die.c.
44635         (Depends-on): Add openat-die.
44636         * modules/openat-die: New module.
44637
44638 2007-05-06  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44641         Update with info about Cygwin.
44642         * doc/functions/fprintf.texi: Update.
44643         * doc/functions/printf.texi: Update.
44644         * doc/functions/snprintf.texi: Update.
44645         * doc/functions/sprintf.texi: Update.
44646         * doc/functions/vfprintf.texi: Update.
44647         * doc/functions/vprintf.texi: Update.
44648         * doc/functions/vsnprintf.texi: Update.
44649         * doc/functions/vsprintf.texi: Update.
44650         Reported by Eric Blake.
44651
44652 2007-05-06  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44655         padding ourselves for the floating-point directives.
44656         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44659         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44660         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44662         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44668         * tests/test-snprintf-posix.h (test_function): Also check the width
44669         and some flags in the %f directive.
44670         * tests/test-sprintf-posix.h (test_function): Likewise.
44671         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44672         * tests/test-vasprintf-posix.c (test_function): Likewise.
44673         * doc/functions/fprintf.texi: Update.
44674         * doc/functions/printf.texi: Update.
44675         * doc/functions/snprintf.texi: Update.
44676         * doc/functions/sprintf.texi: Update.
44677         * doc/functions/vfprintf.texi: Update.
44678         * doc/functions/vprintf.texi: Update.
44679         * doc/functions/vsnprintf.texi: Update.
44680         * doc/functions/vsprintf.texi: Update.
44681
44682 2007-05-06  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44685         pass the ' flag character to sprintf or snprintf.
44686         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44689         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44690         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44691         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44693         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44698         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44699         flag.
44700         * tests/test-sprintf-posix.h (test_function): Likewise.
44701         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44702         * tests/test-vasprintf-posix.c (test_function): Likewise.
44703         * doc/functions/fprintf.texi: Update.
44704         * doc/functions/printf.texi: Update.
44705         * doc/functions/snprintf.texi: Update.
44706         * doc/functions/sprintf.texi: Update.
44707         * doc/functions/vfprintf.texi: Update.
44708         * doc/functions/vprintf.texi: Update.
44709         * doc/functions/vsnprintf.texi: Update.
44710         * doc/functions/vsprintf.texi: Update.
44711
44712 2007-05-01  Bruno Haible  <bruno@clisp.org>
44713
44714         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44715
44716 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44717
44718         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44719         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44720
44721 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44722
44723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44724         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44726
44727 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44728
44729         * lib/argp-help.c (struct hol_entry): New member `ord'.
44730         (HOL_ENTRY_PTRCMP): Use ord for comparison
44731         (hol_sort): Initialize ord.
44732
44733 2007-05-01  Bruno Haible  <bruno@clisp.org>
44734
44735         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44736         Reported by Eric Blake.
44737         * doc/gnulib.texi (Function Substitutes): Update.
44738
44739 2007-05-01  Bruno Haible  <bruno@clisp.org>
44740
44741         * doc/functions.texi: Remove file, now redundant through
44742         doc/functions/*.texi.
44743
44744 2007-05-01  Bruno Haible  <bruno@clisp.org>
44745
44746         * modules/argp (Depends-on): Add sleep.
44747
44748 2007-05-01  Bruno Haible  <bruno@clisp.org>
44749
44750         * modules/sleep-tests: New file.
44751         * tests/test-sleep.c: New file.
44752
44753         * modules/sleep: New file.
44754         * lib/sleep.c: New file.
44755         * m4/sleep.m4: New file.
44756         * lib/unistd_.h (sleep): New declaration.
44757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44758         HAVE_SLEEP.
44759         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44760         * doc/functions/sleep.texi: Document the sleep module.
44761
44762 2007-05-01  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/sigprocmask.h: Remove file.
44765         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44766         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44767         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44768         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44769         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44770         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44771         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44772         HAVE_SIGSET_T as a shell variable.
44773         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44774         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44775         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44776         (Depends-on): Add signal. Remove verify.
44777         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44778         (Include): Mention <signal.h> instead of sigprocmask.h.
44779         * NEWS: Mention the change.
44780         * lib/fatal-signal.c: Don't include sigprocmask.h.
44781
44782 2007-05-01  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/signal: New file.
44785         * lib/signal_.h: New file.
44786         * m4/signal_h.m4: New file.
44787
44788 2007-05-01  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44791         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44792         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44793         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44794
44795 2007-05-01  Bruno Haible  <bruno@clisp.org>
44796
44797         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44798         configure time.
44799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44800         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44801         * modules/sys_stat (Makefile.am): Substitute their values into
44802         sys/stat.h.
44803
44804 2007-05-01  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44807         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44808         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44809
44810 2007-05-01  Bruno Haible  <bruno@clisp.org>
44811
44812         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44813         'assert' module here.
44814
44815 2007-05-01  Bruno Haible  <bruno@clisp.org>
44816
44817         * doc/functions/*.texi: New files.
44818         * doc/functions/google-ranking.txt: New file.
44819         * doc/gnulib.texi (Function Substitutes): New chapter.
44820         (ctime, inet_ntoa): Remove sections.
44821         * doc/ctime.texi: Remove file.
44822         * doc/inet_ntoa.texi: Remove file.
44823         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44824         dependencies.
44825         (%.info): New rule, specifying a --reference-limit.
44826
44827 2007-05-01  Bruno Haible  <bruno@clisp.org>
44828
44829         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44830
44831 2007-05-01  Bruno Haible  <bruno@clisp.org>
44832
44833         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44834         the portability of 'mkdir' to mingw systems.
44835
44836 2007-05-01  Bruno Haible  <bruno@clisp.org>
44837
44838         * doc/headers/google-ranking.txt: New file.
44839
44840 2007-04-30  Eric Blake  <ebb9@byu.net>
44841
44842         Prefer fseeko to fseek.
44843         * modules/getpass (Depends-on): Add fseeko.
44844         * lib/getpass.c (getpass): Use fseeko, not fseek.
44845
44846 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44847
44848         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44849         assumes the sorting is stable, while most qsort implementations
44850         are not.  Use argument addresses to ensure they never compare as
44851         equal.
44852
44853         * tests/test-argp-2.sh (usage-indent test): Fix output
44854         (func_compare): Restore diff options
44855         * tests/test-argp.c: Restore #include "progname.h"
44856
44857 2007-04-29  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44861         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44863         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44864         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44865         (TESTS, check_PROGRAMS): Add test-snprintf.
44866         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44867         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44868         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44869         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44870         assertions that fail on HP-UX, OSF/1, or IRIX.
44871         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44872
44873 2007-04-29  Bruno Haible  <bruno@clisp.org>
44874
44875         * MODULES.html.sh (posix_functions): Remove 'contents'.
44876
44877 2007-04-29  Karl Berry  <karl@gnu.org>
44878
44879         * config/srclist.txt (gendocs_template_min): new entry.
44880
44881 2007-04-29  Bruno Haible  <bruno@clisp.org>
44882
44883         Work around fpurge bug on BSD systems.
44884         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44885         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44886         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44887         fpurge to rpl_fpurge if the system already has this function.
44888         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44889         the case where the system already has this function. Correct invariants
44890         on BSD systems.
44891         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44892         BSD systems.
44893
44894 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44895
44896         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44897         proposed by Sven Verdoolaege.
44898
44899         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44900         options.
44901         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44902         (usage and help tests): Update
44903
44904 2007-04-29  Bruno Haible  <bruno@clisp.org>
44905
44906         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44907         Print more information in case of failure. Disable a test on BeOS.
44908
44909 2007-04-29  Bruno Haible  <bruno@clisp.org>
44910
44911         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44912         This helps debugging on systems on which no gdb is available.
44913
44914 2007-04-29  Bruno Haible  <bruno@clisp.org>
44915
44916         * lib/freading.h: Improve comments.
44917         * lib/fwriting.h: Likewise.
44918         * tests/test-freading.c (main): Don't check freading immediately after
44919         repositioning. Needed for glibc.
44920
44921 2007-04-29  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/freading.c (freading): Trivial simplification.
44924
44925 2007-04-28  Bruno Haible  <bruno@clisp.org>
44926
44927         * tests/test-fwriting.c (main): Also test the interaction between
44928         fflush and fwriting.
44929         * modules/fwriting-tests (Depends-on): Add fflush.
44930
44931         * tests/test-freading.c (main): Also test the interaction between
44932         fflush and freading.
44933         * modules/freading-tests (Depends-on): Add fflush.
44934
44935 2007-04-28  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44938         fseeko and ftello.
44939         Suggested by Eric Blake.
44940
44941 2007-04-28  Jim Meyering  <jim@meyering.net>
44942
44943         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44944         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44945         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44946
44947 2007-04-27  Eric Blake  <ebb9@byu.net>
44948
44949         * doc/headers/assert.texi (assert.h): Document assert module use.
44950
44951 2007-04-27  Bruno Haible  <bruno@clisp.org>
44952
44953         * doc/headers/*.texi: New files.
44954         * doc/gnulib.texi (Header File Substitutes): New chapter.
44955         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44956         dependencies.
44957         (standards.info ,standards.html, standards.dvi): Update dependencies.
44958         (mostlyclean, clean): New targets.
44959
44960 2007-04-27  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44963         * modules/sysexits (Files, Makefile.am): Update.
44964
44965         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44966         * modules/sys_socket (Files, Makefile.am): Update.
44967
44968         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44969         * modules/sys_stat (Files, Makefile.am): Update.
44970
44971 2007-04-27  Eric Blake  <ebb9@byu.net>
44972
44973         * lib/freading.h: Improve comments.
44974         * lib/fwriting.h: Likewise.
44975         * lib/fflush.c: Likewise.
44976
44977         Fix closein for mingw.
44978         * modules/closein-tests: Add tests for closein.
44979         * tests/test-closein.c: New file.
44980         * tests/test-closein.sh: Likewise.
44981         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44982         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44983
44984 2007-04-27  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44987         version is < 6.
44988         * lib/math_.h [__DECC]: Likewise.
44989         * lib/stdio_.h [__DECC]: Likewise.
44990         * lib/stdlib_.h [__DECC]: Likewise.
44991         * lib/string_.h [__DECC]: Likewise.
44992         * lib/time_.h [__DECC]: Likewise.
44993         * lib/wchar_.h [__DECC]: Likewise.
44994         * lib/wctype_.h [__DECC]: Likewise.
44995
44996 2007-04-27  Bruno Haible  <bruno@clisp.org>
44997
44998         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44999
45000 2007-04-27  Bruno Haible  <bruno@clisp.org>
45001
45002         * lib/fflush.c: Add comments.
45003         * modules/fpurge-tests (Depends-on): Add fflush.
45004         * modules/freadable-tests (Depends-on): Likewise.
45005         * modules/fwritable-tests (Depends-on): Likewise.
45006
45007 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45008
45009         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45010         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45011         Report by Bruno Haible <bruno@clisp.org>.
45012
45013 2007-04-26  Eric Blake  <ebb9@byu.net>
45014
45015         Fix fflush on mingw.
45016         * modules/fflush (Depends-on): Add freading.
45017         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45018         but unread data.
45019
45020 2007-04-26  Eric Blake  <ebb9@byu.net>
45021         and Bruno Haible  <bruno@clisp.org>
45022
45023         Implement freading and fwriting.
45024         * lib/freading.c: New file.
45025         * lib/freading.h: Likewise.
45026         * m4/freading.m4: Likewise.
45027         * modules/freading: Likewise.
45028         * modules/freading-tests: Likewise.
45029         * tests/test-freading.c: Likewise.
45030         * lib/fwriting.c: New file.
45031         * lib/fwriting.h: Likewise.
45032         * m4/fwriting.m4: Likewise.
45033         * modules/fwriting: Likewise.
45034         * modules/fwriting-tests: Likewise.
45035         * tests/test-fwriting.c: Likewise.
45036         * MODULES.html.sh (File stream based Input/Output): Mention them.
45037
45038 2007-04-26  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45041         'long' when we assume it.
45042         Suggested by Eric Blake.
45043
45044 2007-04-26  Bruno Haible  <bruno@clisp.org>
45045
45046         Ensure fseeko, ftello are declared on glibc systems.
45047         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45048         * modules/fseeko (configure.ac-early): Likewise.
45049         * modules/ftello (configure.ac-early): Likewise.
45050         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45051         AC_FUNC_FSEEKO for this.
45052         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45053         (gl_CHECK_FSEEKO): Remove macro.
45054
45055 2007-04-26  Bruno Haible  <bruno@clisp.org>
45056
45057         * tests/test-fflush.c (main): Also check the ftell result after
45058         fflush and fseek/fseeko.
45059         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45060         file descriptor position cache in the stream.
45061         * lib/fseeko.c (rpl_fseeko): Likewise.
45062
45063 2007-04-26  Bruno Haible  <bruno@clisp.org>
45064
45065         * modules/fflush-tests (Depends-on): Add fseeko.
45066
45067 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45068             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45069
45070         * lib/argz_.h: ensure error_t definition is obtained in same
45071         mechanism system argz.h would have.
45072         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45073         argz facilities are known bad.  Err on the side of caution if
45074         cross-compiling.
45075
45076 2007-04-25  Eric Blake  <ebb9@byu.net>
45077
45078         * lib/fpurge.c (includes): Use stdlib.h for free.
45079         * tests/test-fflush.c (main): Also test fflush-fseeko.
45080
45081 2007-04-25  Bruno Haible  <bruno@clisp.org>
45082
45083         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45084         * lib/fseeko.c: New file.
45085         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45086         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45087         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45088         gl_FUNC_FSEEKO.
45089         (gl_FUNC_FSEEKO): Invoke it.
45090         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45091         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45092         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45093
45094 2007-04-25  Bruno Haible  <bruno@clisp.org>
45095
45096         * modules/fflush (Depends-on): Add ftello.
45097
45098 2007-04-25  Bruno Haible  <bruno@clisp.org>
45099
45100         * modules/ftello-tests: New file.
45101         * tests/test-ftello.c: New file.
45102
45103         * modules/ftello: New file.
45104         * m4/ftello.m4: New file.
45105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45106         HAVE_FTELLO.
45107         * lib/stdio_.h (ftello): New declaration.
45108         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45109         HAVE_FTELLO.
45110
45111 2007-04-25  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/fseeko-tests: New file.
45114         * tests/test-fseeko.c: New file.
45115
45116         * modules/fseeko: New file.
45117         * m4/fseeko.m4: New file.
45118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45119         HAVE_FSEEKO.
45120         * lib/stdio_.h (fseeko): New declaration.
45121         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45122         HAVE_FSEEKO.
45123
45124 2007-04-25  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45127
45128 2007-04-25  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45131         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45132         * tests/test-unistd.c: Likewise.
45133         * tests/test-fcntl.c: Likewise.
45134
45135 2007-04-23  Eric Blake  <ebb9@byu.net>
45136
45137         * lib/fflush.c: Fix missing include.
45138         Reported by Bruno Haible.
45139
45140 2007-04-23  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45143         Reported by Eric Blake.
45144
45145 2007-04-23  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45148
45149 2007-04-23  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45152
45153 2007-04-23  Bruno Haible  <bruno@clisp.org>
45154
45155         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45156         Needed on HP-UX 11.
45157
45158 2007-04-16  Eric Blake  <ebb9@byu.net>
45159
45160         Make fflush rely on fpurge.
45161         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45162         open coding all variants.
45163         * modules/fflush (Depends-on): Add fpurge and unistd.
45164         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45165         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45166
45167         Fix --with-tests compilation on cygwin.
45168         * modules/argmatch-tests (Makefile.am): List gnulib library first
45169         in LDADD.
45170         * modules/argp-tests (Makefile.am): Likewise.
45171         * modules/array-list-tests (Makefile.am): Likewise.
45172         * modules/array-oset-tests (Makefile.am): Likewise.
45173         * modules/avltree-list-tests (Makefile.am): Likewise.
45174         * modules/avltree-oset-tests (Makefile.am): Likewise.
45175         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45176         * modules/carray-list-tests (Makefile.am): Likewise.
45177         * modules/dirname-tests (Makefile.am): Likewise.
45178         * modules/frexp-tests (Makefile.am): Likewise.
45179         * modules/isnanl-tests (Makefile.am): Likewise.
45180         * modules/linked-list-tests (Makefile.am): Likewise.
45181         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45182         * modules/lock-tests (Makefile.am): Likewise.
45183         * modules/rbtree-list-tests (Makefile.am): Likewise.
45184         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45185         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45186         * modules/tls-tests (Makefile.am): Likewise.
45187         * modules/tsearch-tests (Makefile.am): Likewise.
45188         * modules/xvasprintf-tests (Makefile.am): Likewise.
45189
45190         Fix fpurge for cygwin.
45191         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45192         value.
45193         * modules/fpurge-tests (Depends-on): Clean up trash.
45194
45195 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45196
45197         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45198
45199         * m4/autobuild.m4: Re-indent.
45200
45201 2007-04-13  Bruno Haible  <bruno@clisp.org>
45202
45203         * modules/fpurge-tests: New file.
45204         * tests/test-fpurge.c: New file.
45205
45206         * modules/fpurge: New file.
45207         * lib/fpurge.h: New file.
45208         * lib/fpurge.c: New file.
45209         * m4/fpurge.m4: New file.
45210
45211 2007-04-13  Bruno Haible  <bruno@clisp.org>
45212
45213         * modules/fbufmode-tests: New file.
45214         * tests/test-fbufmode.c: New file.
45215
45216         * modules/fbufmode: New file.
45217         * lib/fbufmode.h: New file.
45218         * lib/fbufmode.c: New file.
45219         * m4/fbufmode.m4: New file.
45220
45221 2007-04-13  Bruno Haible  <bruno@clisp.org>
45222
45223         * modules/fwritable-tests: New file.
45224         * tests/test-fwritable.c: New file.
45225
45226         * modules/fwritable: New file.
45227         * lib/fwritable.h: New file.
45228         * lib/fwritable.c: New file.
45229         * m4/fwritable.m4: New file.
45230
45231 2007-04-13  Bruno Haible  <bruno@clisp.org>
45232
45233         * modules/freadable-tests: New file.
45234         * tests/test-freadable.c: New file.
45235
45236         * modules/freadable: New file.
45237         * lib/freadable.h: New file.
45238         * lib/freadable.c: New file.
45239         * m4/freadable.m4: New file.
45240
45241 2007-04-13  Bruno Haible  <bruno@clisp.org>
45242
45243         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45244         MOSTLYCLEANFILES.
45245
45246 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45247
45248         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45249         gzip bootstrap.conf to avoid dragging in i18n machinery.
45250         (gnulib_tool_option): Use it.
45251
45252 2007-04-13  Bruno Haible  <bruno@clisp.org>
45253
45254         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45255         %F directives.
45256         * tests/test-vasprintf-posix.c (test_function): Likewise.
45257         * tests/test-snprintf-posix.h (test_function): Likewise.
45258         * tests/test-sprintf-posix.h (test_function): Likewise.
45259         * tests/test-fprintf-posix.h (test_function): Likewise.
45260         * tests/test-printf-posix.h (test_function): Likewise.
45261         * tests/test-fprintf-posix.out: Likewise.
45262
45263 2007-04-13  Bruno Haible  <bruno@clisp.org>
45264
45265         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45266         * modules/tls-tests (configure.ac): Likewise.
45267         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45268
45269 2007-04-13  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/tls.c (glthread_tls_get): Fix return type.
45272         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45273
45274 2007-04-12  Eric Blake  <ebb9@byu.net>
45275
45276         * modules/gettime (Depends-on): Remove gettime.
45277         Reported by Dmitry V. Levin.
45278
45279 2007-04-12  Bruno Haible  <bruno@clisp.org>
45280
45281         * modules/fflush (Include): Mention <stdio.h>.
45282         * modules/strtoimax (Include): Mention <inttypes.h>.
45283         * modules/strtoumax (Include): Likewise.
45284
45285 2007-04-12  Eric Blake  <ebb9@byu.net>
45286
45287         * .cvsignore: New file.
45288         * .gitignore: Likewise.
45289
45290 2007-04-12  Bruno Haible  <bruno@clisp.org>
45291
45292         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45293         not before, since $(LDADD) often contains libgnu.a.
45294         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45295         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45296         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45297         Needed on Cygwin.
45298
45299 2007-04-12  Eric Blake  <ebb9@byu.net>
45300
45301         Work around glibc's failure to flush stdin on fclose.
45302         * lib/closein.c (close_stdin): Flush stdin before closing.
45303
45304         Work around glibc's failure to reset seekable stdin on exit.
45305         * modules/closein: New module.
45306         * lib/closein.c: New file.
45307         * lib/closein.h: Likewise.
45308         * m4/closein.m4: Likewise.
45309         * MODULES.html.sh (File stream based Input/Output): Document it.
45310
45311 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45312
45313         * gnulib-tool: Rename generated 'autobuild' script to
45314         'do-autobuild' in --create-megatestdir output.
45315
45316         * doc/gnulib.texi (Build robot for gnulib): Fix.
45317
45318 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45319
45320         * modules/sysexits (Depends-on): Add absolute-header.
45321
45322 2007-04-12  Eric Blake  <ebb9@byu.net>
45323
45324         No need to preserve errno on success.
45325         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45326         Reported by Bruno Haible.
45327
45328 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45329
45330         * MODULES.html.sh (Support for maintaining and releasing
45331         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45332
45333 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45334
45335         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45336
45337 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45338
45339         * modules/autobuild: New module.
45340
45341         * m4/autobuild.m4: New file.
45342
45343 2007-04-11  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45346         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45350         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45351         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45353         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45354         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45355         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45373         Reported by Eric Blake.
45374
45375 2007-04-11  Bruno Haible  <bruno@clisp.org>
45376
45377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45378
45379 2007-04-10  Bruno Haible  <bruno@clisp.org>
45380
45381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45382         for NaN and Infinity. Needed on FreeBSD 6.1.
45383         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45384         regarding results for "%010a" of Infinity and NaN.
45385         * tests/test-vasprintf-posix.c (test_function): Likewise.
45386         * tests/test-snprintf-posix.h (test_function): Likewise.
45387         * tests/test-sprintf-posix.h (test_function): Likewise.
45388         * tests/test-fprintf-posix.h (test_function): Likewise.
45389         * tests/test-printf-posix.h (test_function): Likewise.
45390         * tests/test-fprintf-posix.out: Likewise.
45391
45392 2007-04-10  Bruno Haible  <bruno@clisp.org>
45393
45394         * modules/locale-tests: New file.
45395         * tests/test-locale.c: New file.
45396
45397         * modules/locale: New file.
45398         * lib/locale_.h: New file.
45399         * m4/locale_h.m4: New file.
45400
45401 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45402             Bruno Haible  <bruno@clisp.org>
45403
45404         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45405         be determined, test for availability of the copysignf, copysign,
45406         copysignl functions.
45407         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45408         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45409         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45410
45411 2007-04-09  Eric Blake  <ebb9@byu.net>
45412
45413         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45414         * modules/stdio (Makefile.am): Support fflush.
45415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45416         * modules/fflush: New file.
45417         * lib/fflush.c: Likewise.
45418         * m4/fflush.m4: Likewise.
45419         * modules/fflush-tests: New test.
45420         * tests/test-fflush.c: Likewise.
45421         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45422
45423 2007-04-06  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45426         (VASNPRINTF): Use signbit for faster determination whether to print a
45427         minus sign.
45428         * modules/vasnprintf (Files): Remove lib/float+.h.
45429         * modules/fprintf-posix (Depends-on): Add signbit.
45430         * modules/snprintf-posix (Depends-on): Likewise.
45431         * modules/sprintf-posix (Depends-on): Likewise.
45432         * modules/vasnprintf-posix (Depends-on): Likewise.
45433         * modules/vasprintf-posix (Depends-on): Likewise.
45434         * modules/vfprintf-posix (Depends-on): Likewise.
45435         * modules/vsnprintf-posix (Depends-on): Likewise.
45436         * modules/vsprintf-posix (Depends-on): Likewise.
45437
45438 2007-04-06  Bruno Haible  <bruno@clisp.org>
45439
45440         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45441         * tests/test-frexpl.c (main): Likewise.
45442         * tests/test-ldexpl.c (main): Likewise.
45443         * modules/frexp-tests (Depends-on): Add signbit.
45444         * modules/frexpl-tests (Depdends-on): Likewise.
45445         * modules/ldexpl-tests (Depdends-on): Likewise.
45446
45447 2007-04-06  Bruno Haible  <bruno@clisp.org>
45448
45449         * modules/signbit-tests: New file.
45450         * tests/test-signbit.c: New file.
45451
45452         * modules/signbit: New file.
45453         * lib/signbitf.c: New file.
45454         * lib/signbitd.c: New file.
45455         * lib/signbitl.c: New file.
45456         * m4/signbit.m4: New file.
45457         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45458         (signbit): New macro.
45459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45460         REPLACE_SIGNBIT.
45461         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45462         REPLACE_FREXPL into math.h.
45463
45464 2007-04-06  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/isnanf-nolibm-tests: New file.
45467         * tests/test-isnanf.c: New file.
45468
45469         * modules/isnanf-nolibm: New file.
45470         * lib/isnanf.h: New file.
45471         * lib/isnanf.c: New file.
45472         * lib/isnan.c: Consider the USE_FLOAT macro.
45473         * m4/isnanf.m4: New file.
45474
45475 2007-04-06  Bruno Haible  <bruno@clisp.org>
45476
45477         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45478         (Link): New section.
45479
45480         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45481
45482 2007-04-06  Bruno Haible  <bruno@clisp.org>
45483
45484         Assume the 'long double' type.
45485         * m4/longdouble.m4: Remove file.
45486         * config/srclist.txt: Don't mention longdouble.m4.
45487         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45488         * lib/float+.h: Likewise.
45489         * lib/frexp.c: Likewise.
45490         * lib/printf-args.h: Likewise.
45491         * lib/printf-args.c: Likewise.
45492         * lib/printf-frexp.c: Likewise.
45493         * lib/printf-parse.c: Likewise.
45494         * lib/vasnprintf.c: Likewise.
45495         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45496         * m4/intl.m4: Likewise.
45497         * m4/isnanl.m4: Likewise.
45498         * m4/printf.m4: Likewise.
45499         * m4/printf-frexpl.m4: Likewise.
45500         * m4/vasnprintf.m4: Likewise.
45501         * modules/allocsa (Files): Remove m4/longdouble.m4.
45502         * modules/gettext (Files): Likewise.
45503         * modules/relocatable-prog-wrapper (Files): Likewise.
45504         * modules/vasnprintf (Files): Likewise.
45505         * modules/isnanl (Files): Likewise.
45506         (Include): Simplify.
45507         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45508         (Include): Simplify.
45509         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45510         (Include): Simplify.
45511         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45512         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45513         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45514         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45515         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45516         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45517         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45518         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45519         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45520         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45521         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45522         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45523         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45524         * tests/test-isnanl.c: Likewise.
45525         * tests/test-snprintf-posix.h: Likewise.
45526         * tests/test-sprintf-posix.h: Likewise.
45527         * tests/test-vasnprintf-posix.c: Likewise.
45528         * tests/test-vasnprintf-posix2.c: Likewise.
45529         * tests/test-vasprintf-posix.c: Likewise.
45530
45531 2007-04-06  Bruno Haible  <bruno@clisp.org>
45532
45533         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45534         * lib/math_.h [__DECC]: Include the overridden include file through
45535         #include_next, outside the double-inclusion guard.
45536         * lib/stdio_.h [__DECC]: Likewise.
45537         * lib/stdlib_.h [__DECC]: Likewise.
45538         * lib/string_.h [__DECC]: Likewise.
45539         * lib/time_.h [__DECC]: Likewise.
45540         * lib/wchar_.h [__DECC]: Likewise.
45541         * lib/wctype_.h [__DECC]: Likewise.
45542         * lib/inttypes_.h [__DECC]: Likewise.
45543         Reported by Albert Chin <china@thewrittenword.com> in
45544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45545
45546 2007-04-04  Eric Blake  <ebb9@byu.net>
45547
45548         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45549         1.5.x.
45550
45551 2007-04-04  Bruno Haible  <bruno@clisp.org>
45552
45553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45554         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45555
45556 2007-04-04  Bruno Haible  <bruno@clisp.org>
45557
45558         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45559         results for "%010a" of Infinity and NaN.
45560         * tests/test-vasprintf-posix.c (test_function): Likewise.
45561         * tests/test-snprintf-posix.h (test_function): Likewise.
45562         * tests/test-sprintf-posix.h (test_function): Likewise.
45563         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45564         * tests/test-printf-posix.h (test_function): Likewise.
45565         * tests/test-fprintf-posix.out: Update.
45566         Needed for FreeBSD 6.1.
45567
45568 2007-04-04  Bruno Haible  <bruno@clisp.org>
45569
45570         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45571         directly used by the gnulib modules nor by gnulib-tool.
45572
45573 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45574
45575         * DEPENDENCIES: Give overall description of version dependency
45576         desirability.  Use more-typical names for apps.
45577         Add shell, coreutils, diffutils, grep, tar, gzip.
45578
45579 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45580
45581         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45582
45583 2007-04-04  Karl Berry  <karl@gnu.org>
45584
45585         * MODULES.html.sh (func_module): missing '.
45586
45587 2007-04-03  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/argmatch-tests (Makefile.am): New variable
45590         test_argmatch_LDADD.
45591         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45592         * modules/array-list-tests (Makefile.am): New variable
45593         test_array_list_LDADD.
45594         * modules/array-oset-tests (Makefile.am): New variable
45595         test_array_oset_LDADD.
45596         * modules/avltree-list-tests (Makefile.am): New variable
45597         test_avltree_list_LDADD.
45598         * modules/avltree-oset-tests (Makefile.am): New variable
45599         test_avltree_oset_LDADD.
45600         * modules/avltreehash-list-tests (Makefile.am): New variable
45601         test_avltreehash_list_LDADD.
45602         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45603         test_canonicalize_lgpl_LDADD.
45604         * modules/carray-list-tests (Makefile.am): New variable
45605         test_carray_list_LDADD.
45606         * modules/dirname-tests (Makefile.am): New variable
45607         test_dirname_LDADD.
45608         * modules/linked-list-tests (Makefile.am): New variable
45609         test_linked_list_LDADD.
45610         * modules/linkedhash-list-tests (Makefile.am): New variable
45611         test_linkedhash_list_LDADD.
45612         * modules/rbtree-list-tests (Makefile.am): New variable
45613         test_rbtree_list_LDADD.
45614         * modules/rbtree-oset-tests (Makefile.am): New variable
45615         test_rbtree_oset_LDADD.
45616         * modules/rbtreehash-list-tests (Makefile.am): New variable
45617         test_rbtreehash_list_LDADD.
45618         * modules/xvasprintf-tests (Makefile.am): New variable
45619         test_xvasprintf_LDADD.
45620         Reported by Eric Blake.
45621
45622 2007-04-03  Eric Blake  <ebb9@byu.net>
45623
45624         * DEPENDENCIES: Weaken m4 requirements.
45625
45626 2007-04-03  Bruno Haible  <bruno@clisp.org>
45627
45628         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45629         * modules/isnanl-tests (configure.ac): Likewise.
45630
45631 2007-04-03  Ben Pfaff  <blp@gnu.org>
45632
45633         * modules/iconv_open: Add $(srcdir)/ to source directory
45634         references in Makefile fragments that call gperf, to fix VPATH
45635         builds.
45636
45637 2007-04-03  Bruno Haible  <bruno@clisp.org>
45638
45639         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45640         * lib/ldexpl.c: Undo last change.
45641
45642 2007-04-03  Bruno Haible  <bruno@clisp.org>
45643
45644         * modules/printf-frexpl (Depends-on): Undo last change.
45645         (Files): Add m4/ldexpl.m4.
45646
45647 2007-04-03  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45650         * modules/isnanl (Link): New section.
45651
45652         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45653         * modules/frexp (Link): New section.
45654
45655         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45656         * modules/frexpl (Link): New section.
45657
45658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45659         * modules/ldexpl (Link): New section.
45660
45661 2007-04-03  Bruno Haible  <bruno@clisp.org>
45662
45663         * modules/TEMPLATE-EXTENDED: New file.
45664         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45665
45666 2007-04-03  Bruno Haible  <bruno@clisp.org>
45667
45668         * DEPENDENCIES: New file.
45669         Suggested by Simon Josefsson.
45670
45671 2007-04-03  Bruno Haible  <bruno@clisp.org>
45672
45673         * doc/gnulib.texi: Escape @.
45674
45675 2007-04-03  James Youngman  <jay@gnu.org>
45676         and Paul Eggert  <eggert@cs.ucla.edu>
45677
45678         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45679         birthtime on all systems that have birthtime, not just those which
45680         use st_birthtimensec rather than st_birthtim.  Putting zero in
45681         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45682         that the birth time is not available for files on an NFS mount.
45683
45684 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45685
45686         * modules/memxor: Move back from crypto/, suggested by Bruno.
45687         * modules/crypto/hmac-sha1: Fix memxor dependency.
45688
45689         * modules/crypto/gc: Moved from ../.
45690
45691 2007-04-02  Eric Blake  <ebb9@byu.net>
45692
45693         * lib/ldexpl.c (includes): Avoid libm.
45694
45695         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45696
45697 2007-04-02  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45700         on IRIX.
45701
45702 2007-04-02  Bruno Haible  <bruno@clisp.org>
45703
45704         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45705         x86 or x86_64 platforms running MacOS X.
45706         Reported by Ryan Schmidt <@ryandesign.com>.
45707
45708 2007-04-02  Bruno Haible  <bruno@clisp.org>
45709
45710         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45711         i386.
45712
45713 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45714
45715         * modules/crypto/arcfour: Moved from ../.
45716         * modules/crypto/arcfour-tests: Moved from ../.
45717         * modules/crypto/arctwo: Moved from ../.
45718         * modules/crypto/arctwo-tests: Moved from ../.
45719         * modules/crypto/des: Moved from ../.
45720         * modules/crypto/des-tests: Moved from ../.
45721         * modules/crypto/gc-arcfour: Moved from ../.
45722         * modules/crypto/gc-arcfour-tests: Moved from ../.
45723         * modules/crypto/gc-arctwo: Moved from ../.
45724         * modules/crypto/gc-arctwo-tests: Moved from ../.
45725         * modules/crypto/gc-des: Moved from ../.
45726         * modules/crypto/gc-des-tests: Moved from ../.
45727         * modules/crypto/gc-hmac-md5: Moved from ../.
45728         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45729         * modules/crypto/gc-hmac-sha1: Moved from ../.
45730         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45731         * modules/crypto/gc-md2: Moved from ../.
45732         * modules/crypto/gc-md2-tests: Moved from ../.
45733         * modules/crypto/gc-md4: Moved from ../.
45734         * modules/crypto/gc-md4-tests: Moved from ../.
45735         * modules/crypto/gc-md5: Moved from ../.
45736         * modules/crypto/gc-md5-tests: Moved from ../.
45737         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45738         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45739         * modules/crypto/gc-random: Moved from ../.
45740         * modules/crypto/gc-rijndael: Moved from ../.
45741         * modules/crypto/gc-rijndael-tests: Moved from ../.
45742         * modules/crypto/gc-sha1: Moved from ../.
45743         * modules/crypto/gc-sha1-tests: Moved from ../.
45744         * modules/crypto/gc-tests: Moved from ../.
45745         * modules/crypto/hmac-md5: Moved from ../.
45746         * modules/crypto/hmac-md5-tests: Moved from ../.
45747         * modules/crypto/hmac-sha1: Moved from ../.
45748         * modules/crypto/hmac-sha1-tests: Moved from ../.
45749         * modules/crypto/md2: Moved from ../.
45750         * modules/crypto/md2-tests: Moved from ../.
45751         * modules/crypto/md4: Moved from ../.
45752         * modules/crypto/md4-tests: Moved from ../.
45753         * modules/crypto/md5: Moved from ../.
45754         * modules/crypto/md5-tests: Moved from ../.
45755         * modules/crypto/memxor: Moved from ../.
45756         * modules/crypto/rijndael: Moved from ../.
45757         * modules/crypto/rijndael-tests: Moved from ../.
45758         * modules/crypto/sha1: Moved from ../.
45759
45760 2007-03-30  James Youngman  <jay@gnu.org>
45761
45762         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45763         rename() to change the ctime of a file (because ctime is unaffected
45764         by rename on jfs2 on AIX 5.1).
45765         (main): Start by doing cleanup, in case a previous run failed leaving
45766         test files behind.
45767
45768 2007-03-31  Bruno Haible  <bruno@clisp.org>
45769
45770         Support old proprietary implementations of iconv.
45771         * modules/iconv_open: New file.
45772         * lib/iconv_.h: New file.
45773         * m4/iconv_h.m4: New file.
45774         * lib/iconv_open.c: New file.
45775         * lib/iconv_open-aix.gperf: New file.
45776         * lib/iconv_open-hpux.gperf: New file.
45777         * lib/iconv_open-irix.gperf: New file.
45778         * lib/iconv_open-osf.gperf: New file.
45779         * m4/iconv_open.m4: New file.
45780         * modules/linebreak (Depends-on): Add iconv_open.
45781         * modules/striconv (Depends-on): Likewise.
45782         * modules/striconveh (Depends-on): Likewise.
45783         * modules/unicodeio (Depends-on): Likewise.
45784         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45785         (iconv_t)(-1).
45786         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45787         conversion if cd is (iconv_t)(-1).
45788         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45789         is not possible.
45790
45791 2007-03-31  Bruno Haible  <bruno@clisp.org>
45792
45793         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45794         work on Solaris either. Protect also second use of "autodetect_jp".
45795
45796 2007-03-31  Bruno Haible  <bruno@clisp.org>
45797
45798         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45799         the function is not present.
45800
45801 2007-03-31  Bruno Haible  <bruno@clisp.org>
45802
45803         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45804         the function is not present.
45805
45806 2007-03-31  Bruno Haible  <bruno@clisp.org>
45807
45808         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45809         a bug in HP-UX iconv_open().
45810
45811 2007-03-31  Bruno Haible  <bruno@clisp.org>
45812
45813         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45814         (Mathematics <math.h>): New section, add fpieee.
45815         (Input/output <stdio.h>): Add fseterr.
45816         (Mathematics <math.h>): New section, add printf-frexp.
45817         (Container data structures): Add sublist.
45818         (Core language properties): Add fpucw, inline.
45819         (Functions for greatest-width integer types <inttypes.h>): Add
45820         imaxabs, imaxdiv, inttypes.
45821         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45822         isnanl-nolibm, ldexp.
45823         (Mathematics <math.h>): New section, add printf-frexpl.
45824         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45825         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45826         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45827         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45828         (Unicode string functions): Add unistr/u*-mbtoucr.
45829         (Java): Add javacomp-script, javaexec-script.
45830         (C#): Add csharpcomp-script, csharpexec-script.
45831         (Support for building libraries and executables): Add havelib,
45832         relocatable-*.
45833         (Support for maintaining and releasing projects): Renamed from
45834         'Support for maintaining and release projects'. Add announce-gen.
45835
45836 2007-03-31  Bruno Haible  <bruno@clisp.org>
45837
45838         * README: Talk primarily about git.
45839         (git and CVS): Renamed from CVS.
45840         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45841         gnulib is available through git.
45842         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45843
45844 2007-03-30  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45847         * lib/poll_.h: Likewise.
45848         * lib/stat_.h: Likewise.
45849         * lib/sys_time_.h: Likewise.
45850         * lib/sysexit_.h: Likewise.
45851         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45852         * lib/stdbool_.h: Likewise.
45853         * lib/byteswap_.h: Add double-inclusion guard.
45854
45855 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45856
45857         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45858
45859 2007-03-30  Karl Berry  <karl@gnu.org>
45860
45861         * config/srclist-update: double space after USA in the license
45862         substitution, since that's how it's usually (?) written.
45863
45864 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45865
45866         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45867         reported by Bruno Haible.
45868
45869 2007-03-29  Bruno Haible  <bruno@clisp.org>
45870
45871         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45872         a bug in AIX iconv().
45873
45874 2007-03-29  Bruno Haible  <bruno@clisp.org>
45875
45876         * modules/ldexpl-tests: New file.
45877         * tests/test-ldexpl.c: New file.
45878
45879 2007-03-29  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/ldexpl.c: Include fpucw.h.
45882         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45883         multiplication.
45884         * modules/ldexpl (Depends-on): Add fpucw.
45885
45886 2007-03-29  Bruno Haible  <bruno@clisp.org>
45887
45888         * modules/ldexpl: New file.
45889         * m4/ldexpl.m4: New file.
45890         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45891         set.
45892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45893         REPLACE_LDEXPL.
45894         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45895         REPLACE_LDEXPL.
45896         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45897         gl_FUNC_LDEXPL_WORKS.
45898         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45899         * modules/mathl (Files): Remove lib/ldexpl.c.
45900         (Depends-on): Add ldexpl.
45901
45902 2007-03-29  Bruno Haible  <bruno@clisp.org>
45903
45904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45905
45906 2007-03-29  Bruno Haible  <bruno@clisp.org>
45907
45908         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45909         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45910         and possibly also HP-UX.
45911         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45912         work on AIX, IRIX, HP-UX, OSF/1.
45913         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45914         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45915         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45916         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45917         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45918         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45919
45920 2007-03-29  Bruno Haible  <bruno@clisp.org>
45921
45922         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45923
45924 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45927         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45928
45929 2007-03-29  Eric Blake  <ebb9@byu.net>
45930
45931         * lib/acl-internal.h: Remove redundant include.
45932         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45933         Cygwin when a file is locked.
45934
45935 2007-03-29  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45938         file.
45939         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45940
45941 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45942
45943         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45944         try to remove a parent directory if the child couldn't be removed
45945         (except for the first rmdir, which could fail because the child
45946         doesn't exist).  Problem reported by Jeff Blaine in
45947         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45948
45949 2007-03-28  Bruno Haible  <bruno@clisp.org>
45950
45951         * lib/striconveh.c (utf8conv_carefully): New function.
45952         (mem_cd_iconveh_internal): Invoke it.
45953
45954 2007-03-28  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45957         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45958         input.
45959         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45960         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45961         unistr/u8-uctomb.
45962
45963 2007-03-28  Bruno Haible  <bruno@clisp.org>
45964
45965         * modules/unistr/u8-mbtoucr: New file.
45966         * lib/unistr/u8-mbtoucr.c: New file.
45967         * modules/unistr/u16-mbtoucr: New file.
45968         * lib/unistr/u16-mbtoucr.c: New file.
45969         * modules/unistr/u16-mbtoucr: New file.
45970         * lib/unistr/u16-mbtoucr.c: New file.
45971         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45972
45973 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45974             Bruno Haible  <bruno@clisp.org>
45975
45976         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45977         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45978         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45979
45980         * m4/stdio_h.m4: Add stubs for vasprintf too.
45981
45982         * modules/stdio: Support vasprintf in sed command.
45983
45984         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45985         vasprintf.h.  Add stdio module indicator.
45986
45987         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45988         vasprintf.h.
45989
45990         * lib/vasprintf.h: File removed.
45991
45992         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45993         * lib/vasprintf.c: Ditto.
45994         * lib/xvasprintf.c: Ditto.
45995         * tests/test-vasprintf-posix.c: Ditto.
45996         * tests/test-vasprintf.c: Ditto.
45997
45998 2007-03-27  Bruno Haible  <bruno@clisp.org>
45999
46000         Make vasnprintf multithread-safe.
46001         * lib/vasnprintf.c (decimal_point_char): New function.
46002         (VASNPRINTF): Use it.
46003         Suggested by Simon Josefsson.
46004
46005 2007-03-27  Eric Blake  <ebb9@byu.net>
46006
46007         Support sub-second birthtime on cygwin.
46008         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46009         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46010         (get_stat_birthtime): Also work with st_birthtim.
46011
46012 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46013
46014         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46015         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46016         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46017         (get_stat_birthtime_ns): Simplify compile-time tests.
46018         (get_stat_birthtime): Change the API to look like
46019         get_stat_mtime etc., except return a negative tv_nsec on error.
46020         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46021         Don't check for "spare" fields.
46022         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46023         or for struct stat.st_birthtime, as these tests aren't used.
46024         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46025
46026 2007-03-27  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/stat-time.h: Include <sys/stat.h>.
46029
46030 2007-03-27  James Youngman  <jay@gnu.org>
46031
46032         * lib/stat-time.h (get_stat_birthtime): New function for
46033           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46034         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46035           and its variants.
46036         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46037         * modules/stat-time-test: New file.
46038         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46039
46040 2007-03-26  Bruno Haible  <bruno@clisp.org>
46041
46042         Better support of signalling NaNs.
46043         * lib/atanl.c: Include isnanl.h.
46044         (atanl): Perform test for NaN at the beginning of the function and
46045         through a call to isnanl.
46046         * lib/cosl.c: Include isnanl.h.
46047         (cosl): Perform test for NaN at the beginning of the function and
46048         through a call to isnanl.
46049         * lib/ldexpl.c: Include isnanl.h.
46050         (ldexpl): Perform test for NaN through a call to isnanl.
46051         * lib/logl.c: Include isnanl.h.
46052         (logl): Perform test for NaN at the beginning of the function and
46053         through a call to isnanl.
46054         * lib/sinl.c: Include isnanl.h.
46055         (sinl): Perform test for NaN at the beginning of the function and
46056         through a call to isnanl.
46057         * lib/sqrtl.c: Include isnanl.h.
46058         (sqrtl): Perform test for NaN at the beginning of the function and
46059         through a call to isnanl.
46060         * lib/tanl.c: Include isnanl.h.
46061         (tanl): Perform test for NaN at the beginning of the function and
46062         through a call to isnanl.
46063         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46064         * modules/mathl (Depends-on): Add isnanl.
46065
46066 2007-03-26  Eric Blake  <ebb9@byu.net>
46067
46068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46069         regression in logic sense of previous patch.
46070
46071 2007-03-26  Bruno Haible  <bruno@clisp.org>
46072
46073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46074         unportable shell command "if ! ...".
46075         Reported by Ralf Wildenhues.
46076
46077 2007-03-25  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46080         <sysexits.h> file, and only add EX_CONFIG.
46081         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46082         absolute file name and whether it is sufficient. Substitute also
46083         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46084         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46085         ABSOLUTE_SYSEXITS_H into sysexits.h.
46086
46087 2007-03-25  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46090         hints is NULL.
46091
46092 2007-03-25  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46095         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46096
46097 2007-03-25  Bruno Haible  <bruno@clisp.org>
46098
46099         * lib/vasnprintf.c: Include langinfo.h.
46100         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46101         multithread-safe.
46102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46111         Reported by Simon Josefsson.
46112
46113 2007-03-25  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46116         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46117         * modules/vasnprintf (Depends-on): Add stdint.
46118
46119 2007-03-25  Bruno Haible  <bruno@clisp.org>
46120
46121         * modules/fpieee: New file.
46122         * m4/fpieee.m4: New file.
46123         * modules/isnan-nolibm (Depends-on): Add fpieee.
46124         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46125         * modules/isnanl (Depends-on): Add fpieee.
46126
46127 2007-03-25  Bruno Haible  <bruno@clisp.org>
46128
46129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46130
46131 2007-03-25  Bruno Haible  <bruno@clisp.org>
46132
46133         Avoid test failures on IRIX 6.5.
46134         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46135         (main): Use it.
46136         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46137         macros.
46138         (main): Use them.
46139
46140 2007-03-25  Bruno Haible  <bruno@clisp.org>
46141
46142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46143         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46144         exists but doesn't work.
46145         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46146         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46148         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46149
46150 2007-03-25  Bruno Haible  <bruno@clisp.org>
46151
46152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46153         returns inf. Needed on IRIX 6.5.
46154
46155 2007-03-25  Bruno Haible  <bruno@clisp.org>
46156
46157         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46158         (main): Use isnanl instead of x != x idiom.
46159         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46160
46161         * tests/test-frexp.c: Include isnan.h.
46162         (main): Use isnan instead of x != x idiom.
46163         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46164
46165 2007-03-25  Bruno Haible  <bruno@clisp.org>
46166
46167         * tests/test-frexp.c (NaN): New function/macro.
46168         (main): Use it instead of 0.0 / 0.0.
46169         * tests/test-isnan.c (NaN): New function/macro.
46170         (main): Use it instead of 0.0 / 0.0.
46171         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46172         (test_function): Use it instead of 0.0 / 0.0.
46173         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46174         (test_function): Use it instead of 0.0 / 0.0.
46175         * tests/test-snprintf-posix.h (NaN): New function/macro.
46176         (test_function): Use it instead of 0.0 / 0.0.
46177         * tests/test-sprintf-posix.h (NaN): New function/macro.
46178         (test_function): Use it instead of 0.0 / 0.0.
46179         * tests/test-fprintf-posix.h (NaN): New function/macro.
46180         (test_function): Use it instead of 0.0 / 0.0.
46181         * tests/test-printf-posix.h (NaN): New function/macro.
46182         (test_function): Use it instead of 0.0 / 0.0.
46183
46184         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46185
46186 2007-03-25  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46189
46190 2007-03-25  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/regexec.c (merge_state_with_log): Make static.
46193
46194 2007-03-25  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/trigl.c (kernel_rem_pio2): Make static.
46197
46198 2007-03-25  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/sincosl.c (sincosl_table): Make static.
46201
46202 2007-03-25  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46205         if the compiler does not support C99.
46206
46207 2007-03-25  Bruno Haible  <bruno@clisp.org>
46208
46209         * modules/time (Makefile.am): Ensure all rule action lines start with a
46210         tab.
46211
46212 2007-03-24  Bruno Haible  <bruno@clisp.org>
46213
46214         * modules/tsearch-tests: New file.
46215         * tests/test-tsearch.sh: New file.
46216         * tests/test-tsearch.c: New file, mostly copied from glibc.
46217
46218         * modules/search-tests: New file.
46219         * tests/test-search.c: New file.
46220
46221         * modules/search: New file.
46222         * lib/search_.h: New file, incorporating lib/tsearch.h.
46223         * m4/search_h.m4: New file.
46224         * lib/tsearch.h: Remove file.
46225         * lib/tsearch.c: Include search.h instead of tsearch.h.
46226         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46227         HAVE_TSEARCH.
46228         * modules/tsearch (Files): Remove lib/tsearch.h.
46229         (Depends-on): Add search.
46230         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46231         (Include): Change tsearch.h into search.h.
46232
46233 2007-03-24  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/fpucw: New file.
46236         * lib/fpucw.h: New file.
46237         * lib/frexp.c: Include fpucw.h.
46238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46239         (FUNC): Use them.
46240         * lib/printf-frexp.c: Include fpucw.h.
46241         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46242         (FUNC): Use them.
46243         * lib/vasnprintf.c: Include fpucw.h.
46244         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46245         'long double' calculations.
46246         * tests/test-frexpl.c: Include fpucw.h.
46247         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46248         * tests/test-printf-frexpl.c: Include fpucw.h.
46249         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46250         * modules/frexpl (Depends-on): Add fpucw.
46251         * modules/printf-frexpl (Depends-on): Likewise.
46252         * modules/fprintf-posix (Depends-on): Likewise.
46253         * modules/snprintf-posix (Depends-on): Likewise.
46254         * modules/sprintf-posix (Depends-on): Likewise.
46255         * modules/vasnprintf-posix (Depends-on): Likewise.
46256         * modules/vasprintf-posix (Depends-on): Likewise.
46257         * modules/vfprintf-posix (Depends-on): Likewise.
46258         * modules/vsnprintf-posix (Depends-on): Likewise.
46259         * modules/vsprintf-posix (Depends-on): Likewise.
46260         * modules/frexpl-tests (Depends-on): Likewise.
46261         * modules/printf-frexpl-tests (Depends-on): Likewise.
46262
46263 2007-03-24  Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/float+.h: New file.
46266         * lib/isnan.c: Include float+.h.
46267         (SIZE): New macro.
46268         (FUNC): Compare only SIZE bytes of the value.
46269         * lib/vasnprintf.c: Include float+.h.
46270         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46271         SIZEOF_LDBL or SIZEOF_DBL bytes.
46272         * modules/isnan-nolibm (Files): Add lib/float+.h.
46273         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46274         * modules/isnanl (Files): Add lib/float+.h.
46275         * modules/vasnprintf (Files): Add lib/float+.h.
46276
46277 2007-03-24  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46280         include isnanl-nolibm.h.
46281
46282 2007-03-24  Bruno Haible  <bruno@clisp.org>
46283
46284         * tests/test-read-file.c (main): Don't produce spurious output for
46285         expected situations. Make the test fail if it encountered unexpected
46286         results.
46287
46288 2007-03-24  Bruno Haible  <bruno@clisp.org>
46289
46290         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46291         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46292
46293 2007-03-24  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46296
46297 2007-03-24  Bruno Haible  <bruno@clisp.org>
46298
46299         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46300         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46301
46302         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46303         * modules/utf8-ucs4: Turn into a symbolic link to module
46304         unistr/u8-mbtouc.
46305
46306         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46307         utf8-ucs4-unsafe.
46308         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46309         unistr/u8-mbtouc-unsafe.
46310
46311         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46312         * modules/utf16-ucs4: Turn into a symbolic link to module
46313         unistr/u16-mbtouc.
46314
46315         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46316         utf16-ucs4-unsafe.
46317         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46318         unistr/u16-mbtouc-unsafe.
46319
46320         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46321         * modules/ucs4-utf8: Turn into a symbolic link to module
46322         unistr/u8-ubtomb.
46323
46324         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46325         * modules/ucs4-utf16: Turn into a symbolic link to module
46326         unistr/u16-ubtomb.
46327
46328 2007-03-24  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46331         Enable the function only if HAVE_INLINE.
46332         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46333         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46334         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46335         Enable the function only if HAVE_INLINE.
46336         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46337         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46338         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46339         Enable the function only if HAVE_INLINE.
46340         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46341         Enable the function only if HAVE_INLINE.
46342         * modules/utf8-ucs4: Update.
46343         * modules/utf8-ucs4-unsafe: Update.
46344         * modules/utf16-ucs4: Update.
46345         * modules/utf16-ucs4-unsafe: Update.
46346         * modules/ucs4-utf8: Update.
46347         * modules/ucs4-utf16: Update.
46348
46349 2007-03-24  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/utf8-ucs4.h: Remove file.
46352         * lib/utf8-ucs4-unsafe.h: Remove file.
46353         * lib/utf16-ucs4.h: Remove file.
46354         * lib/utf16-ucs4-unsafe.h: Remove file.
46355         * lib/ucs4-utf8.h: Remove file.
46356         * lib/ucs4-utf16.h: Remove file.
46357         * lib/unistr.h: Include their previous contents.
46358         * m4/utf-ucs4.m4: Remove file.
46359         * m4/ucs4-utf.m4: Remove file.
46360         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46361         (Depends-on): Add unistr/base.
46362         (configure.ac): Remove gl_UTF_UCS4.
46363         (Makefile.am): Update.
46364         (Include): Change to unistr.h.
46365         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46366         (Depends-on): Add unistr/base.
46367         (configure.ac): Remove gl_UTF_UCS4.
46368         (Makefile.am): Update.
46369         (Include): Change to unistr.h.
46370         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46371         (Depends-on): Add unistr/base.
46372         (configure.ac): Remove gl_UTF_UCS4.
46373         (Makefile.am): Update.
46374         (Include): Change to unistr.h.
46375         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46376         (Depends-on): Add unistr/base.
46377         (configure.ac): Remove gl_UTF_UCS4.
46378         (Makefile.am): Update.
46379         (Include): Change to unistr.h.
46380         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46381         (Depends-on): Add unistr/base.
46382         (configure.ac): Remove gl_UCS4_UTF.
46383         (Makefile.am): Update.
46384         (Include): Change to unistr.h.
46385         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46386         (Depends-on): Add unistr/base.
46387         (configure.ac): Remove gl_UCS4_UTF.
46388         (Makefile.am): Update.
46389         (Include): Change to unistr.h.
46390         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46391         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46392         utf8-ucs4-unsafe.h.
46393         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46394         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46395         utf16-ucs4-unsafe.h.
46396         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46397         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46398         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46399         * lib/unistr/u8-strchr.c: Likewise.
46400         * lib/unistr/u8-strrchr.c: Likewise.
46401         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46402         * lib/unistr/u16-strchr.c: Likewise.
46403         * lib/unistr/u16-strrchr.c: Likewise.
46404         * lib/striconveh.c: Update.
46405         * lib/linebreak.c: Update.
46406
46407 2007-03-24  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46410         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46411
46412 2007-03-22  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46415
46416 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46417
46418         * MODULES.html.sh (File system functions): New module write-any-file.
46419         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46420         * m4/write-any-file.m4: New files.
46421
46422 2007-03-23  Eric Blake  <ebb9@byu.net>
46423
46424         * gnulib-tool: Rearrange space-tab sequences, since some editors
46425         like to eat them.
46426
46427 2007-03-23  Eric Blake  <ebb9@byu.net>
46428
46429         * lib/version-etc.c (version_etc_va): Update license wording to
46430         be more concise.  Recommended by Richard Stallman.
46431
46432 2007-03-22  Bruno Haible  <bruno@clisp.org>
46433
46434         * lib/poll.c (MSG_PEEK): New fallback definition.
46435
46436 2007-03-22  Bruno Haible  <bruno@clisp.org>
46437
46438         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46439         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46440         (main): Update.
46441         Fixes a compilation error on BeOS.
46442
46443 2007-03-22  Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/frexpl-tests: New file.
46446         * tests/test-frexpl.c: New file.
46447
46448         * modules/frexpl: New file.
46449         * m4/frexpl.m4: New file.
46450         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46451         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46453         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46454         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46455         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46456
46457 2007-03-22  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/frexpl.c: Share code with lib/frexp.c.
46460         * modules/mathl (Files): Add lib/frexp.c.
46461         (Depends-on): Add isnanl-nolibm.
46462
46463 2007-03-22  Bruno Haible  <bruno@clisp.org>
46464
46465         * modules/printf-frexp (Files): Add m4/frexp.m4.
46466         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46467         only if the found frexp function actually works.
46468
46469 2007-03-22  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/frexp.c: Remove older implementation that uses divisions.
46472
46473 2007-03-21  Bruno Haible  <bruno@clisp.org>
46474
46475         * modules/frexp-tests: New file.
46476         * tests/test-frexp.c: New file.
46477
46478         * modules/frexp: New file.
46479         * lib/frexp.c: New file.
46480         * m4/frexp.m4: New file.
46481         * lib/math_.h (frexp): New declaration.
46482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46483         REPLACE_FREXP.
46484         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46485
46486 2007-03-21  Bruno Haible  <bruno@clisp.org>
46487
46488         * modules/isnanl-tests: New file.
46489         * tests/test-isnanl.c: New file.
46490
46491         * modules/isnanl: New file.
46492         * lib/isnanl.h: New file.
46493         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46494         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46495         gl_FUNC_ISNANL_WORKS.
46496         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46497         New macros.
46498
46499 2007-03-21  Bruno Haible  <bruno@clisp.org>
46500
46501         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46502         lib/isnanl.h.
46503         (Include): Update.
46504         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46505         * lib/vasnprintf.c: Update.
46506         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46507         tests/test-isnanl.h, remove tests/test-isnanl.c.
46508         (Makefile.am): Update.
46509         * tests/test-isnanl-nolibm.c: New file.
46510         * tests/test-isnanl.h: New file.
46511         * tests/test-isnanl.c: Remove file.
46512
46513 2007-03-21  Jim Meyering  <jim@meyering.net>
46514
46515         When trying to open ".", treat ESTALE like EACCES.
46516         * lib/savewd.c (savewd_save): Resort to forking not just upon
46517         failure with EACCES, but also when errno is ESTALE.
46518
46519 2007-03-20  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46522         Needed on AIX 5.1. Reported by Matthew Woehlke.
46523
46524 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46525
46526         Suggestions by Bruno Haible:
46527         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46528         our own.
46529         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46530         * modules/acl (Depends-on): Add gettext.
46531
46532 2007-03-19  Bruno Haible  <bruno@clisp.org>
46533
46534         * modules/iconvme: Remove file.
46535         * lib/iconvme.h: Remove file.
46536         * lib/iconvme.c: Remove file.
46537         * m4/iconvme.m4: Remove file.
46538
46539 2007-03-19  Bruno Haible  <bruno@clisp.org>
46540
46541         * doc/relocatable-maint.texi: Break long shell script line.
46542         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46543
46544 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46545
46546         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46547         handle file_has_acl.
46548         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46549         * lib/acl.c: Move header inclusions and related macro defns into
46550         lib/acl-internal.h.
46551         (S_ISLNK): Remove defn, since that's now done for us.
46552         (file_has_acl): Move to lib/file-has-acl.c.
46553         Call acl_trivial if available.  This is the crucial part of the fix.
46554         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46555         shared within the library.  Rewrite a bit, partly to make it compatible
46556         with the GNU coding style.
46557         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46558         Remove unnecessary double-quotes.
46559         Don't test for acl_to_text; the build will catch that.
46560         Replace acl_entries if it doesn't exist and it is needed.
46561         Check for -lsec and acl_trivial (as used on Solaris 10).
46562         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46563         lib/file-has-acl.c.
46564         (Depends-on): Add sys_stat, for S_ISLNK.
46565
46566 2007-03-19  Ben Pfaff  <blp@gnu.org>
46567
46568         * doc/gnulib.texi: Fix typos.
46569         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46570
46571 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46572
46573         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46574         If size is zero here, buf must be zero.
46575
46576 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46577
46578         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46579         <bruno@clisp.org>.
46580
46581 2007-03-18  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46584         Suggested by Eric Blake.
46585
46586 2007-03-18  Ben Pfaff  <blp@gnu.org>
46587
46588         * doc/relocatable.texi: Recommend using as prefix a directory
46589         that does not exist and will never be created.  Based on
46590         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46591         and others.
46592
46593 2007-03-17  Bruno Haible  <bruno@clisp.org>
46594
46595         * lib/fchownat.c: Include lchown.h.
46596
46597 2007-03-17  Bruno Haible  <bruno@clisp.org>
46598
46599         Fix endless loop when the given allocated size was > INT_MAX.
46600         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46601         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46602         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46603         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46604         * lib/sprintf.c (sprintf): Likewise.
46605
46606 2007-03-17  Bruno Haible  <bruno@clisp.org>
46607
46608         * tests/test-argp-2.sh (func_compare): Output a context diff.
46609
46610 2007-03-17  Bruno Haible  <bruno@clisp.org>
46611
46612         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46613         locale's decimal-point character.
46614
46615 2007-03-17  Bruno Haible  <bruno@clisp.org>
46616
46617         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46618         before comparing it. Needed because on some platforms (e.g. x86) a
46619         'long double' occupies less bytes than sizeof (long double).
46620
46621 2007-03-17  Bruno Haible  <bruno@clisp.org>
46622
46623         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46624         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46625         * tests/test-getaddrinfo.c (simple): Likewise.
46626         * tests/test-read-file.c (main): Likewise.
46627
46628 2007-03-17  Bruno Haible  <bruno@clisp.org>
46629
46630         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46631
46632 2007-03-17  Bruno Haible  <bruno@clisp.org>
46633
46634         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46635         unused variable.
46636
46637 2007-03-17  Bruno Haible  <bruno@clisp.org>
46638
46639         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46640         * tests/test-c-strncasecmp.c: Likewise.
46641
46642 2007-03-17  Bruno Haible  <bruno@clisp.org>
46643
46644         * modules/stdlib (Depends-on): Add unistd.
46645         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46646         Needed for MacOS X 10.3.
46647
46648 2007-03-17  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46651
46652 2007-03-17  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46655
46656 2007-03-17  Bruno Haible  <bruno@clisp.org>
46657
46658         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46659         to reflect files copied from gnulib (with or without modifications).
46660         Suggested by Jim Meyering.
46661
46662 2007-03-17  Eric Blake  <ebb9@byu.net>
46663
46664         * NEWS: Document stdlib change from 2007-02-18.
46665
46666 2007-03-17  Jim Meyering  <jim@meyering.net>
46667
46668         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46669         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46670         someone uses a name containing shell meta-characters.
46671         Reported by Alfred M. Szmidt.
46672
46673         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46674
46675 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46676
46677         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46678         and copy gettext configuration files only if configure.ac contains
46679         a use of AM_GNU_GETTEXT_VERSION.
46680
46681 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46682
46683         * build-aux/bootstrap (gnulib_name): New variable.
46684         (gnulib_tool_options): Use it.
46685
46686 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46687
46688         * tests/test-des.c: Use new namespace.
46689
46690 2007-03-15  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46693         Reported by James Youngman <jay@gnu.org>.
46694
46695 2007-03-15  Bruno Haible  <bruno@clisp.org>
46696
46697         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46698         declared prototype. Needed with cc on OSF/1 5.1.
46699
46700 2007-03-15  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46703         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46704         (struct gl_list_implementation): Add dispose_fn argument to the
46705         'create_empty', 'create' methods.
46706         (struct gl_list_impl_base): Add field 'dispose_fn'.
46707         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46708         argument.
46709         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46710         dispose_fn argument.
46711         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46712         dispose_fn on the dropped values.
46713         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46714         dispose_fn argument.
46715         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46716         dropped values.
46717         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46718         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46719         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46720         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46721         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46722         argument.
46723         (gl_tree_list_free): Call dispose_fn on the dropped values.
46724         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46725         the dropped values.
46726         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46727         Add dispose_fn argument.
46728         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46729         Call dispose_fn on the dropped values.
46730         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46731         Add dispose_fn argument.
46732         (gl_sublist_create): Initialize the 'dispose_fn' field.
46733         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46734         * tests/test-array_list.c (main): Update.
46735         * tests/test-carray_list.c (main): Update.
46736         * tests/test-avltree_list.c (main): Update.
46737         * tests/test-rbtree_list.c (main): Update.
46738         * tests/test-avltreehash_list.c (main): Update.
46739         * tests/test-rbtreehash_list.c (main): Update.
46740         * tests/test-linked_list.c (main): Update.
46741         * tests/test-linkedhash_list.c (main): Update.
46742         * tests/test-array_oset.c (main): Update.
46743
46744 2007-03-15  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46747         (gl_oset_create_empty): Add dispose_fn argument.
46748         (struct gl_oset_implementation): Add dispose_fn argument to
46749         'create_empty' method.
46750         (struct gl_oset_impl_base): Add dispose_fn field.
46751         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46752         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46753         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46754         values.
46755         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46756         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46757         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46758         dropped value.
46759         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46760         dropped value.
46761         * tests/test-array_oset.c (main): Update.
46762         * tests/test-avltree_oset.c (main): Update.
46763         * tests/test-rbtree_oset.c (main): Update.
46764         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46765
46766 2007-03-13  Bruno Haible  <bruno@clisp.org>
46767
46768         * tests/test-stdbool.c (i): Update after last patch.
46769
46770 2007-03-12  Bruno Haible  <bruno@clisp.org>
46771
46772         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46773         the iswprint macro. Needed on Solaris 2.5.1.
46774
46775 2007-03-12  Bruno Haible  <bruno@clisp.org>
46776
46777         * tests/test-printf-frexp.c (main): Declare x as volatile.
46778
46779 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46780
46781         * doc/gnulib.texi (Build robot for gnulib): New section.
46782
46783 2007-03-12  Jim Meyering  <jim@meyering.net>
46784
46785         * build-aux/bootstrap: New file.
46786         * build-aux/bootstrap.conf: New file, from coreutils.
46787
46788 2007-03-11  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46791
46792 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46793
46794         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46795         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46796         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46797
46798 2007-03-11  Bruno Haible  <bruno@clisp.org>
46799
46800         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46801         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46802
46803 2007-03-11  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46806         formula. Needed for SunPRO C 5.0.
46807
46808 2007-03-11  Bruno Haible  <bruno@clisp.org>
46809
46810         * modules/long-options (Depends-on): Add getopt.
46811
46812 2007-03-11  Bruno Haible  <bruno@clisp.org>
46813
46814         * modules/modechange (Depends-on): Add stdbool.
46815
46816 2007-03-11  Bruno Haible  <bruno@clisp.org>
46817
46818         * modules/i-ring (Depends-on): Add stdbool.
46819
46820 2007-03-11  Bruno Haible  <bruno@clisp.org>
46821
46822         * modules/gc-des (Depends-on): Add stdbool.
46823
46824 2007-03-11  Bruno Haible  <bruno@clisp.org>
46825
46826         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46827
46828 2007-03-11  Bruno Haible  <bruno@clisp.org>
46829
46830         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46831
46832 2007-03-11  Bruno Haible  <bruno@clisp.org>
46833
46834         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46835
46836 2007-03-11  Bruno Haible  <bruno@clisp.org>
46837
46838         * lib/vasnprintf.c (sprintf): Undefine.
46839
46840 2007-03-11  Bruno Haible  <bruno@clisp.org>
46841
46842         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46843         initializers in SunPRO C and Compaq C compilers.
46844
46845 2007-03-11  Bruno Haible  <bruno@clisp.org>
46846
46847         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46848         decrementing code ANSI C compliant.
46849
46850 2007-03-11  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46853         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46854
46855 2007-03-11  Bruno Haible  <bruno@clisp.org>
46856
46857         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46858         <stdbool.h> substitute doesn't pass.
46859
46860 2007-03-11  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46863
46864 2007-03-11  Bruno Haible  <bruno@clisp.org>
46865
46866         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46867         script, for submission to autobuild.josefsson.org.
46868
46869 2007-03-10  Bruno Haible  <bruno@clisp.org>
46870
46871         * modules/canonicalize-lgpl-tests: New file.
46872         * tests/test-canonicalize-lgpl.sh: New file.
46873         * tests/test-canonicalize-lgpl.c: New file.
46874
46875         * modules/c-strcase-tests: New file.
46876         * tests/test-c-strcase.sh: New file.
46877         * tests/test-c-strcasecmp.c: New file.
46878         * tests/test-c-strncasecmp.c: New file.
46879
46880         * modules/atexit-tests: New file.
46881         * tests/test-atexit.sh: New file.
46882         * tests/test-atexit.c: New file.
46883
46884 2007-03-10  Bruno Haible  <bruno@clisp.org>
46885
46886         * tests/test-binary-io.sh: Use temporary filenames that are not so
46887         likely to clash with those of other tests (in a parallel make).
46888         * tests/test-binary-io.c: Likewise.
46889
46890 2007-03-10  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46893         fallback; use #error instead.
46894         Suggested by Simon Josefsson.
46895
46896 2007-03-10  Bruno Haible  <bruno@clisp.org>
46897
46898         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46899         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46900         first and the last.
46901
46902 2007-03-10  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46905
46906 2007-03-10  Bruno Haible  <bruno@clisp.org>
46907
46908         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46909         "make distcheck".
46910         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46911         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46912         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46913
46914 2007-03-10  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46917         variable.
46918         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46919         variable.
46920
46921 2007-03-09  Eric Blake  <ebb9@byu.net>
46922         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46923
46924         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46925         types are not being provided by gnulib.
46926         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46927         types are supported.
46928
46929 2007-03-10  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/stdio_.h (__attribute__): New macro.
46932         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46933         vsprintf): Specify __attribute__ __format__ for GCC.
46934         Suggested by Eric Blake.
46935
46936 2007-03-09  Bruno Haible  <bruno@clisp.org>
46937
46938         * modules/printf-posix-tests: New file.
46939         * tests/test-printf-posix.sh: New file.
46940         * tests/test-printf-posix.c: New file.
46941
46942         * modules/printf-posix: New file.
46943         * lib/printf.c: New file.
46944         * m4/printf-posix-rpl.m4: New file.
46945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46946         REPLACE_PRINTF.
46947         * lib/stdio_.h (printf): New declaration.
46948         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46949         ____strfmon____): New macros.
46950         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46951         REPLACE_PRINTF.
46952
46953 2007-03-09  Bruno Haible  <bruno@clisp.org>
46954
46955         * tests/test-vasnprintf-posix2.sh: New file.
46956         * tests/test-vasnprintf-posix2.c: New file.
46957         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46958         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46959         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46960
46961         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46962         a locale dependent decimal point, rather than always '.'.
46963
46964 2007-03-09  Eric Blake  <ebb9@byu.net>
46965
46966         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46967         spite of platforms like Tandem/NSK that define it to -1.
46968
46969 2007-03-08  Bruno Haible  <bruno@clisp.org>
46970
46971         * modules/vprintf-posix-tests: New file.
46972         * tests/test-vprintf-posix.sh: New file.
46973         * tests/test-vprintf-posix.c: New file.
46974         * tests/test-printf-posix.h: New file.
46975
46976         * modules/vprintf-posix: New file.
46977         * lib/vprintf.c: New file.
46978         * m4/vprintf-posix.m4: New file.
46979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46980         REPLACE_VPRINTF.
46981         * lib/stdio_.h (vprintf): New declaration.
46982         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46983         REPLACE_VPRINTF.
46984
46985 2007-03-08  Bruno Haible  <bruno@clisp.org>
46986
46987         * modules/fprintf-posix-tests: New file.
46988         * tests/test-fprintf-posix.sh: New file.
46989         * tests/test-fprintf-posix.c: New file.
46990
46991         * modules/fprintf-posix: New file.
46992         * lib/fprintf.c: New file.
46993         * m4/fprintf-posix.m4: New file.
46994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46995         REPLACE_FPRINTF.
46996         * lib/stdio_.h (fprintf): New declaration.
46997         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46998         REPLACE_FPRINTF.
46999
47000 2007-03-08  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/vfprintf-posix-tests: New file.
47003         * tests/test-vfprintf-posix.sh: New file.
47004         * tests/test-vfprintf-posix.c: New file.
47005         * tests/test-fprintf-posix.h: New file.
47006         * tests/test-fprintf-posix.out: New file.
47007
47008         * modules/vfprintf-posix: New file.
47009         * lib/vfprintf.c: New file.
47010         * m4/vfprintf-posix.m4: New file.
47011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47012         REPLACE_VFPRINTF.
47013         * lib/stdio_.h (vfprintf): New declaration.
47014         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47015         REPLACE_VFPRINTF.
47016
47017 2007-03-08  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47020
47021 2007-03-08  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47024         instead of 'expr' invocations.
47025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47030         Suggested by Paul Eggert.
47031
47032 2007-03-08  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/fseterr-tests: New file.
47035         * tests/test-fseterr.c: New file.
47036
47037         * modules/fseterr: New file.
47038         * lib/fseterr.h: New file.
47039         * lib/fseterr.c: New file.
47040
47041 2007-03-08  Bruno Haible  <bruno@clisp.org>
47042
47043         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47044         * lib/getopt_.h: Likewise.
47045         * lib/mbswidth.h: Likewise.
47046         * lib/setenv.h: Likewise.
47047         * lib/vasnprintf.h: Likewise.
47048         * lib/vasprintf.h: Likewise.
47049         * lib/verror.h: Likewise.
47050         * lib/xsetenv.h: Likewise.
47051         * lib/xvasprintf.h: Likewise.
47052
47053 2007-03-08  Jim Meyering  <jim@meyering.net>
47054
47055         * users.txt: Add parted.
47056
47057         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47058
47059 2007-03-07  Bruno Haible  <bruno@clisp.org>
47060
47061         * m4/printf.m4: Make the shell script snippets copy&pastable.
47062
47063 2007-03-02  Bruno Haible  <bruno@clisp.org>
47064
47065         * lib/netinet_in_.h: New file.
47066         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47067         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47068         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47069         (Depends-on): Add absolute-header.
47070         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47071         into netinet/in.h.
47072
47073 2007-03-03  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/sys_select_.h: New file.
47076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47077         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47078         * modules/sys_select (Files): Add lib/sys_select_.h.
47079         (Depends-on): Add absolute-header.
47080         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47081         into sys/select.h.
47082
47083 2007-03-02  Bruno Haible  <bruno@clisp.org>
47084
47085         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47086         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47087         values.
47088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47089         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47090         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47091         * modules/sys_socket (Depends-on): Add absolute-header.
47092         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47093         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47094         (Include): Remove requirement of inclusion of <sys/types.h>.
47095
47096 2007-03-02  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/byteswap_.h (bswap_32): Fix formula.
47099
47100 2007-03-06  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/sprintf-posix-tests: New file.
47103         * tests/test-sprintf-posix.c: New file.
47104
47105         * modules/sprintf-posix: New file.
47106         * lib/sprintf.c: New file.
47107         * m4/sprintf-posix.m4: New file.
47108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47109         REPLACE_SPRINTF.
47110         * lib/stdio_.h (sprintf): New declaration.
47111         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47112         REPLACE_SPRINTF.
47113
47114 2007-03-06  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/vsprintf-posix-tests: New file.
47117         * tests/test-vsprintf-posix.c: New file.
47118         * tests/test-sprintf-posix.h: New file.
47119
47120         * modules/vsprintf-posix: New file.
47121         * lib/vsprintf.c: New file.
47122         * m4/vsprintf-posix.m4: New file.
47123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47124         REPLACE_VSPRINTF.
47125         * lib/stdio_.h (vsprintf): New declaration.
47126         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47127         REPLACE_VSPRINTF.
47128
47129 2007-03-06  Bruno Haible  <bruno@clisp.org>
47130
47131         * modules/vsnprintf (Depend-on): Remove minmax.
47132
47133 2007-03-06  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/snprintf-posix-tests: New file.
47136         * tests/test-snprintf-posix.c: New file.
47137
47138         * modules/snprintf-posix: New file.
47139         * m4/snprintf-posix.m4: New file.
47140         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47141         gl_FUNC_SNPRINTF.
47142         (gl_FUNC_SNPRINTF): Invoke it.
47143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47144         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47145         is set.
47146         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47147
47148 2007-03-06  Bruno Haible  <bruno@clisp.org>
47149
47150         * modules/vsnprintf-posix-tests: New file.
47151         * tests/test-vsnprintf-posix.c: New file.
47152         * tests/test-snprintf-posix.h: New file.
47153
47154         * modules/vsnprintf-posix: New file.
47155         * m4/vsnprintf-posix.m4: New file.
47156         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47157         gl_FUNC_VSNPRINTF.
47158         (gl_FUNC_VSNPRINTF): Invoke it.
47159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47160         * lib/stdio_.h (vsnprintf): Define as a replacement if
47161         REPLACE_VSNPRINTF is set.
47162         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47163
47164 2007-03-06  Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47168
47169 2007-03-06  Bruno Haible  <bruno@clisp.org>
47170
47171         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47172         (asinl): Declare also if HAVE_DECL_ASINL is set.
47173         (atanl): Declare also if HAVE_DECL_ATANL is set.
47174         (ceill): Declare also if HAVE_DECL_CEILL is set.
47175         (cosl): Declare also if HAVE_DECL_COSL is set.
47176         (expl): Declare also if HAVE_DECL_EXPL is set.
47177         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47178         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47179         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47180         (logl): Declare also if HAVE_DECL_LOGL is set.
47181         (sinl): Declare also if HAVE_DECL_SINL is set.
47182         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47183         (tanl): Declare also if HAVE_DECL_TANL is set.
47184         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47186         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47187         declaration of frexpl, ldexpl.
47188         * modules/printf-frexpl (Depends-on): Add math.
47189         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47190
47191 2007-03-05  Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47194         frexpl and ldexpl are declared.
47195         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47196
47197 2007-03-05  Bruno Haible  <bruno@clisp.org>
47198
47199         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47200         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47201
47202 2007-03-05  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/stdio_.h: Include <stddef.h>.
47205
47206 2007-03-05  Bruno Haible  <bruno@clisp.org>
47207
47208         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47209
47210 2007-03-05  Bruno Haible  <bruno@clisp.org>
47211
47212         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47213         NetBSD 4, from Ralf Wildenhues.
47214
47215 2007-03-04  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/vasprintf.h: Update #if logic for the case when the functions
47218         exist but are overridden.
47219
47220 2007-03-04  Bruno Haible  <bruno@clisp.org>
47221
47222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47223         implementations: glibc-2.4 and MacOS X 10.3.
47224         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47225         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47226         * tests/test-vasprintf-posix.c (test_function): Likewise.
47227
47228 2007-03-04  Bruno Haible  <bruno@clisp.org>
47229
47230         * modules/vasprintf-posix-tests: New file.
47231         * tests/test-vasprintf-posix.c: New file.
47232
47233         * modules/vasprintf-posix: New file.
47234         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47235         defined.
47236         * m4/vasprintf-posix.m4: New file.
47237         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47238         gl_FUNC_VASPRINTF.
47239         (gl_FUNC_VASPRINTF): Invoke it.
47240         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47241         here.
47242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47243
47244 2007-03-04  Bruno Haible  <bruno@clisp.org>
47245
47246         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47247         REPLACE_GETTIMEOFDAY.
47248         * modules/sys_time (Makefile.am): Likewise.
47249         * m4/sys_time_h.m4: Likewise.
47250         * m4/gettimeofday.m4: Likewise.
47251
47252 2007-03-04  Bruno Haible  <bruno@clisp.org>
47253
47254         * modules/vasnprintf-posix-tests: New file.
47255         * tests/test-vasnprintf-posix.c: New file.
47256
47257         * modules/vasnprintf-posix: New file.
47258         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47259         printf-frexpl.h.
47260         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47261         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47262         REPLACE_VASNPRINTF is defined.
47263         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47264         gl_FUNC_VASNPRINTF.
47265         (gl_FUNC_VASNPRINTF): Invoke it.
47266         * m4/vasnprintf-posix.m4: New file.
47267         * m4/printf.m4: New file.
47268
47269 2007-03-04  Bruno Haible  <bruno@clisp.org>
47270
47271         Compile progreloc.c only if --enable-relocatable is specified.
47272         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47273         if --enable-relocatable was specified.
47274         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47275         lib_SOURCES.
47276
47277 2007-03-04  Jim Meyering  <jim@meyering.net>
47278
47279         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47280         Use it consistently, rather than enumerating errno constants.
47281
47282 2007-03-04  Bruno Haible  <bruno@clisp.org>
47283
47284         * modules/xvasprintf-tests: New file.
47285         * tests/test-xvasprintf.c: New file.
47286
47287         * modules/vasprintf-tests: New file.
47288         * tests/test-vasprintf.c: New file.
47289
47290         * modules/vasnprintf-tests: New file.
47291         * tests/test-vasnprintf.c: New file.
47292
47293         * modules/vsnprintf-tests: New file.
47294         * tests/test-vsnprintf.c: New file.
47295
47296         * modules/snprintf-tests: New file.
47297         * tests/test-snprintf.c: New file.
47298
47299 2007-03-04  Bruno Haible  <bruno@clisp.org>
47300
47301         Compile relocatable.c only if --enable-relocatable is specified.
47302         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47303         gl_RELOCATABLE_LIBRARY.
47304         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47305         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47306         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47307         gl_RELOCATABLE_LIBRARY.
47308         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47309         (Makefile.am): Remove lib_SOURCES.
47310         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47311         gl_RELOCATABLE_LIBRARY.
47312         (Makefile.am): Remove lib_SOURCES.
47313         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47314         always.
47315         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47316         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47317
47318 2007-03-04  Bruno Haible  <bruno@clisp.org>
47319
47320         * modules/argmatch-tests: New file.
47321         * tests/test-argmatch.c: New file.
47322
47323         * tests/test-allocsa.c (main): Halve the number of loop runs.
47324
47325         * modules/alloca-opt-tests: New file.
47326         * tests/test-alloca-opt.c: New file.
47327
47328 2007-03-04  Jim Meyering  <jim@meyering.net>
47329
47330         Work around difference between Linux ACLs and Solaris 10 ZFS.
47331         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47332         for EINVAL.
47333
47334 2007-03-03  Bruno Haible  <bruno@clisp.org>
47335
47336         * modules/relocatable-prog (Depends-on): Add back progreloc's
47337         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47338
47339 2007-03-03  Bruno Haible  <bruno@clisp.org>
47340
47341         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47342         * modules/relocatable-lib: New file.
47343
47344 2007-03-03  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/relocatable-prog: Renamed from modules/relocatable.
47347         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47348
47349 2007-03-03  Bruno Haible  <bruno@clisp.org>
47350
47351         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47352         m4/relocatable-lib.m4.
47353         (Depends-on): Remove 'relocatable'.
47354         (configure.ac): Add gl_RELOCATABLE_NOP.
47355
47356 2007-03-03  Bruno Haible  <bruno@clisp.org>
47357
47358         * modules/relocatable-prog-wrapper: New file.
47359         * modules/relocatable (Depends-on): Add it. Remove all other
47360         dependencies except progname.
47361         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47362
47363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47364         (gl_FUNC_STRERROR): Nop.
47365         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47366
47367         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47368         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47369
47370         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47371         (gl_FUNC_READLINK): Update.
47372
47373         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47374
47375 2007-03-03  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47378         * modules/xreadlink (Depends-on): Add unistd.
47379         * modules/xreadlink-with-size (Depends-on): Likewise.
47380
47381 2007-03-03  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47384         extracted from gt_FUNC_SETENV.
47385         (gt_FUNC_SETENV): Remove macro.
47386         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47387         remove gt_FUNC_SETENV.
47388
47389 2007-03-03  Bruno Haible  <bruno@clisp.org>
47390
47391         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47392         ENABLE_RELOCATABLE here.
47393         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47394
47395 2007-03-03  Bruno Haible  <bruno@clisp.org>
47396
47397         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47398         * tests/test-rbtreehash_list.c: Include progname.h.
47399         (main): Call set_program_name.
47400
47401         * modules/rbtree-oset-tests (Depends-on): Add progname.
47402         * tests/test-rbtree_oset.c: Include progname.h.
47403         (main): Call set_program_name.
47404
47405         * modules/rbtree-list-tests (Depends-on): Add progname.
47406         * tests/test-rbtree_list.c: Include progname.h.
47407         (main): Call set_program_name.
47408
47409         * modules/linked-list-tests (Depends-on): Add progname.
47410         * tests/test-linked_list.c: Include progname.h.
47411         (main): Call set_program_name.
47412
47413 2007-03-03  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47416         All uses of __restrict changed to _Restrict_.
47417         * lib/glob_.h (__restrict): Remove macro.
47418
47419 2007-03-02  Bruno Haible  <bruno@clisp.org>
47420
47421         * modules/gettext (configure.ac): Require gettext infrastructure
47422         from version 0.16.1.
47423
47424 2007-03-02  Bruno Haible  <bruno@clisp.org>
47425
47426         * modules/linkedhash-list-tests (Depends-on): Add progname.
47427         * tests/test-linkedhash_list.c: Include progname.h.
47428         (main): Call set_program_name.
47429
47430         * modules/carray-list-tests (Depends-on): Add progname.
47431         * tests/test-carray_list.c: Include progname.h.
47432         (main): Call set_program_name.
47433
47434         * modules/avltreehash-list-tests (Depends-on): Add progname.
47435         * tests/test-avltreehash_list.c: Include progname.h.
47436         (main): Call set_program_name.
47437
47438         * modules/avltree-oset-tests (Depends-on): Add progname.
47439         * tests/test-avltree_oset.c: Include progname.h.
47440         (main): Call set_program_name.
47441
47442         * modules/avltree-list-tests (Depends-on): Add progname.
47443         * tests/test-avltree_list.c: Include progname.h.
47444         (main): Call set_program_name.
47445
47446         * modules/array-oset-tests (Depends-on): Add progname.
47447         * tests/test-array_oset.c: Include progname.h.
47448         (main): Call set_program_name.
47449
47450         * modules/array-list-tests (Depends-on): Add progname.
47451         * tests/test-array_list.c: Include progname.h.
47452         (main): Call set_program_name.
47453
47454         * modules/argp-tests (Depends-on): Add progname.
47455         * tests/test-argp.c: Include argp.h first. Include progname.h.
47456         (main): Call set_program_name.
47457
47458 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * doc/gnulib-tool.texi (Initial import): Reword description of
47461         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47462         limited effect even if defined after the first system include.
47463
47464 2007-03-01  Bruno Haible  <bruno@clisp.org>
47465
47466         * build-aux/config.libpath: Update to libtool-1.5.22.
47467         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47468
47469 2007-03-01  Bruno Haible  <bruno@clisp.org>
47470
47471         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47472         foo_CFLAGS.
47473         Reported by Ralf Wildenhues.
47474
47475 2007-03-01  Bruno Haible  <bruno@clisp.org>
47476
47477         * build-aux/install-reloc: Remove object files left over by some
47478         compilers.
47479         Reported by Ralf Wildenhues.
47480
47481 2007-03-01  Bruno Haible  <bruno@clisp.org>
47482
47483         * build-aux/install-reloc: Break long lines.
47484
47485 2007-03-01  Bruno Haible  <bruno@clisp.org>
47486
47487         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47488         Reported by Ralf Wildenhues.
47489
47490 2007-03-01  Bruno Haible  <bruno@clisp.org>
47491
47492         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47493         include ordering constraints.
47494
47495 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47496
47497         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47499         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47500         as another example.
47501         * lib/time_.h: Fix misspelling.
47502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47503         Require gl_HEADER_TIME_H_DEFAULTS.
47504         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47505         * m4/time_r.m4 (gl_TIME_R): Likewise.
47506         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47507
47508 2007-03-01  Bruno Haible  <bruno@clisp.org>
47509
47510         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47511         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47512
47513 2007-03-01  Jim Meyering  <jim@meyering.net>
47514
47515         * modules/xreadlink (Maintainer): Add my name.
47516         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47517
47518 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47519             Bruno Haible  <bruno@clisp.org>
47520
47521         * build-aux/install-reloc: Compile also c-ctype.c.
47522         * build-aux/relocatable.sh.in: New file.
47523         * doc/relocatable.texi: New file.
47524         * doc/relocatable-maint.texi: New file.
47525         * doc/gnulib.texi: Include relocatable-maint.texi.
47526         * lib/progreloc.c: Include unistd.h unconditionally.
47527         * lib/relocwrapper.c: Include unistd.h unconditionally.
47528         Include c-ctype.h.
47529         (add_dotbin): Use c_tolower.
47530         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47531         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47532         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47533         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47534         to m4/relocatable-lib.m4.
47535         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47536         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47537         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47538         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47539         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47540         * modules/relocatable: New file.
47541         * modules/relocatable-lib: New file.
47542         * modules/relocatable-script: New file.
47543
47544 2007-02-28  Bruno Haible  <bruno@clisp.org>
47545
47546         Import --enable-relocatable infrastructure.
47547         * build-aux/config.libpath: New file, from GNU gettext.
47548         * build-aux/install-reloc: New file, from GNU gettext.
47549         * build-aux/reloc-ldflags: New file, from GNU gettext.
47550         * lib/relocatable.h: New file, from GNU gettext.
47551         * lib/relocatable.c: New file, from GNU gettext.
47552         * lib/relocwrapper.c: New file, from GNU gettext.
47553         * m4/relocatable.m4: New file, from GNU gettext.
47554
47555 2007-02-28  Bruno Haible  <bruno@clisp.org>
47556
47557         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47558
47559         * modules/xreadlink: New file, from GNU gettext with modifications.
47560         * lib/xreadlink.c: New file, from GNU gettext.
47561         * lib/xreadlink.h: Add comments.
47562         (xreadlink): New declaration.
47563
47564         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47565         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47566         lib/xreadlink-with-size.c.
47567         (configure.ac): Remove gl_XREADLINK invocation.
47568         (Makefile.am): Augment lib_SOURCES.
47569         * m4/xreadlink.m4: Remove file.
47570         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47571         (xreadlink_with_size): Renamed from xreadink.
47572         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47573         * modules/canonicalize (Depends-on): Replace xreadlink with
47574         xreadlink-with-size.
47575         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47576
47577 2007-02-25  Jim Meyering  <jim@meyering.net>
47578
47579         * build-aux/announce-gen: When complaining about excess arguments,
47580         list them.
47581
47582 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * README: Document signed integer overflow situation more
47585         accurately.
47586
47587 2007-02-25  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47590         'a' or 'A' conversion.
47591
47592 2007-02-25  Bruno Haible  <bruno@clisp.org>
47593
47594         * modules/filename: Renamed from modules/pathname.
47595         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47596         lib/concatpath.c with lib/concat-filename.c.
47597         (Makefile.am): Update.
47598         (Include): Replace pathname.h with filename.h.
47599         * lib/filename.h: Renamed from lib/pathname.h.
47600         (concatenated_filename): Renamed from concatenated_pathname.
47601         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47602         (concatenated_filename): Renamed from concatenated_pathname.
47603         * lib/findprog.c: Include filename.h instead of pathname.h.
47604         (find_in_path): Update.
47605         * lib/javacomp.c: Include filename.h instead of pathname.h.
47606         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47607         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47608         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47609         is_oldgcj_14_13_usable, is_javac_usable): Update.
47610         * lib/javaexec.c: Include filename.h instead of pathname.h.
47611         (execute_java_class): Update.
47612         * modules/findprog: Update.
47613         * modules/javacomp: Update.
47614         * modules/javaexec: Update.
47615         * MODULES.html.sh (File system functions): Add 'filename', remove
47616         'pathname'.
47617
47618 2007-02-25  Bruno Haible  <bruno@clisp.org>
47619
47620         * modules/printf-frexpl-tests: New file.
47621         * tests/test-printf-frexpl.c: New file.
47622
47623         * modules/printf-frexpl: New file.
47624         * lib/printf-frexpl.h: New file.
47625         * lib/printf-frexpl.c: New file.
47626         * m4/printf-frexpl.m4: New file.
47627
47628 2007-02-25  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/printf-frexp-tests: New file.
47631         * tests/test-printf-frexp.c: New file.
47632
47633         * modules/printf-frexp: New file.
47634         * lib/printf-frexp.h: New file.
47635         * lib/printf-frexp.c: New file.
47636         * m4/printf-frexp.m4: New file.
47637
47638 2007-02-25  Bruno Haible  <bruno@clisp.org>
47639
47640         Assume automake >= 1.10 for the tests.
47641         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47642         * modules/arctwo-tests: Likewise.
47643         * modules/argp-tests: Likewise.
47644         * modules/avltree-list-tests: Likewise.
47645         * modules/avltree-oset-tests: Likewise.
47646         * modules/avltreehash-list-tests: Likewise.
47647         * modules/carray-list-tests: Likewise.
47648         * modules/crc-tests: Likewise.
47649         * modules/des-tests: Likewise.
47650         * modules/gc-arcfour-tests: Likewise.
47651         * modules/gc-arctwo-tests: Likewise.
47652         * modules/gc-des-tests: Likewise.
47653         * modules/gc-hmac-md5-tests: Likewise.
47654         * modules/gc-hmac-sha1-tests: Likewise.
47655         * modules/gc-md2-tests: Likewise.
47656         * modules/gc-md4-tests: Likewise.
47657         * modules/gc-md5-tests: Likewise.
47658         * modules/gc-pbkdf2-sha1-tests: Likewise.
47659         * modules/gc-rijndael-tests: Likewise.
47660         * modules/gc-sha1-tests: Likewise.
47661         * modules/gc-tests: Likewise.
47662         * modules/getaddrinfo-tests: Likewise.
47663         * modules/hmac-md5-tests: Likewise.
47664         * modules/hmac-sha1-tests: Likewise.
47665         * modules/linked-list-tests: Likewise.
47666         * modules/linkedhash-list-tests: Likewise.
47667         * modules/lock-tests: Likewise.
47668         * modules/md2-tests: Likewise.
47669         * modules/md4-tests: Likewise.
47670         * modules/md5-tests: Likewise.
47671         * modules/rbtree-list-tests: Likewise.
47672         * modules/rbtree-oset-tests: Likewise.
47673         * modules/rbtreehash-list-tests: Likewise.
47674         * modules/read-file-tests: Likewise.
47675         * modules/rijndael-tests: Likewise.
47676         * modules/stdint-tests: Likewise.
47677         * modules/tls-tests: Likewise.
47678
47679 2007-02-24  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47682         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47683         function; instead check whether isnan with a double argument links.
47684         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47685         function; instead check whether isnan with a 'long double' argument
47686         links.
47687         Reported by Eric Blake <ebb9@byu.net>.
47688
47689 2007-02-24  Bruno Haible  <bruno@clisp.org>
47690
47691         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47692         defined.
47693         * lib/isnanl.c: Remove all code. Just include isnan.c.
47694         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47695
47696 2007-02-25  Jim Meyering  <jim@meyering.net>
47697
47698         Avoid conflicting types for 'unsetenv' on FreeBSD.
47699         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47700         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47701         in stdlib.h.
47702
47703 2007-02-24  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/isnanl-nolibm-tests: New file.
47706         * tests/test-isnanl.c: New file.
47707
47708         * modules/isnanl-nolibm: New file.
47709         * lib/isnanl.h: New file.
47710         * lib/isnanl.c: New file.
47711         * m4/isnanl.m4: New file.
47712
47713 2007-02-24  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/isnan-nolibm-tests: New file.
47716         * tests/test-isnan.c: New file.
47717
47718         * modules/isnan-nolibm: New file.
47719         * lib/isnan.h: New file.
47720         * lib/isnan.c: New file.
47721         * m4/isnan.m4: New file.
47722
47723 2007-02-24  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47726         assume that an exponent fits in 20 bits.
47727
47728 2007-02-24  Jim Meyering  <jim@meyering.net>
47729
47730         * m4/regex.m4: Update the description of the configure-time option,
47731         --without-included-regex, to state accurately what the defaults are,
47732         and perhaps to give people an idea why using this option is risky.
47733
47734 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47735
47736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47737         loops on small arguments.  This attempts to avoid the problem
47738         Bruno Haible reported for AIX 4.3.2 in
47739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47740
47741 2007-02-23  Bruno Haible  <bruno@clisp.org>
47742
47743         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47744         Needed for help2man.
47745
47746 2007-02-23  Karl Berry  <karl@gnu.org>
47747
47748         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47749         exists, foo.h should be cvs-ignored, not committed.
47750
47751 2007-02-23  Eric Blake  <ebb9@byu.net>
47752
47753         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47754         * lib/stat-time.h (includes): Likewise.
47755         * lib/utimecmp.c (includes): Likewise.
47756         * lib/utimens.h (includes): Likewise.
47757         * lib/getdate.y (includes): Also include "timespec.h" for use
47758         internal to the module.
47759         * modules/utimens (Depends-on): Revert yesterday's patch.
47760         * modules/nanosleep (Depends-on): Add missing dependency.
47761
47762 2007-02-22  Bruno Haible  <bruno@clisp.org>
47763
47764         * lib/glob.c: Don't include getlogin_r.h.
47765
47766 2007-02-22  Jim Meyering  <jim@meyering.net>
47767
47768         * modules/utimens (Depends-on): Add timespec, required for
47769         utimens.h's inclusion of timespec.h.
47770
47771 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47774         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47775         Schwab in
47776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47777         I'll try to think of a better way to fix the Solaris problem.
47778
47779         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47780         like glibc; on Solaris 10, it fails with errno == EINVAL.
47781         POSIX says the behavior is unspecified if the first argument is NULL,
47782         so play it safe and never pass NULL to the system getcwd.
47783
47784 2007-02-21  Jim Meyering  <jim@meyering.net>
47785
47786         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47787         of gettimeofday.  It would conflict with the one now always
47788         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47789         an IRIX 6.5 build failure.
47790
47791 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47792
47793         Minor fixups to port to Solaris 10 with Sun C 5.8.
47794         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47795         * modules/getcwd (Depends-on): Add dirfd.
47796         * lib/putenv.c (putenv): #undef it.
47797         (rpl_putenv): New decl.
47798         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47799
47800 2007-02-20  Bruno Haible  <bruno@clisp.org>
47801
47802         * modules/stdio-tests: New file.
47803         * tests/test-stdio.c: New file.
47804
47805         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47806         (Depends-on): Add stdio.
47807         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47808         (Include): Use <stdio.h> instead of vsnprintf.h.
47809         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47810         HAVE_DECL_VSNPRINTF.
47811         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47812
47813         * modules/snprintf (Files): Remove lib/snprintf.h.
47814         (Depends-on): Add stdio.
47815         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47816         (Include): Use <stdio.h> instead of snprintf.h.
47817         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47818         HAVE_DECL_SNPRINTF.
47819         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47820         * lib/getaddrinfo.c: Likewise.
47821
47822         * modules/stdio: New file.
47823         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47824         * lib/snprintf.h: Remove file.
47825         * lib/vsnprintf.h: Remove file.
47826         * lib/.cppi-disable: Remove snprintf.h.
47827         * m4/stdio_h.m4: New file.
47828         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47829
47830 2007-02-20  Jim Meyering  <jim@meyering.net>
47831
47832         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47833         used by e.g., mingw.  From Bruno Haible.
47834
47835 2007-02-19  Bruno Haible  <bruno@clisp.org>
47836
47837         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47838         warnings.
47839         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47840
47841 2007-02-19  Bruno Haible  <bruno@clisp.org>
47842
47843         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47844         from mingw users.
47845
47846 2007-02-19  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47849         warnings.
47850         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47851
47852 2007-02-19  Jim Meyering  <jim@meyering.net>
47853
47854         Don't use FD after a successful "fdopendir (fd)".
47855         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47856         Reset it by calling dirfd on the just-obtained DIR*.
47857
47858         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47859         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47860
47861 2007-02-18  Bruno Haible  <bruno@clisp.org>
47862
47863         * lib/readlink.c: Include <unistd.h>.
47864         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47865         HAVE_READLINK.
47866         * modules/readlink (Depends-on): Add unistd.
47867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47868         (Include): Add <unistd.h>.
47869
47870         * lib/getlogin_r.h: Remove file.
47871         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47872         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47873         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47874         HAVE_DECL_GETLOGIN_R.
47875         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47877         (Include): Use <unistd.h> instead of getlogin_r.h.
47878
47879         * lib/getcwd.h: Remove file.
47880         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47881         * lib/xgetcwd.c: Likewise.
47882         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47883         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47884         * modules/getcwd (Files): Remove lib/getcwd.h.
47885         (Depends-on): Add unistd.
47886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47887         (Include): Use <unistd.h> instad of getcwd.h.
47888
47889         * lib/ftruncate.c: Include <unistd.h> first.
47890         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47891         Set HAVE_FTRUNCATE.
47892         * modules/ftruncate (Depends-on): Add unistd.
47893         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47894
47895         * lib/fchdir.c: Include <unistd.h> first.
47896         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47898         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47899         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47900         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47901
47902         * lib/dup2.c: Include <unistd.h> first.
47903         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47904         HAVE_DUP2.
47905         * modules/dup2 (Depends-on): Add unistd.
47906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47907
47908         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47909         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47910         REPLACE_CHOWN. Don't define chown as a macro here.
47911         * modules/chown (Depends-on): Add unistd.
47912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47913
47914         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47915         Add definition for GL_LINK_WARNING.
47916         (chown, dup2): New declarations.
47917         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47918         link warning.
47919         (ftruncate): New declaration.
47920         (getcwd): New declaration, taken from old getcwd.h.
47921         (getlogin_r): New declaration, taken from old getlogin_r.h.
47922         (readlink): New declaration.
47923         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47924         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47925         (gl_PREREQ_UNISTD): Remove macro.
47926         (gl_UNISTD_MODULE_INDICATOR): New macro.
47927         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47928         many new variables. Don't set UNISTD_H.
47929         * modules/unistd (Description): Change.
47930         (Depends-on): Add link-warning.
47931         (configure.ac): Update.
47932         (Makefile.am): Create unistd.h always. Substitute many new variables
47933         into it.
47934
47935 2007-02-18  Bruno Haible  <bruno@clisp.org>
47936
47937         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47938         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47939         HAVE_GETSUBOPT.
47940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47941         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47942         * lib/getsubopt.h: Remove file.
47943         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47944         (Depends-on): Add stdlib.
47945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47946         (Includes): Use <stdlib.h> instead of getsubopt.h.
47947         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47948         Set HAVE_GETSUBOPT.
47949         * lib/getsubopt.c: Don't include getsubopt.h.
47950
47951 2007-02-18  Bruno Haible  <bruno@clisp.org>
47952
47953         * modules/fchdir (Depends-on): Add dup2.
47954
47955 2007-02-18  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/stdlib_.h: Handle glibc's special invocation convention
47958         specially.
47959
47960 2007-02-18  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/stdlib-tests: New file.
47963         * tests/test-stdlib.c: New file.
47964
47965         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47966         (Depends-on): Add stdlib.
47967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47968         (Includes): Use <stdlib.h> instead of mkstemp.h.
47969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47970         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47971         * lib/mkstemp.c: Don't include mkstemp.h.
47972         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47973         * lib/stdlib--.h: Don't include mkstemp.h.
47974
47975         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47976         (Depends-on): Add stdlib.
47977         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47978         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47979         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47980         HAVE_MKDTEMP.
47981         * lib/mkdtemp.c: Don't include mkdtemp.h.
47982         * lib/clean-temp.c: Don't include mkdtemp.h.
47983
47984         * modules/exit (Files): Remove lib/exit.h.
47985         (Depends-on): Add stdlib.
47986         (Makefile.am): Remove lib_SOURCES.
47987         (Include): Use <stdlib.h> instead of exit.h.
47988         * lib/argmatch.c: Don't include exit.h.
47989         * lib/execute.c: Likewise.
47990         * lib/pagealign_alloc.c: Likewise.
47991         * lib/pipe.c: Likewise.
47992         * lib/wait-process.c: Likewise.
47993         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47994         * lib/exitfail.c: Likewise.
47995         * lib/savewd.c: Likewise.
47996         * lib/xsetenv.c: Likewise.
47997
47998         * modules/stdlib: New file.
47999         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48000         and extra comments about mkstemp().
48001         * lib/exit.h: Remove file.
48002         * lib/mkdtemp.h: Remove file.
48003         * lib/mkstemp.h: Remove file.
48004         * m4/stdlib_h.m4: New file.
48005         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48006
48007 2007-02-18  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/math-tests: New file.
48010         * tests/test-math.c: New file.
48011
48012         * modules/math: New file.
48013         * modules/mathl (Files): Remove lib/mathl.h.
48014         (Depends-on): Add math.
48015         (Makefile.am): Don't mention mathl.h.
48016         (Include): Use <math.h> instead of mathl.h.
48017         * lib/math_.h: New file.
48018         * lib/mathl.h: Remove file.
48019         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48020         mathl.h.
48021         * lib/asinl.c: Likewise.
48022         * lib/atanl.c: Likewise.
48023         * lib/ceill.c: Likewise.
48024         * lib/cosl.c: Likewise.
48025         * lib/expl.c: Likewise.
48026         * lib/floorl.c: Likewise.
48027         * lib/frexpl.c: Likewise.
48028         * lib/ldexpl.c: Likewise.
48029         * lib/logl.c: Likewise.
48030         * lib/sincosl.c: Likewise.
48031         * lib/sinl.c: Likewise.
48032         * lib/sqrtl.c: Likewise.
48033         * lib/tanl.c: Likewise.
48034         * lib/trigl.c: Likewise.
48035         * m4/math_h.m4: New file.
48036         * MODULES.html.sh (Mathematics): Add math.
48037
48038 2007-02-17  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/wctype-tests: New file.
48041         * tests/test-wctype.c: New file.
48042
48043         * modules/wchar-tests: New file.
48044         * tests/test-wchar.c: New file.
48045
48046         * modules/unistd-tests: New file.
48047         * tests/test-unistd.c: New file.
48048
48049         * modules/time-tests: New file.
48050         * tests/test-time.c: New file.
48051
48052         * modules/sysexits-tests: New file.
48053         * tests/test-sysexits.c: New file.
48054
48055         * modules/sys_time-tests: New file.
48056         * tests/test-sys_time.c: New file.
48057
48058         * modules/sys_stat-tests: New file.
48059         * tests/test-sys_stat.c: New file.
48060
48061         * modules/sys_socket-tests: New file.
48062         * tests/test-sys_socket.c: New file.
48063
48064         * modules/sys_select-tests: New file.
48065         * tests/test-sys_select.c: New file.
48066
48067         * modules/string-tests: New file.
48068         * tests/test-string.c: New file.
48069
48070         * modules/stdbool-tests: New file.
48071         * tests/test-stdbool.c: New file.
48072
48073         * modules/netinet_in-tests: New file.
48074         * tests/test-netinet_in.c: New file.
48075
48076         * modules/inttypes-tests: New file.
48077         * tests/test-inttypes.c: New file.
48078
48079         * modules/fcntl-tests: New file.
48080         * tests/test-fcntl.c: New file.
48081
48082         * modules/byteswap-tests: New file.
48083         * tests/test-byteswap.c: New file.
48084
48085         * modules/arpa_inet-tests: New file.
48086         * tests/test-arpa_inet.c: New file.
48087
48088 2007-02-17  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48091         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48092         if the corresponding module is not enabled. Emit link warnings if
48093         the function is used nevertheless.
48094         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48095         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48096         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48097         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48098         * modules/inttypes (Depends-on): Add link-warning.
48099         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48100         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48101         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48102         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48103         * modules/imaxdiv (configure.ac): Likewise.
48104         * modules/strtoimax (configure.ac): Likewise.
48105         * modules/strtoumax (configure.ac): Likewise.
48106
48107 2007-02-17  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48110         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48111         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48112         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48113
48114 2007-02-17  Bruno Haible  <bruno@clisp.org>
48115
48116         * modules/link-warning: New file.
48117         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48118         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48119         * modules/string (Depends-on): Add link-warning.
48120         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48121         string.h.
48122         * MODULES.html.sh (Support for building libraries and executables): Add
48123         link-warning.
48124
48125 2007-02-17  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48128         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48129         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48130         long lines.
48131
48132 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48133             Bruno Haible  <bruno@clisp.org>
48134
48135         * modules/tmpfile: New file.
48136         * lib/tmpfile.c: New file.
48137         * m4/tmpfile.m4: New file.
48138         * MODULES.html.sh (func_all_modules): New section "Input/output".
48139
48140 2007-02-15  Bruno Haible  <bruno@clisp.org>
48141
48142         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48143         (supports_delete_on_close): New function.
48144         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48145
48146 2007-02-14  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/mbspcasecmp-tests: New file.
48149         * tests/test-mbspcasecmp.sh: New file.
48150         * tests/test-mbspcasecmp.c: New file.
48151
48152         New module mbspcasecmp.
48153         * modules/mbspcasecmp: New file.
48154         * lib/mbspcasecmp.c: New file.
48155         * lib/string_.h (strncasecmp): Change warning message.
48156         (mbspcasecmp): New declaration.
48157         * m4/mbspcasecmp.m4: New file.
48158         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48159         GNULIB_MBSPCASECMP.
48160         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48161         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48162
48163 2007-02-14  Bruno Haible  <bruno@clisp.org>
48164
48165         * modules/mbsncasecmp-tests: New file.
48166         * tests/test-mbsncasecmp.sh: New file.
48167         * tests/test-mbsncasecmp.c: New file.
48168
48169         New module mbsncasecmp.
48170         * modules/mbsncasecmp: New file.
48171         * lib/mbsncasecmp.c: New file.
48172         * lib/string_.h (mbsncasecmp): New declaration.
48173         * m4/mbsncasecmp.m4: New file.
48174         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48175         GNULIB_MBSNCASECMP.
48176         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48177         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48178
48179 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48182         Verify that it doesn't overlap with our flags.
48183         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48184         do not have the desired effect in multibyte locales; instead, use
48185         mbscasecmp.
48186         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48187         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48188         we don't require GNU fnmatch ourselves (if our users require it, they
48189         should do so explicitly).
48190
48191         Fix regex code so it doesn't rely on strcasecmp.
48192         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48193         Otherwise, include gnulib's langinfo.h.
48194         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48195         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48197         * modules/regex (FILES): Remove m4/codeset.m4.
48198         (Depends-on): Add localcharset.  Remove strcase.
48199
48200 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48201
48202         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48203         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48204
48205 2007-02-13  Bruno Haible  <bruno@clisp.org>
48206
48207         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48209
48210 2007-02-12  Bruno Haible  <bruno@clisp.org>
48211
48212         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48213         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48214         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48215         time warning rather than a link error.
48216
48217 2007-02-12  Bruno Haible  <bruno@clisp.org>
48218
48219         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48220         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48222
48223 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48224
48225         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48226         args, not 2.
48227
48228 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48229
48230         New module 'time', so that apps can include <time.h> as per
48231         POSIX and GNU instead of separate include files like time_r.h
48232         and timegm.h.  This implementation tries out a simpler approach
48233         for replacing decls in standard include files (as compared to
48234         the string module), somewhat as an experiment.
48235
48236         * config/srclist.txt: Comment out mktime.c for now.
48237         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48238         since it doesn't apply any more.  Use generic wording instead.
48239         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48240         'time'.
48241         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48242         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48243         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48244         Don't include <sys/types.h>; no longer needed since we assume C89.
48245         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48246         * lib/strftime.c: Likewise.
48247         * lib/time_r.c: Likewise.
48248         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48249         * lib/nanosleep.c: Include <time.h> first, to check interface.
48250         * lib/strptime.c: Likewise.
48251         * lib/time_r.c: Likewise.
48252         * lib/timegm.c: Likewise.
48253         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48254         needed.
48255         * lib/timegm.c: Don't include timegm.h; no longer needed.
48256         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48257         time.h now handles any problems in that area.
48258         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48259         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48260         that time.h defines struct timespec.
48261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48262         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48263         handles that.
48264         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48265         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48266         needed.  Set REPLACE_LOCALTIME.
48267         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48268         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48269         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48270         nanosleep; time_h.m4 now does that.  Don't require
48271         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48272         module handles this now.
48273         * modules/getdate (Depends-on): Remove timespec.  Add time.
48274         * modules/nanosleep (Depends-on): Likewise.
48275         * modules/stat-time (Depends-on): Likewise.
48276         * modules/nanosleep (Include): Include time.h, not timespec.h.
48277         * modules/strptime (Files): Remove lib/strptime.h.
48278         (Depends-on): Add extensions, time.
48279         (Include): Include time.h, not strptime.h.
48280         * modules/time_r (Files): Remove lib/time_r.h.
48281         (Depends-on): Add time.
48282         (Include): Include time.h, not time_r.h.
48283         * modules/timegm: Likewise.
48284         * modules/timespec (Description): Now does timespec-related decls
48285         of our own, instead of struct timespec itself.
48286         (Depends-on): Add time; remove extensions.
48287         (Maintainer): Add self.
48288         * modules/utimecmp (Depends-on): Add time; remove timespec.
48289         * modules/utimens (Depends-on): Likewise.
48290         * modules/xnanosleep (Depends-on): Likewise.
48291
48292 2007-02-11  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/c-strstr.c: Include allocsa.h.
48295         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48296         * lib/c-strcasestr.c: Include allocsa.h.
48297         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48298         * lib/strcasestr.c: Include allocsa.h.
48299         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48300         * lib/mbsstr.c: Include allocsa.h.
48301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48302         allocsa/freesa instead of malloc/free.
48303         * lib/mbscasestr.c: Include allocsa.h.
48304         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48305         allocsa/freesa instead of malloc/free.
48306         * modules/c-strstr (Depends-on): Add allocsa.
48307         * modules/c-strcasestr (Depends-on): Likewise.
48308         * modules/strcasestr (Depends-on): Likewise.
48309         * modules/mbsstr (Depends-on): Likewise.
48310         * modules/mbscasestr (Depends-on): Likewise.
48311
48312 2007-02-11  Bruno Haible  <bruno@clisp.org>
48313
48314         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48315
48316         * modules/mbsspn-tests: New file.
48317         * tests/test-mbsspn.sh: New file.
48318         * tests/test-mbsspn.c: New file.
48319
48320 2007-02-11  Bruno Haible  <bruno@clisp.org>
48321
48322         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48323
48324         * modules/mbspbrk-tests: New file.
48325         * tests/test-mbspbrk.sh: New file.
48326         * tests/test-mbspbrk.c: New file.
48327
48328 2007-02-11  Bruno Haible  <bruno@clisp.org>
48329
48330         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48331         unneeded cast.
48332
48333         * modules/mbscspn-tests: New file.
48334         * tests/test-mbscspn.sh: New file.
48335         * tests/test-mbscspn.c: New file.
48336
48337 2007-02-11  Bruno Haible  <bruno@clisp.org>
48338
48339         * modules/mbscasecmp-tests: New file.
48340         * tests/test-mbscasecmp.sh: New file.
48341         * tests/test-mbscasecmp.c: New file.
48342
48343 2007-02-11  Bruno Haible  <bruno@clisp.org>
48344
48345         Ensure O(n) worst-case complexity of mbscasestr.
48346         * lib/mbscasestr.c: Include stdbool.h.
48347         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48348         functions.
48349         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48350         the bookkeeping indicates that it's worth it.
48351         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48352
48353         * modules/mbscasestr-tests: New file.
48354         * tests/test-mbscasestr1.c: New file.
48355         * tests/test-mbscasestr2.sh: New file.
48356         * tests/test-mbscasestr2.c: New file.
48357         * tests/test-mbscasestr3.sh: New file.
48358         * tests/test-mbscasestr3.c: New file.
48359         * tests/test-mbscasestr4.sh: New file.
48360         * tests/test-mbscasestr4.c: New file.
48361         * m4/locale-tr.m4: New file.
48362
48363 2007-02-11  Bruno Haible  <bruno@clisp.org>
48364
48365         Ensure O(n) worst-case complexity of mbsstr.
48366         * lib/mbsstr.c: Include stdbool.h.
48367         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48368         functions.
48369         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48370         bookkeeping indicates that it's worth it.
48371         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48372
48373         * modules/mbsstr-tests: New file.
48374         * tests/test-mbsstr1.c: New file.
48375         * tests/test-mbsstr2.sh: New file.
48376         * tests/test-mbsstr2.c: New file.
48377         * tests/test-mbsstr3.sh: New file.
48378         * tests/test-mbsstr3.c: New file.
48379         * m4/locale-fr.m4: New file.
48380
48381 2007-02-11  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/mbsrchr.c (mbsrchr): Fix bug.
48384
48385         * modules/mbsrchr-tests: New file.
48386         * tests/test-mbsrchr.sh: New file.
48387         * tests/test-mbsrchr.c: New file.
48388
48389 2007-02-11  Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/mbschr.c (mbschr): Fix bug.
48392
48393         * modules/mbschr-tests: New file.
48394         * tests/test-mbschr.sh: New file.
48395         * tests/test-mbschr.c: New file.
48396         * m4/locale-zh.m4: New file.
48397
48398 2007-02-11  Bruno Haible  <bruno@clisp.org>
48399
48400         Support for copying multibyte string iterators.
48401         * lib/mbiter.h: Include <string.h>.
48402         (mbiter_multi_copy): New function.
48403         (mbi_copy): New macro.
48404         * lib/mbuiter.h: Include <string.h>.
48405         (mbuiter_multi_copy): New function.
48406         (mbui_copy): New macro.
48407
48408 2007-02-11  Bruno Haible  <bruno@clisp.org>
48409
48410         New module mbslen.
48411         * modules/mbslen: New file.
48412         * lib/mbslen.c: New file.
48413         * lib/string_.h (mbslen): New declaration.
48414         * m4/mbslen.m4: New file.
48415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48416         GNULIB_MBSLEN.
48417         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48418         * MODULES.html.sh (Internationalization functions): Add mbslen.
48419
48420 2007-02-11  Bruno Haible  <bruno@clisp.org>
48421
48422         Ensure O(n) worst-case complexity of strcasestr substitute.
48423         * lib/strcasestr.c: Include stdbool.h.
48424         (knuth_morris_pratt): New function.
48425         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48426         bookkeeping indicates that it's worth it.
48427         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48428
48429         * modules/strcasestr-tests: New file.
48430         * tests/test-strcasestr.c: New file.
48431
48432 2007-02-11  Bruno Haible  <bruno@clisp.org>
48433
48434         Ensure O(n) worst-case complexity of c_strcasestr.
48435         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48436         (knuth_morris_pratt): New function.
48437         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48438         the bookkeeping indicates that it's worth it.
48439         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48440
48441         * modules/c-strcasestr-tests: New file.
48442         * tests/test-c-strcasestr.c: New file.
48443
48444 2007-02-11  Bruno Haible  <bruno@clisp.org>
48445
48446         Ensure O(n) worst-case complexity of c_strstr.
48447         * lib/c-strstr.c: Include stdbool.h, string.h.
48448         (knuth_morris_pratt): New function.
48449         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48450         bookkeeping indicates that it's worth it.
48451         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48452
48453         * lib/c-strstr.c: Complete rewrite for maintainability.
48454
48455         * modules/c-strstr-tests: New file.
48456         * tests/test-c-strstr.c: New file.
48457
48458 2007-02-11  Bruno Haible  <bruno@clisp.org>
48459
48460         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48461         5.2.1 and earlier, whereby \055 was treated just like the range
48462         delimiter '-'.
48463         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48464
48465 2007-02-08  Bruno Haible  <bruno@clisp.org>
48466
48467         * modules/regex (Depends-on): Add stdbool.
48468         Reported by Dalibor Topic <robilad@kaffe.org>.
48469
48470 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48473         Prefer returning from main to exiting from it.
48474         Remove unnecessary parens after sizeof.
48475
48476 2007-02-05  Bruno Haible  <bruno@clisp.org>
48477
48478         New module mbssep.
48479         * modules/mbssep: New file.
48480         * lib/mbssep.c: New file.
48481         * lib/string_.h (strsep): Add a conditional link warning.
48482         (mbssep): New declaration.
48483         * m4/mbssep.m4: New file.
48484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48485         GNULIB_MBSSEP.
48486         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48487         * MODULES.html.sh (Internationalization functions): Add mbssep.
48488
48489 2007-02-05  Bruno Haible  <bruno@clisp.org>
48490
48491         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48492         Optimize search in case of 1 delimiter.
48493
48494 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48495
48496         * lib/acl.h: Include sys/types.h before sys/acl.h.
48497
48498 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48499
48500         Merge upstream fix for glibc bugzilla #3957:
48501
48502         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48503
48504         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48505         bit for RE_HAT_LISTS_NOT_NEWLINE.
48506         (build_charclass_op): Remove bogus comment.
48507
48508 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48509
48510         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48511
48512 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48515         * lib/memmem.c [!defined _LIBC]: Include config.h.
48516
48517 2007-02-04  Bruno Haible  <bruno@clisp.org>
48518
48519         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48520         warning message.
48521
48522 2007-02-04  Bruno Haible  <bruno@clisp.org>
48523
48524         New module mbstok_r.
48525         * modules/mbstok_r: New file.
48526         * lib/mbstok_r.c: New file.
48527         * lib/string_.h (strtok_r): Change argument names to match the
48528         comments. Add a conditional link warning.
48529         (mbstok_r): New declaration.
48530         * m4/mbstok_r.m4: New file.
48531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48532         GNULIB_MBSTOK_R.
48533         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48534         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48535
48536 2007-02-04  Bruno Haible  <bruno@clisp.org>
48537
48538         New module mbsspn.
48539         * modules/mbsspn: New file.
48540         * lib/mbsspn.c: New file.
48541         * lib/string_.h (strspn): Add a conditional link warning.
48542         (mbsspn): New declaration.
48543         * m4/mbsspn.m4: New file.
48544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48545         GNULIB_MBSSPN.
48546         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48547         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48548
48549 2007-02-04  Bruno Haible  <bruno@clisp.org>
48550
48551         New module mbspbrk.
48552         * modules/mbspbrk: New file.
48553         * lib/mbspbrk.c: New file.
48554         * lib/string_.h (strpbrk): Add a conditional link warning.
48555         (mbspbrk): New declaration.
48556         * m4/mbspbrk.m4: New file.
48557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48558         GNULIB_MBSPBRK.
48559         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48560         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48561
48562 2007-02-04  Bruno Haible  <bruno@clisp.org>
48563
48564         New module mbscspn.
48565         * modules/mbscspn: New file.
48566         * lib/mbscspn.c: New file.
48567         * lib/string_.h (strcspn): Add a conditional link warning.
48568         (mbscspn): New declaration.
48569         * m4/mbscspn.m4: New file.
48570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48571         GNULIB_MBSCSPN.
48572         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48573         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48574
48575 2007-02-04  Bruno Haible  <bruno@clisp.org>
48576
48577         New module mbscasestr, reduced goal of strcasestr.
48578         * modules/mbscasestr: New file.
48579         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48580         (mbscasestr): Renamed from strcasestr.
48581         * lib/strcasestr.c: Don't include mbuiter.h.
48582         (strcasestr): Remove support for multibyte locales.
48583         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48584         Change the conditional link warning.
48585         (mbscasestr): New declaration.
48586         * m4/mbscasestr.m4: New file.
48587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48588         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48589         REPLACE_STRCASESTR.
48590         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48592         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48593         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48594         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48595         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48596         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48597         (Depends-on): Remove mbuiter.
48598         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48599
48600 2007-02-04  Bruno Haible  <bruno@clisp.org>
48601
48602         Simplify handling of strncasecmp.
48603         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48604         the conditional link warning.
48605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48606         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48608         * modules/strcase (configure.ac): Don't invoke
48609         gl_STRING_MODULE_INDICATOR.
48610         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48611
48612 2007-02-04  Bruno Haible  <bruno@clisp.org>
48613
48614         New module mbscasecmp, reduced goal of strcasecmp.
48615         * modules/mbscasecmp: New file.
48616         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48617         (mbscasecmp): Renamed from strcasecmp.
48618         * lib/strcasecmp.c: Don't include mbuiter.h.
48619         (strcasecmp): Remove support for multibyte locales.
48620         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48621         Change the conditional link warning.
48622         (mbscasecmp): New declaration.
48623         * m4/mbscasecmp.m4: New file.
48624         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48625         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48626         REPLACE_STRCASECMP.
48627         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48629         GNULIB_MBSCASECMP.
48630         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48631         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48632         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48633         (Depends-on): Remove mbuiter.
48634         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48635
48636 2007-02-04  Bruno Haible  <bruno@clisp.org>
48637
48638         New module mbsstr. Remove module strstr.
48639         * modules/mbsstr: New file.
48640         * modules/strstr: Remove file.
48641         * lib/mbsstr.c: Renamed from lib/strstr.c.
48642         (mbsstr): Renamed from strstr.
48643         * lib/string_.h (strstr): Remove declaration. Change the conditional
48644         link warning.
48645         (mbsstr): New declaration.
48646         * m4/mbsstr.m4: New file.
48647         * m4/strstr.m4: Remove file.
48648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48649         REPLACE_STRSTR.
48650         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48651         Don't initialize GNULIB_STRSTR.
48652         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48653         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48654         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48655         (Support for systems lacking ANSI C 89): Remove strstr.
48656
48657 2007-02-04  Bruno Haible  <bruno@clisp.org>
48658
48659         New module mbsrchr.
48660         * modules/mbsrchr: New file.
48661         * lib/mbsrchr.c: New file.
48662         * lib/string_.h (strrchr): Add a conditional link warning.
48663         (mbsrchr): New declaration.
48664         * m4/mbsrchr.m4: New file.
48665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48666         GNULIB_MBSRCHR.
48667         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48668         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48669
48670 2007-02-04  Bruno Haible  <bruno@clisp.org>
48671
48672         New module mbschr.
48673         * modules/mbschr: New file.
48674         * lib/mbschr.c: New file.
48675         * lib/string_.h (strchr): Add a conditional link warning.
48676         (mbschr): New declaration.
48677         * m4/mbschr.m4: New file.
48678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48679         GNULIB_MBSCHR.
48680         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48681         * MODULES.html.sh (Internationalization functions): Add mbschr.
48682
48683 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48686
48687         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48688
48689 2007-02-04  Bruno Haible  <bruno@clisp.org>
48690
48691         New module description section 'configure.ac-early'.
48692         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48693         (func_get_autoconf_early_snippet): New function.
48694         (func_import, func_create_testdir): Use it. Remove special cases for
48695         modules 'extensions' and 'lock'.
48696         * modules/extensions (configure.ac-early): Require
48697         gl_USE_SYSTEM_EXTENSIONS.
48698         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48699
48700 2007-02-04  Bruno Haible  <bruno@clisp.org>
48701
48702         Make use of gcj-4.3's -fsource and -ftarget option.
48703         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48704         and if so try the options -fsource and -ftarget.
48705         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48706         source_version, ftarget_option, target_version arguments.
48707         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48708         (is_envjavac_oldgcj_14_14_usable): Renamed from
48709         is_envjavac_gcj_14_14_usable.
48710         (is_envjavac_oldgcj_14_13_usable): Renamed from
48711         is_envjavac_gcj_14_13_usable.
48712         (is_gcj_present): Update.
48713         (is_gcj_43, is_gcj43_usable): New functions.
48714         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48715         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48716         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48717         try the options -fsource and -ftarget.
48718
48719 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48722         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48723         larger value.
48724
48725 2007-02-03  Jim Meyering  <jim@meyering.net>
48726
48727         Give tools a better chance to allocate space for very large buffers.
48728         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48729
48730         Make pwd and readlink work also when run with an unreadable parent dir
48731         on systems with openat support.
48732         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48733         provided getcwd function, even when we have openat support.
48734         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48735
48736 2007-02-02  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48739         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48740         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48741         portability problems if one of these functions is only used on specific
48742         platforms.
48743         Reported by Paul Eggert.
48744
48745 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48746
48747         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48748         is causing more trouble than it's curing.
48749         * lib/regex_internal.h (__mempcpy): Remove.
48750         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48751         (and make the code a tad smaller to boot).
48752         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48753
48754 2007-02-02  Jim Meyering  <jim@meyering.net>
48755
48756         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48757         section, not in the Makefile.am: one.
48758
48759 2007-02-02  Eric Blake  <ebb9@byu.net>
48760
48761         * lib/strchrnul.c: Always include config.h first.
48762
48763         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48764         gnulib strstr is not necessary here.
48765
48766 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48767
48768         * m4/socklen.m4: Fix typo.
48769
48770 2007-02-02  Eric Blake  <ebb9@byu.net>
48771
48772         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48773         * modules/netinet_in (Makefile.am): Likewise.
48774
48775 2007-02-01  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/string_.h (GL_LINK_WARNING): New macro.
48778         (strcasecmp, strstr, strcasestr): If provided by the system,
48779         conditionally define as a macro that leads to a warning instead of to
48780         an error.
48781         (strncasecmp): Conditionally define as a macro that leads to a warning.
48782
48783 2007-02-01  Karl Berry  <karl@gnu.org>
48784
48785         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48786
48787 2007-02-01  Bruno Haible  <bruno@clisp.org>
48788
48789         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48790         renamings.
48791
48792 2007-02-01  Eric Blake  <ebb9@byu.net>
48793
48794         * modules/regex (Depends-on): Revert dependence on mempcpy.
48795         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48796         module's definition of mempcpy.
48797         Reported by Paul Eggert.
48798
48799 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48802         the symbol XYZ before redefining it.  This fixes a problem with
48803         programs that don't use XYZ, when compiled on systems that define
48804         XYZ to something else.
48805
48806 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48809         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48810         writeable to group or other and (2) is intended to have a special
48811         mode bit that is set or cleared.  In such a case, the directory
48812         should be neither group- nor other-writeable until the special
48813         mode bits are right.
48814
48815 2007-01-31  Eric Blake  <ebb9@byu.net>
48816
48817         * modules/mountlist (Depends-on): Add strstr.
48818
48819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48820         bug.
48821         * modules/string (Makefile.am): Remove redundant replacement.
48822         * modules/regex (Depends-on): Add mempcpy.
48823
48824 2007-01-31  Bruno Haible  <bruno@clisp.org>
48825
48826         New module description field 'Link'.
48827         * gnulib-tool (func_usage): Document --extract-link-directive.
48828         (sed_extract_prog): Recognize 'Link' directive.
48829         (func_get_link_directive): New function.
48830         (func_import): Show summary of link directives.
48831         Handle --extract-link-directive option.
48832         * modules/acl (Link): New section.
48833         * modules/clock-time (Link): New section.
48834         * modules/euidaccess (Link): New section.
48835         * modules/gettext (Link): New section.
48836         * modules/iconv (Link): New section.
48837         * modules/lock (Link): New section.
48838         * modules/nanosleep (Link): New section.
48839         * modules/readline (Link): New section.
48840
48841 2007-01-27  Bruno Haible  <bruno@clisp.org>
48842
48843         Enforce the use of gnulib modules for unportable <string.h> functions.
48844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48845         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48846         (gl_HEADER_STRING_H_BODY): Require it.
48847         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48848         the symbol XYZ to one that gives a link error.
48849         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48850         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48851         * modules/mempcpy (configure.ac): Likewise.
48852         * modules/memrchr (configure.ac): Likewise.
48853         * modules/stpcpy (configure.ac): Likewise.
48854         * modules/stpncpy (configure.ac): Likewise.
48855         * modules/strcase (configure.ac): Likewise.
48856         * modules/strcasestr (configure.ac): Likewise.
48857         * modules/strchrnul (configure.ac): Likewise.
48858         * modules/strdup (configure.ac): Likewise.
48859         * modules/strndup (configure.ac): Likewise.
48860         * modules/strnlen (configure.ac): Likewise.
48861         * modules/strpbrk (configure.ac): Likewise.
48862         * modules/strsep (configure.ac): Likewise.
48863         * modules/strstr (configure.ac): Likewise.
48864         * modules/strtok_r (configure.ac): Likewise.
48865
48866 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48867
48868         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48869
48870 2007-01-30  Jim Meyering  <jim@meyering.net>
48871
48872         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48873
48874 2007-01-29  Bruno Haible  <bruno@clisp.org>
48875
48876         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48877         * lib/execute.c: Likewise.
48878         * lib/pipe.c: Likewise.
48879         * lib/printf-args.h: Likewise.
48880         * lib/printf-args.c: Likewise.
48881         * lib/printf-parse.c: Likewise.
48882         * lib/vasnprintf.c: Likewise.
48883
48884 2007-01-29  Eric Blake  <ebb9@byu.net>
48885
48886         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48887         declaration.
48888
48889 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48890
48891         * lib/strptime.h (strptime): Use 'restrict' for args where
48892         POSIX requires this.
48893         * lib/strptime.c (strptime): Likewise.
48894         Change license notice from LGPL to GPL, since gnulib-tool will
48895         change this as needed.
48896         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48897         defined.
48898         Include "strptime.h" first, to check interface.
48899         Do not #undef _LIBC and _NL_CURRENT.
48900         Do not include <stdlib.h>; no longer needed.
48901         Include "time_r.h" and declare ptime_locale_status
48902         only if _LIBC is not defined.
48903         (__P): Remove unused macro.
48904         (match_string): Bring back glibc version, but use it only if _LIBC
48905         is defined.
48906         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48907         Remove unnecessary assertion and abort() call.
48908         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48909         * m4/strptime.m4: Fix serial number comment.
48910         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48911         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48912         (Depends-on): Add time_r.
48913
48914 2007-01-29  Bruno Haible  <bruno@clisp.org>
48915
48916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48917         strptime.
48918         * modules/strptime (Depends-on): Add stdbool.
48919         * lib/strptime.h: Include <time.h> always. Add comments.
48920
48921 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48922
48923         * modules/strptime: New file.
48924         * lib/strptime.h: New file.
48925         * lib/strptime.c: New file.
48926         * m4/strptime.m4: New file.
48927
48928 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48929
48930         * MODULES.html.sh: New module mpsort.
48931         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48932
48933         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48934         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48936         All uses changed.
48937         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48938         All uses changed.
48939         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48940         to _Restrict_.
48941         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48942         the parameter matches the prototype.
48943
48944 2007-01-28  Jim Meyering  <jim@meyering.net>
48945
48946         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48947         sys/time.h here, reverting that part of the previous patch:
48948         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48949
48950 2007-01-28  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48953         value of $(SYS_TIME_H).
48954         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48955         remove it conditionally, too. [added by Jim Meyering]
48956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48958         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48959         GETTIMEOFDAY_REPLACEMENT to 1.
48960
48961 2007-01-28  Bruno Haible  <bruno@clisp.org>
48962
48963         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48964         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48966         Set UNISTD_H instead of UNISTD_H2.
48967         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48968
48969 2007-01-28  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48972         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48973
48974 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48975
48976         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48977         (func_create_testdir): Ensure C locale for `grep' and `tr'
48978         character ranges.
48979         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48980         ACLOCAL_AMFLAGS parsing state machine.
48981
48982 2007-01-27  Bruno Haible  <bruno@clisp.org>
48983
48984         * modules/unistr/base: Update.
48985
48986 2007-01-27  Bruno Haible  <bruno@clisp.org>
48987
48988         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48989         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48990         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48991         modules/unistr/u32-mbtouc.
48992         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48993         * lib/unistr.h: Update.
48994         * lib/linebreak.c: Update.
48995         * modules/unistr/u32-mbtouc: Renamed from
48996         modules/unistr/u32-mbtouc-safe.
48997         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48998         * lib/unistr.h: Update.
48999         * lib/unistr/u32-to-u8.c: Update.
49000         * lib/unistr/u32-to-u16.c: Update.
49001
49002 2007-01-27  Bruno Haible  <bruno@clisp.org>
49003
49004         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49005         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49006         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49007         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49008         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49009         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49010         modules/unistr/u16-mbtouc.
49011         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49012         * lib/unistr.h: Update.
49013         * lib/linebreak.c: Update.
49014         * modules/linebreak: Update.
49015         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49016         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49017         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49018         * modules/unistr/u16-mbtouc: Renamed from
49019         modules/unistr/u16-mbtouc-safe.
49020         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49021         * lib/unistr.h: Update.
49022         * lib/unistr/u16-to-u8.c: Update.
49023         * modules/unistr/u16-to-u8: Update.
49024         * lib/unistr/u16-to-u32.c: Update.
49025         * modules/unistr/u16-to-u32: Update.
49026
49027 2007-01-27  Bruno Haible  <bruno@clisp.org>
49028
49029         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49030         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49031         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49032         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49033         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49034         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49035         modules/unistr/u8-mbtouc.
49036         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49037         * lib/unistr.h: Update.
49038         * lib/striconveh.c: Update.
49039         * modules/striconveh: Update.
49040         * lib/linebreak.c: Update.
49041         * modules/linebreak: Update.
49042         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49043         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49044         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49045         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49046         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49047         * lib/unistr.h: Update.
49048         * lib/striconveh.c: Update.
49049         * modules/striconveh: Update.
49050         * lib/unistr/u8-to-u16.c: Update.
49051         * modules/unistr/u8-to-u16: Update.
49052         * lib/unistr/u8-to-u32.c: Update.
49053         * modules/unistr/u8-to-u32: Update.
49054
49055 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49056
49057         Sync from Libtool.
49058         * lib/argz.c: Do not include strings.h nor memory.h, include
49059         string.h unconditionally.  Patch by Simon Josefsson.
49060
49061 2007-01-27  Bruno Haible  <bruno@clisp.org>
49062
49063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49064         from gl_HEADER_STRING_H_BODY.
49065         (gl_HEADER_STRING_H_BODY): Require it.
49066         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49067         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49068         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49069         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49071         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49073         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49074         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49076         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49078         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49079         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49081
49082 2007-01-27  Bruno Haible  <bruno@clisp.org>
49083
49084         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49085         check_PROGRAMS into noinst_PROGRAMS.
49086         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49087         check_PROGRAMS in this case.
49088         (func_import): Set for_test to false.
49089         (func_create_testdir): Set for_test to true.
49090
49091 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49092             Bruno Haible  <bruno@clisp.org>
49093
49094         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49095         (Depends-on): Add string.
49096         (Includes): Use <string.h> instead of strcasestr.h.
49097         * modules/string (Makefile.am): Also substitute the value of
49098         REPLACE_STRCASESTR.
49099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49100         assume strcasestr is declared in <string.h> not <strings.h>. Also
49101         set REPLACE_STRCASESTR.
49102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49103         REPLACE_STRCASESTR.
49104         * lib/strcasestr.h: Remove file.
49105         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49106         * lib/string_.h (strcasestr): New declaration.
49107
49108 2007-01-27  Bruno Haible  <bruno@clisp.org>
49109
49110         * lib/string_.h: Use 'extern'.
49111
49112 2007-01-27  Jim Meyering  <jim@meyering.net>
49113
49114         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49115         of set-but-not-used local, "q".
49116
49117         * lib/mempcpy.c: Include <config.h> before <string.h>.
49118         This fixes a compilation error on HP-UX, due to the system's
49119         "restrict"-using mempcpy prototype.
49120
49121 2007-01-26  Bruno Haible  <bruno@clisp.org>
49122
49123         Small optimization.
49124         * lib/javacomp.c: Include c-strstr.h.
49125          (is_envjavac_gcj): Use c_strstr instead of strstr.
49126         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49127
49128 2007-01-26  Bruno Haible  <bruno@clisp.org>
49129
49130         * MODULES.html.sh (Unicode string functions): Add the new modules.
49131
49132         * modules/uniconv/u32-strconv-to-locale: New file.
49133         * lib/uniconv/u32-strconv-to-locale.c: New file.
49134
49135         * modules/uniconv/u16-strconv-to-locale: New file.
49136         * lib/uniconv/u16-strconv-to-locale.c: New file.
49137
49138         * modules/uniconv/u8-strconv-to-locale: New file.
49139         * lib/uniconv/u8-strconv-to-locale.c: New file.
49140
49141         * modules/uniconv/u32-strconv-from-locale: New file.
49142         * lib/uniconv/u32-strconv-from-locale.c: New file.
49143
49144         * modules/uniconv/u16-strconv-from-locale: New file.
49145         * lib/uniconv/u16-strconv-from-locale.c: New file.
49146
49147         * modules/uniconv/u8-strconv-from-locale: New file.
49148         * lib/uniconv/u8-strconv-from-locale.c: New file.
49149
49150         * modules/uniconv/u32-strconv-to-enc: New file.
49151         * lib/uniconv/u32-strconv-to-enc.c: New file.
49152         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49153         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49154
49155         * modules/uniconv/u16-strconv-to-enc: New file.
49156         * lib/uniconv/u16-strconv-to-enc.c: New file.
49157         * lib/uniconv/u-strconv-to-enc.h: New file.
49158         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49159         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49160
49161         * modules/uniconv/u8-strconv-to-enc: New file.
49162         * lib/uniconv/u8-strconv-to-enc.c: New file.
49163         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49164         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49165
49166         * modules/uniconv/u32-strconv-from-enc: New file.
49167         * lib/uniconv/u32-strconv-from-enc.c: New file.
49168         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49169         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49170
49171         * modules/uniconv/u16-strconv-from-enc: New file.
49172         * lib/uniconv/u16-strconv-from-enc.c: New file.
49173         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49174         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49175
49176         * modules/uniconv/u8-strconv-from-enc: New file.
49177         * lib/uniconv/u8-strconv-from-enc.c: New file.
49178         * lib/uniconv/u-strconv-from-enc.h: New file.
49179         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49180         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49181
49182         * modules/uniconv/u32-conv-from-enc: New file.
49183         * lib/uniconv/u32-conv-from-enc.c: New file.
49184         * modules/uniconv/u32-conv-from-enc-tests: New file.
49185         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49186
49187         * modules/uniconv/u16-conv-from-enc: New file.
49188         * lib/uniconv/u16-conv-from-enc.c: New file.
49189         * lib/uniconv/u-conv-from-enc.h: New file.
49190         * modules/uniconv/u16-conv-from-enc-tests: New file.
49191         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49192
49193         * modules/uniconv/u8-conv-from-enc: New file.
49194         * lib/uniconv/u8-conv-from-enc.c: New file.
49195         * modules/uniconv/u8-conv-from-enc-tests: New file.
49196         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49197
49198         * modules/uniconv/base: New file.
49199         * lib/uniconv.h: New file.
49200
49201 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49202
49203         * doc/gnulib-tool.texi (Initial import): Update to match current
49204         behavior with strdup module.
49205         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49206         * lib/memmem.h: Remove; all uses removed.  This is now done
49207         by <string.h>.
49208         * lib/mempcpy.h: Likewise.
49209         * lib/memrchr.h: Likewise.
49210         * lib/stpcpy.h: Likewise.
49211         * lib/stpncpy.h: Likewise.
49212         * lib/strcase.h: Likewise.
49213         * lib/strchrnul.h: Likewise.
49214         * lib/strdup.h: Likewise.
49215         * lib/strndup.h: Likewise.
49216         * lib/strnlen.h: Likewise.
49217         * lib/strpbrk.h: Likewise.
49218         * lib/strsep.h: Likewise.
49219         * lib/strstr.h: Likewise.
49220         * lib/strtok_r.h: Likewise.
49221         * lib/string_.h: New file.
49222         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49223         Rely on <string.h> instead.
49224         * lib/canon-host.c: Likewise.
49225         * lib/chdir-long.c: Likewise.
49226         * lib/concatpath.c: Likewise.
49227         * lib/exclude.c: Likewise.
49228         * lib/fchdir.c: Likewise.
49229         * lib/getaddrinfo.c: Likewise.
49230         * lib/getcwd.c: Likewise.
49231         * lib/getsubopt.c: Likewise.
49232         * lib/glob.c: Likewise.
49233         * lib/hard-locale.c: Likewise.
49234         * lib/iconvme.c: Likewise.
49235         * lib/javacomp.c: Likewise.
49236         * lib/mempcpy.c: Likewise.
49237         * lib/memrchr.c: Likewise.
49238         * lib/regex_internal.h: Likewise.
49239         * lib/stpncpy.c: Likewise.
49240         * lib/strcasecmp.c: Likewise.
49241         * lib/strchrnul.c: Likewise.
49242         * lib/strdup.c: Likewise.
49243         * lib/striconv.c: Likewise.
49244         * lib/striconveh.c: Likewise.
49245         * lib/striconveha.c: Likewise.
49246         * lib/strncasecmp.c: Likewise.
49247         * lib/strndup.c: Likewise.
49248         * lib/strnlen.c: Likewise.
49249         * lib/strsep.c: Likewise.
49250         * lib/strstr.c: Likewise.
49251         * lib/strtok_r.c: Likewise.
49252         * lib/userspec.c: Likewise.
49253         * lib/w32spawn.h: Likewise.
49254         * lib/xstrndup.c: Likewise.
49255         * lib/mountlist.c (strstr): Remove decl.
49256         * m4/string_h.m4: New file.
49257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49258         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49260         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49261         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49262         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49263         Set REPLACE_STRCASECMP if necessary.
49264         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49265         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49266         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49268         HAVE_DECL_STRDUP if necessary.
49269         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49270         since gl_FUNC_STRNDUP does that now.
49271         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49272         Check for decl here...
49273         (gl_PREREQ_STRNLEN): ... not here.
49274         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49275         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49276         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49278         necessary.
49279         * modules/string: New file.
49280         * modules/memmem (Files): Remove special-purpose include file.
49281         (Depends-on): Add string.
49282         (Include): Include <string.h>, not the removed file.
49283         * modules/mempcpy: Likewise.
49284         * modules/memrchr: Likewise.
49285         * modules/stpcpy: Likewise.
49286         * modules/stpncpy: Likewise.
49287         * modules/strcase: Likewise.
49288         * modules/strchrnul: Likewise.
49289         * modules/strdup: Likewise.
49290         * modules/strndup: Likewise.
49291         * modules/strnlen: Likewise.
49292         * modules/strpbrk: Likewise.
49293         * modules/strsep: Likewise.
49294         * modules/strstr: Likewise.
49295         * modules/strtok_r: Likewise.
49296         * tests/test-dirname.c: Don't include "strdup.h", since
49297         <string.h> now suffices.
49298         * tests/test-memmem.c: Don't include "memmem.h", since
49299         <string.h> now suffices.
49300
49301 2007-01-25  Bruno Haible  <bruno@clisp.org>
49302
49303         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49304         *resultp is 0.
49305
49306         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49307         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49308         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49309         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49310
49311         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49312         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49313         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49314         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49315         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49316         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49317
49318 2007-01-24  Bruno Haible  <bruno@clisp.org>
49319
49320         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49322         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49323         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49324         gl_FUNC_FTS_CORE.
49325         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49326         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49328         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49329         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49330         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49331         gl_FUNC_FCHOWNAT.
49332         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49333         gl_FUNC_STRFTIME.
49334         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49335         Reported by Ralf Wildenhues.
49336
49337 2007-01-24  Bruno Haible  <bruno@clisp.org>
49338
49339         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49340         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49341         gl_GETADDRINFO.
49342         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49343         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49344         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49345
49346 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49347
49348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49349         Don't use 'exit'; just return from 'main'.
49350         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49351
49352         * lib/fnmatch_.h: Readjust white space and comments to match
49353         glibc, to avoid spurious diffs.
49354
49355 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49356
49357         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49358         2004-12-01 change by Jakub Jelinek, since this code won't compile
49359         if !LIBC.  Problem reported by Bob Proulx.
49360
49361 2007-01-23  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/striconveh.c: Include c-strcaseeq.h.
49364         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49365         * modules/striconveh (Depends-on): Add c-strcaseeq.
49366
49367 2007-01-23  Bruno Haible  <bruno@clisp.org>
49368
49369         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49370
49371         * modules/c-strcaseeq: New file.
49372         * lib/c-strcaseeq.h: New file.
49373
49374         * modules/streq: New file.
49375         * lib/streq.h: New file.
49376
49377 2007-01-23  Bruno Haible  <bruno@clisp.org>
49378
49379         * modules/striconveha-tests: New file.
49380         * tests/test-striconveha.c: New file.
49381
49382         * lib/striconveha.h: Include <stdbool.h>.
49383         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49384         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49385         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49386         (mem_iconveha): New function.
49387         (str_iconveha_notranslit): Renamed from str_iconveha.
49388         (str_iconveha): New function.
49389         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49390         c-strcase.
49391
49392 2007-01-23  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49395         encodings without forgiving before trying any encoding with handler.
49396         (str_iconveha): Try all encodings without forgiving before trying any
49397         encoding with handler.
49398
49399 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         Import the following changes from libc.
49402
49403         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49404
49405         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49406
49407         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49408
49409         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49410         normal_bracket label.
49411
49412         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49413
49414         [BZ #361]
49415         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49416         to normal_bracket after fetching the next character.
49417
49418 2007-01-22  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49421         argument.
49422         * lib/striconveh.c (iconv_carefully_1): New function.
49423         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49424         argument.
49425         (str_cd_iconveh): Update.
49426         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49427         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49428         * tests/test-striconveh.c (MAGIC): New macro.
49429         (new_offsets): New function.
49430         (main): Test call with and without offsets.
49431
49432 2007-01-22  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49435         * modules/sys_select (Makefile.am): Likewise.
49436         * modules/sys_socket (Makefile.am): Likewise.
49437         * modules/sys_time (Makefile.am): Likewise.
49438
49439 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49440
49441         * modules/gettimeofday (License): Change from GPL to LGPL, since
49442         gettimeofday is a library function.
49443
49444 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49445
49446         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49447
49448 2007-01-21  Bruno Haible  <bruno@clisp.org>
49449
49450         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49451
49452 2007-01-21  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/striconveha: New file.
49455         * lib/striconveha.h: New file.
49456         * lib/striconveha.c: New file.
49457         * MODULES.html.sh (Internationalization functions): Add striconveha.
49458         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49459         string.
49460         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49461
49462 2007-01-21  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49465         * lib/striconveh.c (str_iconveh): Likewise.
49466
49467 2007-01-21  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/striconveh.h (mem_iconveh): New declaration.
49470         * lib/striconveh.c (mem_iconveh): New function.
49471         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49472
49473 2007-01-21  Bruno Haible  <bruno@clisp.org>
49474
49475         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49476
49477         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49478         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49479         original result buffer.
49480         (str_cd_iconveh): Update.
49481         * tests/test-striconveh.c (main): Update.
49482
49483         * lib/striconv.h (mem_cd_iconv): Change specification.
49484         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49485         result buffer.
49486         (str_cd_iconv): Update.
49487         * tests/test-striconv.c (main): Update.
49488
49489 2007-01-21  Bruno Haible  <bruno@clisp.org>
49490
49491         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49492
49493 2007-01-20  Jim Meyering  <jim@meyering.net>
49494
49495         * lib/userspec.c (parse_with_separator): If a user or group string
49496         starts with "+", skip the corresponding name-to-ID look-up, since
49497         such a look-up must fail: user and group names may not include "+".
49498
49499 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49502         since we now assume the sys_time module.
49503         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49504         check for sys/time.h; no longer needed.
49505         * modules/poll (Depends-on): Depend on sys_time.
49506
49507 2007-01-18  Bruno Haible  <bruno@clisp.org>
49508
49509         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49510         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49511
49512         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49513         gettimeofday.
49514
49515         * tests/test-gettimeofday.c: Include <time.h>.
49516         (dummy): Remove variable.
49517
49518         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49519         gl_HEADER_SYS_TIME_H.
49520         (gl_HEADER_SYS_TIME_H): New macro.
49521
49522         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49525         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49526         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49528         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49529         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49530         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49531         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49532         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49533
49534         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49535         last change; it caused a compilation error when cross-compiling to
49536         Cygwin.
49537
49538 2007-01-18  Jim Meyering  <jim@meyering.net>
49539
49540         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49541         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49542         than the race-prone "test -d sys || mkdir sys".
49543         (configure.ac): Use AC_PROG_MKDIR_P.
49544         * modules/sys_select: Likewise.
49545         * modules/sys_socket: Likewise.
49546         * modules/sys_time: Likewise.
49547
49548 2007-01-18  Eric Blake  <ebb9@byu.net>
49549
49550         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49551         replace gettimeofday.
49552         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49553         name, to avoid infinite recursion.
49554
49555 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49558         module sys_time.
49559         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49560         assume timespec.h defines struct timeval.
49561         * lib/settime.c: Likewise.
49562         * lib/utimens.c: Likewise.
49563         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49564         since we now assume the gettimeofday module.
49565         * lib/tempname.c (__gen_tempname): Likewise.
49566         * lib/gettimeofday.h: Remove.
49567         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49568         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49569         Include <time.h>, for 'time()'.
49570         (localtime_buffer_addr): Also use this workaround if
49571         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49572         to simplify the uses.  All uses changed.
49573         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49574         that #undef is inside {}, and 'const' follows type name consistently.
49575         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49576         (gettimeofday): Do not use the maximum possible value for
49577         tv->tv_usec, since that might break usages other than ls.c.
49578         Instead, we'll leave ls.c alone.  This undoes today's patch
49579         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49580         we've never observed the problem but might as well keep the
49581         canary.
49582         * lib/nanosleep.c: Include timespec.h first, for interface check.
49583         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49584         now assume the sys_time module.
49585         * lib/tempname.c: Likewise.
49586         * lib/timespec.h: Likewise.
49587         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49588         needed.
49589         * lib/strftime.c: Likewise.
49590         * lib/timespec.h: Likewise.
49591         * lib/posixtm.c: Include posixtm.h first, for interface check.
49592         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49593         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49594         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49595         * lib/sys_time_.h: New file.
49596         * lib/timespec.h (struct timespec): Use long int, not long.
49597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49598         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49599         Remove obsolescent call to AC_HEADER_TIME.
49600         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49602         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49603         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49604         Likewise.
49605         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49606         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49608         into the sys_time module.  Check for gettimeofday just once.
49609         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49610         for gettimeofday signature to just check the signature.  Merely
49611         compile it, since linking doesn't test signature.  Improve test for
49612         whether gettimeofday.o is actually needed.
49613         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49614         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49615         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49616         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49617         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49618         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49619         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49620         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49621         than worrying about sys/time.h.
49622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49623         Don't bother worrying about TIME_WITH_SYS_TIME.
49624         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49625         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49626         * m4/sys_time_h.m4: New file.
49627         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49628         Don't include sys/time.h.  Return from main rather than exiting.
49629         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49630         all uses changed.
49631         * modules/gethrxtime (Depends-on): Add sys_time.
49632         * modules/gettime (Depends-on): Likewise.
49633         * modules/gettimeofday (Depends-on): Likewise.
49634         * modules/nanosleep (Depends-on): Likewise.
49635         * modules/settime (Depends-on): Likewise.
49636         * modules/tempname (Depends-on): Likewise.
49637         * modules/utimens (Depends-on): Likewise.
49638         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49639         (Include:) Change back to <sys/time.h>.
49640         (Maintainer:) Add self.
49641         * modules/sys_time: New file.
49642         * modules/tempname (Depends-on): Add gettimeofday.
49643         * tests/test-gettimeofday.c: Include <sys/time.h>
49644         rather than gettimeofday.h.
49645
49646 2007-01-17  Bruno Haible  <bruno@clisp.org>
49647
49648         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49649         the license default to GPL.
49650         (func_create_testdir): Don't complain if a module is LGPL and its
49651         tests module depends on GPLed modules.
49652
49653 2007-01-17  Bruno Haible  <bruno@clisp.org>
49654
49655         * lib/gettimeofday.c (gettimeofday): Add code for the case
49656         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49657         maximum possible value for tv->tv_usec, rather than the minimum one.
49658
49659 2005-10-08  Martin Lambers  <marlam@marlam.de>
49660 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49661 2007-01-16  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49664         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49665         gl_FUNC_GETTIMEOFDAY.
49666         (Include): Add gettimeofday.h.
49667         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49668         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49669         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49670         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49671         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49672         * lib/gettimeofday.h: New file.
49673         * lib/gettimeofday.c: Include <sys/timeb.h>.
49674         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49675         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49676         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49677         fall back on time().
49678
49679         * tests/test-gettimeofday.c: New file.
49680         * modules/gettimeofday-tests: New file.
49681
49682 2007-01-16  Eric Blake  <ebb9@byu.net>
49683
49684         * modules/fnmatch (Depends-on): Depend on wchar.
49685         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49686         * m4/fnmatch.m4: Likewise.
49687         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49688         * m4/mbchar.m4: Likewise.
49689         * modules/mbswidth (Depends-on): Depend on wchar.
49690         * lib/mbswidth.c: Assume <wchar.h>.
49691         * m4/mbswidth.m4: Likewise.
49692         * modules/quotearg (Depends-on): Depend on wchar.
49693         * lib/quotearg.c: Assume <wchar.h>.
49694         * m4/quotearg.m4: Likewise.
49695         * modules/regex (Depends-on): Depend on wchar.
49696         * lib/regex_internal.h: Assume <wchar.h>.
49697         * m4/regex.m4: Likewise.
49698         * modules/stdint (Depends-on): Depend on wchar.
49699         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49700         * m4/stdint.m4: Likewise.
49701         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49702         * modules/strftime (Depends-on): Depend on wchar.
49703         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49704         * modules/strtol (Depends-on): Depend on wchar.
49705         * lib/strtol.c: Assume <wchar.h>.
49706         * modules/wcwidth (Depends-on): Depend on wchar.
49707         * lib/wcwidth.h: Assume <wchar.h>.
49708         * m4/wcwidth.m4: Likewise.
49709
49710 2007-01-16  Bruno Haible  <bruno@clisp.org>
49711
49712         * modules/csharpexec-script: New, created from...
49713         * modules/csharpexec: ... this.
49714
49715 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49716
49717         * modules/javaexec-script: New, created from...
49718         * modules/javaexec: ... this.
49719
49720 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49721
49722         * modules/poll (Dependencies): Add sys_select.
49723
49724 2007-01-15  Jim Meyering  <jim@meyering.net>
49725
49726         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49727         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49728         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49729         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49730
49731 2007-01-15  Bruno Haible  <bruno@clisp.org>
49732
49733         * modules/striconveh: New file.
49734         * lib/striconveh.h: New file.
49735         * lib/striconveh.c: New file.
49736         * MODULES.html.sh (Internationalization functions): Add striconveh.
49737
49738         * modules/striconveh-tests: New file.
49739         * tests/test-striconveh.c: New file.
49740
49741 2007-01-15  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49744         not from GNU libiconv or GNU libc.
49745
49746 2007-01-15  Bruno Haible  <bruno@clisp.org>
49747
49748         * doc/gnulib-intro.texi (Copyright): Explain the different license
49749         terms for module descriptions, autoconf macros, tests, documentation.
49750
49751 2007-01-14  Bruno Haible  <bruno@clisp.org>
49752
49753         * modules/striconv-tests: New file.
49754         * tests/test-striconv.c: New file.
49755
49756 2007-01-14  Bruno Haible  <bruno@clisp.org>
49757
49758         * modules/iconv-tests: New file.
49759         * tests/test-iconv.c: New file.
49760
49761 2007-01-14  Bruno Haible  <bruno@clisp.org>
49762
49763         * gnulib-tool (func_get_license): For test modules, use the license of
49764         the main module.
49765
49766 2007-01-14  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49769         if iconv is found to exist.
49770
49771 2007-01-14  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/c-ctype-tests: New file.
49774         * tests/test-c-ctype.c: New file.
49775
49776 2007-01-14  Bruno Haible  <bruno@clisp.org>
49777
49778         * modules/binary-io-tests: New file.
49779         * tests/test-binary-io.sh: New file.
49780         * tests/test-binary-io.c: New file.
49781
49782 2007-01-14  Bruno Haible  <bruno@clisp.org>
49783
49784         * modules/array-oset-tests: New file.
49785         * tests/test-array_oset.c: New file.
49786
49787 2007-01-14  Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/array-list-tests: New file.
49790         * tests/test-array_list.c: New file.
49791
49792 2007-01-14  Bruno Haible  <bruno@clisp.org>
49793
49794         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49795         and make.
49796         Reported by Simon Josefsson in
49797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49798
49799 2007-01-14  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/allocsa-tests: New file.
49802         * tests/test-allocsa.c: New file.
49803
49804 2007-01-14  Bruno Haible  <bruno@clisp.org>
49805
49806         * modules/fchdir (Depends-on): Add absolute-header.
49807         * modules/unistd (Depends-on): Likewise.
49808
49809 2006-12-30  Bruno Haible  <bruno@clisp.org>
49810
49811         * modules/fchdir: New file.
49812         * modules/unistd (Files): Add lib/unistd_.h.
49813         (Makefile.am): Generate unistd.h from unistd_.h.
49814         * lib/fchdir.c: New file.
49815         * lib/dirent_.h: New file.
49816         * lib/unistd_.h: New file.
49817         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49818         * m4/fchdir.m4: New file.
49819         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49820         (gl_HEADER_UNISTD): Invoke it.
49821         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49822         function.
49823         * lib/backupfile.c (opendir, closedir): Undefine.
49824         * lib/chown.c (open, close): Undefine.
49825         * lib/clean-temp.c (open, close): Undefine.
49826         * lib/copy-file.c (open, close): Undefine.
49827         * lib/execute.c (open, close): Undefine.
49828         * lib/fsusage.c (open, close): Undefine.
49829         * lib/gc-gnulib.c (open, close): Undefine.
49830         * lib/getcwd.c (opendir, closedir): Undefine.
49831         * lib/glob.c (opendir, closedir): Undefine.
49832         * lib/javacomp.c (open, close): Undefine.
49833         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49834         * lib/openat-proc.c (open, close): Undefine.
49835         * lib/pagealign_alloc.c (open, close): Undefine.
49836         * lib/pipe.c (open, close): Undefine.
49837         * lib/progreloc.c (open, close): Undefine.
49838         * lib/savedir.c (opendir, closedir): Undefine.
49839         * lib/utime.c (open, close): Undefine.
49840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49841
49842 2007-01-10  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49845
49846 2007-01-12  Eric Blake  <ebb9@byu.net>
49847
49848         Provide a robust <wchar.h>.  Further simplifications are now
49849         possible in other modules, but not included here.
49850         * modules/wchar: New module.
49851         * m4/wchar.m4: New file.
49852         * lib/wchar_.h: Likewise.
49853         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49854         of the new module.
49855         * MODULES.html.sh (Extended multibyte and wide character utilities):
49856         New section.
49857
49858 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49859
49860         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49861         to a reasonable default for memory allocation.
49862         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49863         file system that reports garbage st_size values for symlinks.
49864         Problem reported by Liyang Hu.
49865
49866 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49867
49868         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49869         Emacs .#* auto-save files).
49870
49871 2007-01-11  Bruno Haible  <bruno@clisp.org>
49872
49873         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49874         directory.
49875
49876 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49877
49878         Use @...@ consistently in lib/wctype_.h.
49879         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49880         on it being set to 1 or 0.
49881         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49882         go back to AC_SUBSTing it.
49883         * modules/wctype (Makefile.am): Undo previous change.
49884
49885 2007-01-10  Eric Blake  <ebb9@byu.net>
49886
49887         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49888         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49889         * modules/wctype (Makefile.am): Likewise.
49890         Reported by Chris McGuire.
49891
49892 2007-01-10  Jim Meyering  <jim@meyering.net>
49893
49894         fts.c: a small readability/maintainability improvement
49895         * lib/fts.c (fts_read): Make this code slightly more readable and
49896         maintainable by hoisting the "sp->fts_cur = p" assignments to
49897         immediately follow the statements that set P.  Derived from
49898         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49899
49900 2007-01-10  Eric Blake  <ebb9@byu.net>
49901
49902         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49903         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49905         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49906         Reported by Chris McGuire.
49907
49908 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49909
49910         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49911         in sed script.
49912
49913 2007-01-09  Bruno Haible  <bruno@clisp.org>
49914
49915         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49916         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49917         variables.
49918         (func_module): Use them.
49919
49920 2007-01-09  Bruno Haible  <bruno@clisp.org>
49921
49922         * modules/unistr/base: New file.
49923         * lib/unistr.h: New file.
49924
49925         * modules/unistr/u8-to-u16: New file.
49926         * lib/unistr/u8-to-u16.c: New file.
49927
49928         * modules/unistr/u8-to-u32: New file.
49929         * lib/unistr/u8-to-u32.c: New file.
49930
49931         * modules/unistr/u16-to-u8: New file.
49932         * lib/unistr/u16-to-u8.c: New file.
49933
49934         * modules/unistr/u16-to-u32: New file.
49935         * lib/unistr/u16-to-u32.c: New file.
49936
49937         * modules/unistr/u32-to-u8: New file.
49938         * lib/unistr/u32-to-u8.c: New file.
49939
49940         * modules/unistr/u32-to-u16: New file.
49941         * lib/unistr/u32-to-u16.c: New file.
49942
49943         * modules/unistr/u8-check: New file.
49944         * modules/unistr/u16-check: New file.
49945         * modules/unistr/u32-check: New file.
49946         * lib/unistr/u8-check.c: New file.
49947         * lib/unistr/u16-check.c: New file.
49948         * lib/unistr/u32-check.c: New file.
49949
49950         * modules/unistr/u8-chr: New file.
49951         * modules/unistr/u16-chr: New file.
49952         * modules/unistr/u32-chr: New file.
49953         * lib/unistr/u8-chr.c: New file.
49954         * lib/unistr/u16-chr.c: New file.
49955         * lib/unistr/u32-chr.c: New file.
49956
49957         * modules/unistr/u8-cmp: New file.
49958         * modules/unistr/u16-cmp: New file.
49959         * modules/unistr/u32-cmp: New file.
49960         * lib/unistr/u8-cmp.c: New file.
49961         * lib/unistr/u16-cmp.c: New file.
49962         * lib/unistr/u32-cmp.c: New file.
49963
49964         * modules/unistr/u8-cpy: New file.
49965         * modules/unistr/u16-cpy: New file.
49966         * modules/unistr/u32-cpy: New file.
49967         * lib/unistr/u8-cpy.c: New file.
49968         * lib/unistr/u16-cpy.c: New file.
49969         * lib/unistr/u32-cpy.c: New file.
49970         * lib/unistr/u-cpy.h: New file.
49971
49972         * modules/unistr/u8-cpy-alloc: New file.
49973         * modules/unistr/u16-cpy-alloc: New file.
49974         * modules/unistr/u32-cpy-alloc: New file.
49975         * lib/unistr/u8-cpy-alloc.c: New file.
49976         * lib/unistr/u16-cpy-alloc.c: New file.
49977         * lib/unistr/u32-cpy-alloc.c: New file.
49978         * lib/unistr/u-cpy-alloc.h: New file.
49979
49980         * modules/unistr/u8-endswith: New file.
49981         * modules/unistr/u16-endswith: New file.
49982         * modules/unistr/u32-endswith: New file.
49983         * lib/unistr/u8-endswith.c: New file.
49984         * lib/unistr/u16-endswith.c: New file.
49985         * lib/unistr/u32-endswith.c: New file.
49986         * lib/unistr/u-endswith.h: New file.
49987
49988         * modules/unistr/u8-mblen: New file.
49989         * modules/unistr/u16-mblen: New file.
49990         * modules/unistr/u32-mblen: New file.
49991         * lib/unistr/u8-mblen.c: New file.
49992         * lib/unistr/u16-mblen.c: New file.
49993         * lib/unistr/u32-mblen.c: New file.
49994
49995         * modules/unistr/u8-mbtouc: New file.
49996         * modules/unistr/u16-mbtouc: New file.
49997         * modules/unistr/u32-mbtouc: New file.
49998         * lib/unistr/u8-mbtouc.c: New file.
49999         * lib/unistr/u16-mbtouc.c: New file.
50000         * lib/unistr/u32-mbtouc.c: New file.
50001
50002         * modules/unistr/u8-mbtouc-safe: New file.
50003         * modules/unistr/u16-mbtouc-safe: New file.
50004         * modules/unistr/u32-mbtouc-safe: New file.
50005         * lib/unistr/u8-mbtouc-safe.c: New file.
50006         * lib/unistr/u16-mbtouc-safe.c: New file.
50007         * lib/unistr/u32-mbtouc-safe.c: New file.
50008
50009         * modules/unistr/u8-move: New file.
50010         * modules/unistr/u16-move: New file.
50011         * modules/unistr/u32-move: New file.
50012         * lib/unistr/u8-move.c: New file.
50013         * lib/unistr/u16-move.c: New file.
50014         * lib/unistr/u32-move.c: New file.
50015         * lib/unistr/u-move.h: New file.
50016
50017         * modules/unistr/u8-next: New file.
50018         * modules/unistr/u16-next: New file.
50019         * modules/unistr/u32-next: New file.
50020         * lib/unistr/u8-next.c: New file.
50021         * lib/unistr/u16-next.c: New file.
50022         * lib/unistr/u32-next.c: New file.
50023
50024         * modules/unistr/u8-prev: New file.
50025         * modules/unistr/u16-prev: New file.
50026         * modules/unistr/u32-prev: New file.
50027         * lib/unistr/u8-prev.c: New file.
50028         * lib/unistr/u16-prev.c: New file.
50029         * lib/unistr/u32-prev.c: New file.
50030
50031         * modules/unistr/u8-set: New file.
50032         * modules/unistr/u16-set: New file.
50033         * modules/unistr/u32-set: New file.
50034         * lib/unistr/u8-set.c: New file.
50035         * lib/unistr/u16-set.c: New file.
50036         * lib/unistr/u32-set.c: New file.
50037         * lib/unistr/u-set.h: New file.
50038
50039         * modules/unistr/u8-startswith: New file.
50040         * modules/unistr/u16-startswith: New file.
50041         * modules/unistr/u32-startswith: New file.
50042         * lib/unistr/u8-startswith.c: New file.
50043         * lib/unistr/u16-startswith.c: New file.
50044         * lib/unistr/u32-startswith.c: New file.
50045         * lib/unistr/u-startswith.h: New file.
50046
50047         * modules/unistr/u8-stpcpy: New file.
50048         * modules/unistr/u16-stpcpy: New file.
50049         * modules/unistr/u32-stpcpy: New file.
50050         * lib/unistr/u8-stpcpy.c: New file.
50051         * lib/unistr/u16-stpcpy.c: New file.
50052         * lib/unistr/u32-stpcpy.c: New file.
50053         * lib/unistr/u-stpcpy.h: New file.
50054
50055         * modules/unistr/u8-stpncpy: New file.
50056         * modules/unistr/u16-stpncpy: New file.
50057         * modules/unistr/u32-stpncpy: New file.
50058         * lib/unistr/u8-stpncpy.c: New file.
50059         * lib/unistr/u16-stpncpy.c: New file.
50060         * lib/unistr/u32-stpncpy.c: New file.
50061         * lib/unistr/u-stpncpy.h: New file.
50062
50063         * modules/unistr/u8-strcat: New file.
50064         * modules/unistr/u16-strcat: New file.
50065         * modules/unistr/u32-strcat: New file.
50066         * lib/unistr/u8-strcat.c: New file.
50067         * lib/unistr/u16-strcat.c: New file.
50068         * lib/unistr/u32-strcat.c: New file.
50069         * lib/unistr/u-strcat.h: New file.
50070
50071         * modules/unistr/u8-strchr: New file.
50072         * modules/unistr/u16-strchr: New file.
50073         * modules/unistr/u32-strchr: New file.
50074         * lib/unistr/u8-strchr.c: New file.
50075         * lib/unistr/u16-strchr.c: New file.
50076         * lib/unistr/u32-strchr.c: New file.
50077
50078         * modules/unistr/u8-strcmp: New file.
50079         * modules/unistr/u16-strcmp: New file.
50080         * modules/unistr/u32-strcmp: New file.
50081         * lib/unistr/u8-strcmp.c: New file.
50082         * lib/unistr/u16-strcmp.c: New file.
50083         * lib/unistr/u32-strcmp.c: New file.
50084
50085         * modules/unistr/u8-strcpy: New file.
50086         * modules/unistr/u16-strcpy: New file.
50087         * modules/unistr/u32-strcpy: New file.
50088         * lib/unistr/u8-strcpy.c: New file.
50089         * lib/unistr/u16-strcpy.c: New file.
50090         * lib/unistr/u32-strcpy.c: New file.
50091         * lib/unistr/u-strcpy.h: New file.
50092
50093         * modules/unistr/u8-strcspn: New file.
50094         * modules/unistr/u16-strcspn: New file.
50095         * modules/unistr/u32-strcspn: New file.
50096         * lib/unistr/u8-strcspn.c: New file.
50097         * lib/unistr/u16-strcspn.c: New file.
50098         * lib/unistr/u32-strcspn.c: New file.
50099         * lib/unistr/u-strcspn.h: New file.
50100
50101         * modules/unistr/u8-strdup: New file.
50102         * modules/unistr/u16-strdup: New file.
50103         * modules/unistr/u32-strdup: New file.
50104         * lib/unistr/u8-strdup.c: New file.
50105         * lib/unistr/u16-strdup.c: New file.
50106         * lib/unistr/u32-strdup.c: New file.
50107         * lib/unistr/u-strdup.h: New file.
50108
50109         * modules/unistr/u8-strlen: New file.
50110         * modules/unistr/u16-strlen: New file.
50111         * modules/unistr/u32-strlen: New file.
50112         * lib/unistr/u8-strlen.c: New file.
50113         * lib/unistr/u16-strlen.c: New file.
50114         * lib/unistr/u32-strlen.c: New file.
50115         * lib/unistr/u-strlen.h: New file.
50116
50117         * modules/unistr/u8-strmblen: New file.
50118         * modules/unistr/u16-strmblen: New file.
50119         * modules/unistr/u32-strmblen: New file.
50120         * lib/unistr/u8-strmblen.c: New file.
50121         * lib/unistr/u16-strmblen.c: New file.
50122         * lib/unistr/u32-strmblen.c: New file.
50123
50124         * modules/unistr/u8-strmbtouc: New file.
50125         * modules/unistr/u16-strmbtouc: New file.
50126         * modules/unistr/u32-strmbtouc: New file.
50127         * lib/unistr/u8-strmbtouc.c: New file.
50128         * lib/unistr/u16-strmbtouc.c: New file.
50129         * lib/unistr/u32-strmbtouc.c: New file.
50130
50131         * modules/unistr/u8-strncat: New file.
50132         * modules/unistr/u16-strncat: New file.
50133         * modules/unistr/u32-strncat: New file.
50134         * lib/unistr/u8-strncat.c: New file.
50135         * lib/unistr/u16-strncat.c: New file.
50136         * lib/unistr/u32-strncat.c: New file.
50137         * lib/unistr/u-strncat.h: New file.
50138
50139         * modules/unistr/u8-strncmp: New file.
50140         * modules/unistr/u16-strncmp: New file.
50141         * modules/unistr/u32-strncmp: New file.
50142         * lib/unistr/u8-strncmp.c: New file.
50143         * lib/unistr/u16-strncmp.c: New file.
50144         * lib/unistr/u32-strncmp.c: New file.
50145
50146         * modules/unistr/u8-strncpy: New file.
50147         * modules/unistr/u16-strncpy: New file.
50148         * modules/unistr/u32-strncpy: New file.
50149         * lib/unistr/u8-strncpy.c: New file.
50150         * lib/unistr/u16-strncpy.c: New file.
50151         * lib/unistr/u32-strncpy.c: New file.
50152         * lib/unistr/u-strncpy.h: New file.
50153
50154         * modules/unistr/u8-strnlen: New file.
50155         * modules/unistr/u16-strnlen: New file.
50156         * modules/unistr/u32-strnlen: New file.
50157         * lib/unistr/u8-strnlen.c: New file.
50158         * lib/unistr/u16-strnlen.c: New file.
50159         * lib/unistr/u32-strnlen.c: New file.
50160         * lib/unistr/u-strnlen.h: New file.
50161
50162         * modules/unistr/u8-strpbrk: New file.
50163         * modules/unistr/u16-strpbrk: New file.
50164         * modules/unistr/u32-strpbrk: New file.
50165         * lib/unistr/u8-strpbrk.c: New file.
50166         * lib/unistr/u16-strpbrk.c: New file.
50167         * lib/unistr/u32-strpbrk.c: New file.
50168         * lib/unistr/u-strpbrk.h: New file.
50169
50170         * modules/unistr/u8-strrchr: New file.
50171         * modules/unistr/u16-strrchr: New file.
50172         * modules/unistr/u32-strrchr: New file.
50173         * lib/unistr/u8-strrchr.c: New file.
50174         * lib/unistr/u16-strrchr.c: New file.
50175         * lib/unistr/u32-strrchr.c: New file.
50176
50177         * modules/unistr/u8-strspn: New file.
50178         * modules/unistr/u16-strspn: New file.
50179         * modules/unistr/u32-strspn: New file.
50180         * lib/unistr/u8-strspn.c: New file.
50181         * lib/unistr/u16-strspn.c: New file.
50182         * lib/unistr/u32-strspn.c: New file.
50183         * lib/unistr/u-strspn.h: New file.
50184
50185         * modules/unistr/u8-strstr: New file.
50186         * modules/unistr/u16-strstr: New file.
50187         * modules/unistr/u32-strstr: New file.
50188         * lib/unistr/u8-strstr.c: New file.
50189         * lib/unistr/u16-strstr.c: New file.
50190         * lib/unistr/u32-strstr.c: New file.
50191         * lib/unistr/u-strstr.h: New file.
50192
50193         * modules/unistr/u8-strtok: New file.
50194         * modules/unistr/u16-strtok: New file.
50195         * modules/unistr/u32-strtok: New file.
50196         * lib/unistr/u8-strtok.c: New file.
50197         * lib/unistr/u16-strtok.c: New file.
50198         * lib/unistr/u32-strtok.c: New file.
50199         * lib/unistr/u-strtok.h: New file.
50200
50201         * modules/unistr/u8-uctomb: New file.
50202         * modules/unistr/u16-uctomb: New file.
50203         * modules/unistr/u32-uctomb: New file.
50204         * lib/unistr/u8-uctomb.c: New file.
50205         * lib/unistr/u16-uctomb.c: New file.
50206         * lib/unistr/u32-uctomb.c: New file.
50207
50208         * MODULES.html.sh (Unicode string functions): Add the new modules.
50209
50210 2007-01-08  Bruno Haible  <bruno@clisp.org>
50211
50212         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50213         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50214         subdirectories.
50215
50216 2007-01-08  Karl Berry  <karl@gnu.org>
50217
50218         * doc/error.texi: mention that main() fns must set program_name
50219         when progname is used.
50220
50221 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50224         WCTYPE_H is empty, for the benefit of builds from non-distclean
50225         directories.  Problem reported by Eric Blake in
50226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50227
50228 2007-01-08  Bruno Haible  <bruno@clisp.org>
50229
50230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50231         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50232         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50233         PROVIDE_CANONICALIZE_FILENAME_MODE.
50234         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50235
50236 2007-01-08  Bruno Haible  <bruno@clisp.org>
50237
50238         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50239         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50240         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50241         * lib/fts.c: Likewise.
50242         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50243
50244 2006-12-25  Bruno Haible  <bruno@clisp.org>
50245
50246         * modules/utf8-ucs4-safe: New file.
50247         * lib/utf8-ucs4-safe.h: New file.
50248         * lib/unistr/utf8-ucs4-safe.c: New file.
50249
50250         * modules/utf16-ucs4-safe: New file.
50251         * lib/utf16-ucs4-safe.h: New file.
50252         * lib/unistr/utf16-ucs4-safe.c: New file.
50253
50254         * MODULES.html.sh (Unicode string functions): Add the new modules.
50255
50256 2007-01-08  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50259         (Depends-on): Add unitypes.
50260         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50261         (u8_mbtouc_aux): Move out to separate file.
50262         (u8_mbtouc): Use ucs4_t, uint8_t types.
50263         * lib/unistr/utf8-ucs4.c: New file.
50264
50265         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50266         (Depends-on): Add unitypes.
50267         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50268         (u16_mbtouc_aux): Move out to separate file.
50269         (u16_mbtouc): Use ucs4_t, uint16_t types.
50270         * lib/unistr/utf16-ucs4.c: New file.
50271
50272         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50273         (Depends-on): Add unitypes.
50274         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50275         (u8_uctomb_aux): Move out to separate file.
50276         (u8_uctomb): Use ucs4_t, uint8_t types.
50277         * lib/unistr/ucs4-utf8.c: New file.
50278
50279         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50280         (Depends-on): Add unitypes.
50281         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50282         (u16_uctomb_aux): Move out to separate file.
50283         (u16_uctomb): Use ucs4_t, uint16_t types.
50284         * lib/unistr/ucs4-utf16.c: New file.
50285
50286 2006-12-25  Bruno Haible  <bruno@clisp.org>
50287
50288         * modules/unitypes: New file.
50289         * lib/unitypes.h: New file.
50290         * MODULES.html.sh (func_all_modules): New section "Unicode string
50291         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50292         this section. Add unitypes.
50293
50294 2007-01-08  Bruno Haible  <bruno@clisp.org>
50295
50296         Avoid variable names that conflict with those from libtool.
50297         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50298         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50299         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50300         library_names_spec to acl_library_names_spec, hardcode_* to
50301         acl_hardcode_*.
50302         Reported by Ralf Wildenhues.
50303
50304 2007-01-08  Bruno Haible  <bruno@clisp.org>
50305
50306         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50307         definition.
50308         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50309         definition.
50310         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50311         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50312         definition.
50313         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50314         definition.
50315         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50316         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50317         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50318         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50319         definition.
50320         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50321         definition.
50322         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50323         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50324         GC_USE_<algorithm>.
50325         * lib/gc-libgcrypt.c: Likewise.
50326         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50327         * modules/gc-arctwo (configure.ac): Likewise.
50328         * modules/gc-des (configure.ac): Likewise.
50329         * modules/gc-hmac-md5 (configure.ac): Likewise.
50330         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50331         * modules/gc-md2 (configure.ac): Likewise.
50332         * modules/gc-md4 (configure.ac): Likewise.
50333         * modules/gc-md5 (configure.ac): Likewise.
50334         * modules/gc-random (configure.ac): Likewise.
50335         * modules/gc-rijndael (configure.ac): Likewise.
50336         * modules/gc-sha1 (configure.ac): Likewise.
50337
50338 2007-01-08  Bruno Haible  <bruno@clisp.org>
50339
50340         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50341         macro definition.
50342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50343         definition.
50344         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50345         definition.
50346         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50347         * modules/fcntl-safer (configure.ac): Likewise.
50348         * modules/fopen-safer (configure.ac): Likewise.
50349         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50350         GNULIB_FWRITEERROR macro definition.
50351
50352 2007-01-08  Bruno Haible  <bruno@clisp.org>
50353
50354         * m4/gnulib-common.m4: New file.
50355         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50356         (func_get_filelist): Add m4/gnulib-common.m4.
50357
50358 2007-01-08  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50361         command.
50362
50363 2007-01-08  Jim Meyering  <jim@meyering.net>
50364
50365         Use a more robust test for a "can't happen" condition.
50366         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50367         narrowed the st_size value.  Presuming the "can't happen" condition
50368         is true, that narrowing could conceivably convert an invalid st_size
50369         value into a valid one.  Instead, use a change based on Matthew
50370         Woehlke's original patch.
50371
50372         Slight readability improvement: use an assert-like macro
50373         in place of literal "abort ()" uses.
50374         * lib/fts.c (fts_assert): Define.
50375         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50376         Use this macro instead of a bare 'abort'.
50377
50378 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50379
50380         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50381         simply work around them.
50382         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50383         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50384         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50385         declaring.
50386         Don't bother to define as macros, since the standard doesn't require it.
50387         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50388         longer worry about IRIX 5.3.
50389         (HAVE_WCTYPE_CTMP_BUG): Remove.
50390
50391 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50394         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50395         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50396         Problems reported by Georg Schwarz for IRIX 5.3.
50397
50398         * gnulib-tool (autoconf_minversion): Take the maximum version number
50399         found, not the minimum.  Problem reported by James Youngman.
50400
50401 2007-01-03  Karl Berry  <karl@gnu.org>
50402
50403         * doc/error.texi: new file, explaining interaction with progname.
50404         * doc/gnulib.texi: include it.  Update copyright.
50405
50406 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50407
50408         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50409         AC_CANONICAL_HOST, to improve autobuild outputs.
50410
50411 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50412             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50413
50414         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50415         sockets, server sockets, and other file descriptors.  Count errors
50416         to compute the return value.  Reorder the code a bit to be easier
50417         to follow.  Don't set event bits that were not requested (except
50418         POLLERR and POLLHUP).
50419
50420 2007-01-01  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50423
50424 2007-01-03  Jim Meyering  <jim@meyering.net>
50425
50426         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50427
50428 2007-01-02  Bruno Haible  <bruno@clisp.org>
50429
50430         * modules/settime (Include): Require timespec.h.
50431         * modules/nanosleep (Include): Likewise.
50432
50433 2007-01-01  Bruno Haible  <bruno@clisp.org>
50434
50435         * gnulib-tool (func_emit_copyright_notice): Bump year.
50436         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50437
50438 2007-01-01  Bruno Haible  <bruno@clisp.org>
50439
50440         Improve support for OpenBSD.
50441         * build-aux/config.rpath (libname_spec): Export.
50442         (library_names_spec): New variable. Export.
50443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50444         library_names_spec from the config.rpath output. Locate shared library
50445         through the name pattern in library_names_spec.
50446
50447 2007-01-01  Eric Blake  <ebb9@byu.net>
50448
50449         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50450
50451 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50452
50453         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50454         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50455         assume the C locale, and avoid an "eval" that could cause trouble.
50456         Problem with SORT reported by Bob Proulx.
50457
50458         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50459         Define.  Trivial patch from Henning Nielsen Lund, originally
50460         sent to bug-grep@gnu.org today.
50461
50462 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50465         struct stat.  Problem reported by Henning Nielsen Lund.
50466         * lib/acl.c: Include acl.h first, to check interface.  Don't
50467         bother to include sys/types.h and sys/stat.h again.
50468
50469 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50470
50471         Import the following change from libc; problem reported by
50472         Sven Verdoolaege.
50473
50474         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50475
50476         [BZ #1373]
50477         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50478
50479 2006-12-28  Jim Meyering  <jim@meyering.net>
50480
50481         * build-aux/announce-gen: Do not assume that the package
50482         builds any of tar.gz, tar.bz2, and .xdelta files.
50483         Suggestion from Simon Josefsson.
50484
50485 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50486
50487         * modules/announce-gen: New file.
50488
50489 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50490
50491         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50492         handles its gotchas now.
50493         * lib/mbswidth.c: Likewise.
50494         * lib/wcwidth.h: Likewise.
50495         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50496         and iswcntrl; the wctype module does this stuff now.
50497         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50499         * modules/mbchar (Depends-on): Add wctype.
50500         * modules/mbswidth (Depends-on): Likewise.
50501         * modules/wcwidth (Depends-on): Likewise.
50502
50503 2006-12-27  Eric Blake  <ebb9@byu.net>
50504
50505         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50506         module uses more than what <wctype.h> is required to provide.
50507
50508 2006-12-26  Eric Blake  <ebb9@byu.net>
50509
50510         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50511
50512 2006-12-26  Eric Blake  <ebb9@byu.net>
50513
50514         * modules/absolute-header: New module.
50515         * modules/fcntl (Depends-on): Depend on it.
50516         * modules/inttypes (Depends-on): Likewise.
50517         * modules/stdint (Depends-on): Likewise.
50518         * modules/sys_stat (Depends-on): Likewise.
50519         * modules/wctype (Depends-on): Likewise.
50520         * MODULES.html.sh (Support for building libraries and
50521         executables): Document it.
50522
50523 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         * gnulib-tool (SED): Remove, undoing previous change.
50526         The problem was that it broke coreutils on Solaris, because
50527         "sed --posix" leaked into a makefile.
50528         (sed): New alias, if 'alias' and GNU sed.
50529
50530 2006-12-24  Jim Meyering  <jim@meyering.net>
50531
50532         Work around an fchownat bug in glibc-2.4:
50533         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50534         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50535         in spite of the -P option.
50536         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50537         New macros.
50538         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50539         * modules/openat (Files): Add lib/fchownat.c.
50540         * lib/openat.c (fchownat): Don't define here.  Move to...
50541         * lib/fchownat.c: ...this new file.
50542
50543 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50544
50545         Fix bug reported by Bruno Haible in
50546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50547         where quotearg.c didn't compile on Mac OS X 10.2 because it
50548         lacks <wchar.h> and wint_t.
50549         * lib/wctype_.h (__wctype_wint_t): New type.
50550         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50551         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50552         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50553         Arg is now of type __wctype_wint_t, not wint_t.
50554         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50555         substitute HAVE_WINT_T.
50556         * modules/wctype (Files): Add m4/wint_t.m4.
50557         (wctype.h): Substitute HAVE_WINT_T.
50558
50559 2006-12-23  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50562
50563 2006-12-23  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50566         S_ISLNK.
50567         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50568         mingw.
50569
50570 2006-12-22  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/copy-file.c: Include acl.h.
50573         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50574         Close the file descriptors only after being done with copy_acl.
50575         * modules/copy-file (Depends-on): Add acl.
50576
50577 2006-12-22  Bruno Haible  <bruno@clisp.org>
50578
50579         * gnulib-tool (SED): New variable.
50580         Use $SED instead of sed everywhere.
50581
50582 2006-12-22  Bruno Haible  <bruno@clisp.org>
50583
50584         * modules/no-c++: New file.
50585         * m4/no-c++.m4: New file.
50586         * MODULES.html.sh (Support for building libraries and executables):
50587         Add no-c++.
50588
50589 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50592         Include <limits.h>, and use its INT_MAX to rewrite the
50593         j loop so that it does not overflow 'int'.  Problem reported by
50594         Ralf Wildenhues in
50595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50596         Play it safe by shifting left by 1 rather than multiplying by 2,
50597         as GCC is less likely to optimize this away when the value
50598         is signed (when it assumes overflow leads to undefined behavior).
50599         Also, don't assume time_t uses two's complement.
50600
50601 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50602
50603         * MODULES.html.sh: New module wctype.
50604         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50605         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50606         <wctype.h>, since the new wctype module should fix this.
50607         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50608         the wctype module should arrange for it.
50609         * lib/regex_internal.h: Likewise.
50610         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50611         since the wctype module should handle this now.
50612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50613         * modules/fnmatch (Depends-on): Add wctype.
50614         * modules/quotearg (Depends-on): Likewise.
50615         * modules/regex (Depends-on): Likewise.
50616
50617 2006-12-19  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50620         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50621
50622 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50623
50624         * modules/savewd (Depends-on): Fix dependency on fcntl.
50625
50626 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50629         conforms to C99, rather than relying on the user's environment
50630         setting of STDINT_H.
50631
50632 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50633         and Eric Blake  <ebb9@byu.net>
50634
50635         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50636         This is more consistent with the other defines here.
50637         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50638         Port to z/OS.  Problem reported by Paul Gilmartin.
50639         Change local vars to use gl_ prefix rather than ac_.
50640         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50641         with other defines.
50642         * modules/double-slash-root: New module.
50643         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50644         (Depends-on): Add double-slash-root.
50645         * MODULES.html.sh (File system functions): Mention new module.
50646
50647 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50648
50649         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50650         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50651         This is for the benefit of gzip, which doesn't do i18n.
50652
50653 2006-12-12  Jim Meyering  <jim@meyering.net>
50654
50655         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50656         Reported by Andreas Schwab <schwab@suse.de>.
50657
50658 2006-12-12  Bruno Haible  <bruno@clisp.org>
50659
50660         Merge these changes.
50661         2006-09-05  Bruno Haible  <bruno@clisp.org>
50662         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50663         iconv_alloc succeeded.
50664         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50665         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50666         test for " && dest " at the end - dest is always != NULL there. Call
50667         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50668         with 2xNULL arguments, also to flush the state storage. Handle the
50669         IRIX iconv behaviour. Realloc the final result, to throw away unused
50670         memory.
50671
50672 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50673
50674         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50675         and fchmodat unconditionally, since glibc 2.4 has them.
50676         Problem reported by Arkadiusz Miskiewicz.
50677
50678 2006-12-10  Bruno Haible  <bruno@clisp.org>
50679
50680         * gnulib-tool (func_import): Show the include files only for those
50681         modules that are copied and specified.
50682         Reported by Karl Berry.
50683
50684 2006-12-08  Jim Meyering  <jim@meyering.net>
50685
50686         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50687         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50688
50689         * build-aux/announce-gen: Add two new options, both optional:
50690         --bootstrap-tools=TOOL_LIST
50691               a comma-separated list of tools, e.g.,
50692               autoconf,automake,bison,gnulib
50693         --gnulib-snapshot-date=DATE
50694               if gnulib is in the bootstrap tool list,
50695               then report this as the snapshot date.
50696               If not specified, use the current date/time.
50697               If you specify a date here, be sure it's UTC.
50698
50699 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50700
50701         * tests/test-argp-2.sh: Fix test to match actual output.
50702         (func_compare): Fix sed script to be portable.
50703
50704 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50705
50706         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50707         workaround for this case.  It is not autoconfigured now; offhand
50708         it's hard to see how to autoconfigure it.
50709
50710 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50711
50712         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50713         a directory that is about to be chowned.  Such a directory's
50714         initial file permissions should permit the owner only and this
50715         should not be changed until after the chown, since the group and
50716         other bits would be incorrect if they granted permission before
50717         the chown.
50718
50719         Fix porting problem for iswctype reported by Georg Schwarz in:
50720         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50721         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50722         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50724         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50725
50726 2006-12-03  Jim Meyering  <jim@meyering.net>
50727
50728         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50729         p->fts_statp may not yet be defined.
50730         (fts_read): Instead, set it in the caller, once p->fts_statp is
50731         sure to be defined, and corresponds to a top-level directory.
50732         This bug made du -x fail.  Here's the coreutils test case:
50733         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50734         Reported by Mike Frysinger.
50735
50736 2006-12-01  Jim Meyering  <jim@meyering.net>
50737
50738         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50739         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50740         Reported by Simon Josefsson.
50741
50742 2006-11-30  Jim Meyering  <jim@meyering.net>
50743
50744         * m4/warning.m4: Use the all-permissive copyright notice
50745         recommended by RMS (rather than LGPL).
50746         * m4/vararrays.m4: Likewise.
50747         * m4/flexmember.m4: Likewise.
50748
50749 2006-11-29  Bruno Haible  <bruno@clisp.org>
50750
50751         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50752         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50753         using +=.
50754         Reported by Simon Josefsson <simon@josefsson.org>.
50755
50756 2006-11-28  James Youngman <jay@gnu.org>
50757
50758         * README: Advise users that they might find the bug-gnulib@gnu.org
50759         and autotools-announce@gnu.org mailing lists useful.
50760
50761 2006-11-28  Bruno Haible  <bruno@clisp.org>
50762
50763         * m4/ptrdiff_max.m4: Remove file.
50764
50765 2006-11-21  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50768         _AC_COMPUTE_INT.
50769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50770         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50771         _AC_COMPUTE_INT.
50772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50773         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50774         _AC_COMPUTE_INT.
50775         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50776
50777 2006-11-28  Jim Meyering  <jim@meyering.net>
50778
50779         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50780         warning from "gcc -Wshadow" about shadowing the builtin.
50781
50782 2006-11-27  Bruno Haible  <bruno@clisp.org>
50783
50784         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50785         _AC_COMPUTE_INT.
50786         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50787
50788 2006-11-27  Bruno Haible  <bruno@clisp.org>
50789             Paul Eggert  <eggert@cs.ucla.edu>
50790
50791         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50792
50793 2006-11-26  Bruno Haible  <bruno@clisp.org>
50794
50795         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50796         noinst_LTLIBRARIES.
50797
50798 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50799             Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50802         if compiling with "gcc -ansi".
50803
50804 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50805
50806         Fix some incompatibilities with gcc -ansi -pedantic.
50807         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50808         if compiling pedantically with GCC, unless it's C99 or later.
50809         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50810         it mishandles gcc -ansi -pedantic as well.
50811         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50812         if gcc -pedantic.
50813         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50814         initializers for struct if -pedantic, unless it's C99 or later.
50815
50816 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50817
50818         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50819         Don't close an fd more than once. Identical atimes indicate
50820         success, not failure.
50821
50822 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50823
50824         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50825
50826 2006-11-23  Jim Meyering  <jim@meyering.net>
50827
50828         * build-aux/announce-gen: New file.  From coreutils.
50829
50830 2006-11-22  Jim Meyering  <jim@meyering.net>
50831
50832         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50833         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50834         (fts_read): Use a temporary to narrow the overused st_size member
50835         before using it in a switch statement.  Reported by Matthew Woehlke.
50836
50837         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50838         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50839
50840 2006-11-20  Bruno Haible  <bruno@clisp.org>
50841
50842         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50843         changequote instead of pairs of brackets.
50844         Reported by Andreas Schwab <schwab@suse.de>.
50845
50846 2006-11-21  Jim Meyering  <jim@meyering.net>
50847
50848         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50849         so as to remain compatible with older compilers.
50850         Patch from Michael Deutschmann.
50851
50852 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * MODULES.html.sh (File system functions): Add openat.
50855
50856         * lib/openat.h (rpl_fstatat): New macro, if
50857         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50858         (fstatat): Define to rpl_fstatat under the same conditions,
50859         unless COMPILING_FSTATAT.
50860         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50861         seems to have the bug.
50862         * lib/fstatat.c: New file.
50863         * modules/openat (Files): Add it.
50864
50865 2006-11-20  Bruno Haible  <bruno@clisp.org>
50866
50867         * Makefile: New file.
50868
50869 2006-11-20  Jim Meyering  <jim@meyering.net>
50870
50871         The beginnings of syntax-related checks for gnulib.
50872         * lib/Makefile: New file.
50873         * lib/t-idcache: New script.  Ensure that the two halves of
50874         idcache.c stay in sync.
50875
50876         * lib/idcache.c: Adjust comments in user- and group- portions to
50877         be more accurate, and to be consistent with one another.
50878
50879 2006-11-20  Jim Meyering  <jim@meyering.net>
50880
50881         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50882         continue using the flexible array member (thus, this module performs
50883         half as many malloc calls), with the addition that...
50884         (getgroup, getuser): Consistently record a non-match via an empty
50885         "name" string, and map an empty string match to a NULL return value.
50886         * modules/idcache (Depends-on): Re-add flexmember.
50887
50888         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50889         (getuidbyname, getgroup, getgidbyname): Likewise.
50890
50891         Use cleaner syntax: NULL rather than 0.
50892         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50893
50894 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50897         It mishandled the case where the group was missing.
50898         Problem reported by Greg Schafer.
50899         * modules/idcache: Likewise.
50900
50901 2006-11-18  Jim Meyering  <jim@meyering.net>
50902
50903         * check-module (%exempt_header): Add exception for some
50904         conditionally-included headers.
50905
50906         * modules/i-ring (Depends-on): Add verify.
50907         (License): Change to LGPL.
50908
50909 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50912         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50913         and inttostr.h.  Use snprintf rather than uinttostr, so that
50914         LGPLed code doesn't depend on GPLed.
50915
50916 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50917
50918         * modules/inline (License): Change from GPL to LGPL.
50919
50920 2006-11-17  Jim Meyering  <jim@meyering.net>
50921
50922         * modules/d-type (License): Switch to LGPL.
50923
50924 2006-11-15  Bruno Haible  <bruno@clisp.org>
50925
50926         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50927
50928 2006-11-15  Eric Blake  <ebb9@byu.net>
50929
50930         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50931         the module dependency.
50932
50933 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50934             Bruno Haible  <bruno@clisp.org>
50935
50936         * gnulib-tool (func_create_testdir): Add license consistency check.
50937
50938 2006-11-15  Eric Blake  <ebb9@byu.net>
50939
50940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50941         random "(cached)" in configure output.
50942
50943 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50944
50945         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50946         test for conforming inttypes.h is both announced and cached.
50947
50948         * MODULES.html.sh (seen_modules, seen_files): New variables.
50949         (func_module): Rewrite to use a few less gnulib-tool and sed
50950         invocations.  Avoid a couple of quadratic algorithms for ...
50951         (missed_modules, missed_files): ... these, with ...
50952         (func_append, func_tmpdir): ... these new functions, from
50953         gnulib-tool.  Analogously, install traps for cleanup.
50954
50955         * tests/test-gc.c (main): Remove unused variables.
50956         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50957
50958 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         * modules/inttostr (License): Change to LGPL.
50961
50962 2006-11-14  Eric Blake  <ebb9@byu.net>
50963
50964         * modules/tempname (License): Change to LGPL.
50965
50966 2006-11-14  Eric Blake  <ebb9@byu.net>
50967
50968         * doc/functions.texi (Function Portability): *printf functions on
50969         Cygwin now understand all POSIX size specifiers.
50970
50971 2006-11-14  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/c-ctype (License): Change to LGPL.
50974
50975 2006-11-12  Bruno Haible  <bruno@clisp.org>
50976
50977         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50978         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50979         for GNOME libraries, for which the include files are installed in
50980         subdirectories of $prefix/include.
50981
50982 2006-11-12  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/lib-link.m4: Require at least autoconf-2.54.
50985         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50986         name to underscores for the --with option.
50987
50988 2006-11-13  Bruno Haible  <bruno@clisp.org>
50989
50990         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50991         the tests directory.
50992         Reported by Ralf Wildenhues.
50993
50994 2006-11-13  Bruno Haible  <bruno@clisp.org>
50995
50996         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50997         (func_emit_initmacro_end): Undo the override here.
50998         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50999         Works around the famous automake error in coreutils.
51000
51001 2006-11-13  Eric Blake  <ebb9@byu.net>
51002
51003         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51004         element, not its node.
51005
51006 2006-11-12  Bruno Haible  <bruno@clisp.org>
51007
51008         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51009         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51010
51011 2006-11-12  Bruno Haible  <bruno@clisp.org>
51012
51013         * gnulib-tool: New option --local-symlink.
51014         (func_usage): Document it.
51015         (lsymbolic): New variable.
51016         (func_import, func_create_testdir): If --symlink was not specified,
51017         test whether --local-symlink was specified and the file comes from
51018         the local_gnulib_dir.
51019
51020 2006-11-12  Bruno Haible  <bruno@clisp.org>
51021
51022         * gnulib-tool (func_ln): New function.
51023         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51024
51025 2006-11-12  Bruno Haible  <bruno@clisp.org>
51026
51027         Finish support for source files in subdirectories.
51028         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51029         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51030         AUTOMAKE_OPTIONS.
51031         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51032
51033 2006-11-12  Bruno Haible  <bruno@clisp.org>
51034
51035         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51036         EXTRA_lib_SOURCES augmentation.
51037         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51038
51039 2006-11-12  Jim Meyering  <jim@meyering.net>
51040
51041         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51042         file descriptors.  This also averts a failure on systems with
51043         native openat support when a traversed directory lacks "x" access.
51044         * lib/fts_.h: Include "i-ring.h"
51045         (struct FTS) [fts_fd_ring]: New member.
51046         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51047         (FCHDIR): Add parentheses.
51048         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51049         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51050         When descending, rather than simply closing the previous
51051         fts_cwd_fd value, push that file descriptor onto the ring.
51052         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51053         (fts_open): Initialize the new fd_ring member.
51054         (fts_close): Clear the ring.
51055         (fts_safe_changedir): When possible, use our new fd_ring to skip
51056         the diropen and fstat and dev/ino comparison that would normally
51057         accompany a virtual `chdir ("..")'.
51058
51059         * modules/fts (Depends-on): Add i-ring.
51060         * modules/i-ring: New module.
51061         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51062         * m4/i-ring.m4: New file.
51063
51064 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51065
51066         * gnulib-tool (func_create_testdir): Fix replacement of
51067         `build-aux' in configure.ac.  Run autotools in gltests
51068         subdirectory.
51069         (func_create_testdir, func_create_megatestdir, test): There is
51070         no need for '--force' in most autotool invocations in a new
51071         tree.  Actually fail the whole test if any of the tools, or the
51072         configure or make stages fail.
51073
51074         Sync from Automake.
51075         * build-aux/gnupload: Revert last change.  Add pointer to upload
51076         instructions of the GNU Maintenance Instructions.
51077         Suggestion by Karl Berry.
51078
51079 2006-11-10  Jim Meyering  <jim@meyering.net>
51080
51081         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51082
51083 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51086         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51087         (bind_textdomain_codeset) [! ENABLE_NLS]:
51088         Evaluate all the arguments.  That way, callers get compatible behavior
51089         if the arguments have side effects.  Also, it avoids some GCC
51090         diagnostics in some cases; Joel E. Denny reported problems when Bison
51091         was configured with --enable-gcc-warnigs.
51092
51093 2006-11-10  Jim Meyering  <jim@meyering.net>
51094
51095         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51096         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51097         account.
51098
51099 2006-11-10  Jim Meyering  <jim@meyering.net>
51100
51101         * modules/inline: New file/module.
51102         * modules/xalloc (Files): Remove m4/inline.m4.
51103         (Depends-on): Add inline, instead.
51104         * modules/oset: Likewise.
51105         * modules/list: Likewise.
51106
51107 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51108
51109         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51110         Problem reported by Matthew Woehlke.
51111
51112 2006-11-09  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/tempname.c (gen_tempname): Remove variant that invokes
51115         __gen_tempname.
51116         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51117         __gen_tempname.
51118
51119 2006-11-08  Bruno Haible  <bruno@clisp.org>
51120
51121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51122         to 'yes' instead of 'cross-compiling'.
51123
51124 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         * lib/quotearg.h (quotearg_free): New decl.
51127         * lib/quotearg.c (quotearg_free): New function.
51128         (slot0, nslots, slotvec0, slotvec):
51129         Now file-scope so that quotearg_free can get at them.
51130
51131 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51132
51133         Sync from Automake.
51134         * build-aux/gnupload: Add missing 'gnu' to example URL.
51135         Report by Karl Berry.
51136
51137 2006-11-08  Bruno Haible  <bruno@clisp.org>
51138
51139         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51140         Suggested by Paul Eggert.
51141
51142 2006-11-08  Jim Meyering  <jim@meyering.net>
51143
51144         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51145         It's already included if !_LIBC.
51146         (fts_safe_changedir): Add a comment.
51147
51148 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51151         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51152         Matthew Woehlke.
51153
51154         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51155         definitions up, to avoid colliding with change below.
51156         (static_inline) [HAVE_INLINE]: New macro.
51157         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51158         Provide extern decls when !HAVE_INLINE.  Do not define unless
51159         static_inline is defined, either by us or by xmalloc.c.  Use
51160         static_inline rather than static inline.
51161         (XCALLOC): Optimize sizeof(T) = 1 case.
51162         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51163
51164 2006-11-07  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51167         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51168         AC_C_INLINE.
51169         * modules/xalloc (Files): Add m4/inline.m4.
51170
51171 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51172
51173         * README: Fix typo.
51174         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51175         (Miscellanous Notes): ...from this.
51176
51177 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51180         Mention that offsetof should be used instead of sizeof.
51181         From Bruno Haible.
51182
51183 2006-11-07  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51186
51187 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51188
51189         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51190         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51191         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51192         (gl_tree_add_before, gl_tree_add_after):
51193         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51194         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51195         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51196         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51197         (gl_linked_add_after, gl_linked_add_at): Likewise.
51198         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51199         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51200         (gl_tree_add_before, gl_tree_add_after): Likewise.
51201         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51202         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51203         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51204
51205 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51206
51207         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51208
51209 2006-11-06  Bruno Haible  <bruno@clisp.org>
51210
51211         * m4/inline.m4: New file.
51212         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51213         * modules/list (Files): Add m4/inline.m4.
51214         * modules/oset (Files): Likewise.
51215
51216 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         * lib/idcache.c: Include <stddef.h>, for offsetof.
51219         (struct userid.name): Change from char * to a flexible array member.
51220         All uses changed.
51221         * modules/idcache (Depends-on): Add flexmember.
51222
51223         * MODULES.html.sh (Core language properties): New module flexmember.
51224         * modules/flexmember, m4/flexmember.m4: New files.
51225
51226         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51227         inline functions that are identical with the old xnmalloc_inline,
51228         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51229         that we can avoid some unnecessary integer multiplications and
51230         divisions in the common case where the element size is known at
51231         compile time.
51232         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51233         needed.
51234         (xnboundedmalloc): Remove.
51235         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51236         arguments, for consistency with rest of this header.
51237         (xcharalloc): Rewrite using XNMALLOC.
51238         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51239         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51240         versions have been moved to lib/xalloc.h and renamed to be the
51241         non-*_inline versions.
51242         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51243         and xnrealloc functions, since those functions are now inline and
51244         now call us.
51245         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51246         renaming described above.
51247         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51248         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51249         captures the dependency in AC_C_INLINE.
51250
51251         New module canonicalize-lgpl, proposed by Charles Wilson in
51252         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51253         with a few small changes afterwards.
51254         * MODULES.html.sh (File system functions): New module
51255         canonicalize-lgpl.
51256         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51257         and canonicalize_file_name.
51258         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51259         * modules/canonicalize-lgpl: New files.
51260
51261 2006-11-05  Bruno Haible  <bruno@clisp.org>
51262
51263         * gnulib-tool (func_import, func_create_testdir): Create directories
51264         also for files in subdirectories of lib/.
51265
51266 2006-11-05  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51269         ANSI C compliant.
51270
51271 2006-11-03  Bruno Haible  <bruno@clisp.org>
51272
51273         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51275         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51276         (xnboundedmalloc): New inline function.
51277         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51278         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51279         xmalloc.
51280         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51281         xmalloc.
51282         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51283         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51284         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51285         xmalloc.
51286         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51287         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51288         xmalloc.
51289         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51290         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51291         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51292         xmalloc.
51293         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51294         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51295         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51296         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51297         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51298         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51299         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51300
51301 2006-11-03  Bruno Haible  <bruno@clisp.org>
51302
51303         * lib/c-ctype.h [C++]: Define functions without name mangling.
51304         * lib/fwriteerror.h [C++]: Likewise.
51305         * lib/gcd.h [C++]: Likewise.
51306         * lib/linebreak.h [C++]: Likewise.
51307
51308 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51311         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51312         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51314         Check for functions and headers just once.
51315         Check for declaration of canonicalize_file_name.
51316         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51317
51318 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51319
51320         * gnulib-tool (func_import): Fix typo in actioncmd.
51321
51322 2006-11-02  Bruno Haible  <bruno@clisp.org>
51323
51324         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51325         newline sequence in the Makefile.am snippet as a space, like "make"
51326         does.
51327         Reported by Roger Persson <perrog@gmail.com>.
51328
51329 2006-11-01  Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51332         already declared in <string.h>.
51333         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51334
51335 2006-11-01  Bruno Haible  <bruno@clisp.org>
51336
51337         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51338         * lib/strcase.h: Include <string.h>.
51339         (strcasecmp): Define to rpl_strcasecmp here.
51340
51341 2006-11-01  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51344
51345 2006-11-01  Eric Blake  <ebb9@byu.net>
51346
51347         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51348
51349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51350
51351 2006-10-29  Bruno Haible  <bruno@clisp.org>
51352
51353         Make it compile in C++ mode.
51354         * lib/full-write.c (full_rw): Add a cast.
51355
51356 2006-11-01  Bruno Haible  <bruno@clisp.org>
51357
51358         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51359         be POSIX compliant.
51360         Reported by Roger Persson <perrog@gmail.com>.
51361
51362 2006-11-01  Eric Blake  <ebb9@byu.net>
51363
51364         * lib/getopt_.h: Fix comments.
51365
51366 2006-10-31  Eric Blake  <ebb9@byu.net>
51367
51368         * modules/tmpdir (Depends-on): Add sys_stat.
51369         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51370         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51371         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51372         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51373         tempname.
51374
51375 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         Avoid some C++ diagnostics reported by Bruno Haible.
51378         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51379         xmalloc.
51380         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51381         (struct slotvec): Move to top level.
51382         (quotearg_n_options): Rewrite to avoid xmalloc.
51383         * lib/xalloc.h (xcharalloc): New function.
51384         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51385         [defined __cplusplus]: Add function template that provides result
51386         type propagation.  This part of the change is from Bruno Haible.
51387
51388 2006-10-29  Bruno Haible  <bruno@clisp.org>
51389
51390         Make it compile in C++ mode.
51391         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51392         * lib/strnlen1.c (strnlen1): Cast memchr result.
51393         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51394         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51395         (create_temp_dir): Rename local variable 'template'.
51396         (compile_csharp_using_sscli): Add cast.
51397         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51398         * lib/findprog.c (find_in_path): Likewise.
51399         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51400         * lib/wait-process.c (register_slave_subprocess): Likewise.
51401
51402 2006-10-22  Bruno Haible  <bruno@clisp.org>
51403
51404         * modules/tsearch: New file.
51405         * lib/tsearch.h: New file.
51406         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51407         * m4/tsearch.m4: New file.
51408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51409
51410 2006-10-29  Eric Blake  <ebb9@byu.net>
51411
51412         * lib/arcfour.c: Assume config.h.
51413         * lib/arctwo.c: Likewise.
51414         * lib/base64.c: Likewise.
51415         * lib/check-version.c: Likewise.
51416         * lib/crc.c: Likewise.
51417         * lib/des.c: Likewise.
51418         * lib/gc-gnulib.c: Likewise.
51419         * lib/gc-libgcrypt.c: Likewise.
51420         * lib/gc-pbkdf2-sha1.c: Likewise.
51421         * lib/getaddrinfo.c: Likewise.
51422         * lib/getdelim.c: Likewise.
51423         * lib/getline.c: Likewise.
51424         * lib/hmac-md5.c: Likewise.
51425         * lib/hmac-sha1.c: Likewise.
51426         * lib/iconvme.c: Likewise.
51427         * lib/md2.c: Likewise.
51428         * lib/md4.c: Likewise.
51429         * lib/memxor.c: Likewise.
51430         * lib/read-file.c: Likewise.
51431         * lib/readline.c: Likewise.
51432         * lib/rijndael-alg-fst.c: Likewise.
51433         * lib/rijndael-api-fst.c: Likewise.
51434         * lib/xgetdomainname.c: Likewise.
51435
51436 2006-10-28  Eric Blake  <ebb9@byu.net>
51437
51438         * lib/xstrndup.c: Assume config.h.
51439
51440 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51443         stat-macros.h is now for our own macros, whereas stat_h is for
51444         macros in the <sys/stat.h> name space.
51445         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51446         (STAT_MACROS_H): Remove.
51447         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51448         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51449         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51450         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51451         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51452         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51453         Move these macros to ...
51454         * lib/stat_.h: here.  Don't include stat-macros.h.
51455         * lib/canonicalize.c: Don't include stat-macros.h.
51456         * lib/chown.c: Likewise.
51457         * lib/euidaccess.c: Likewise.
51458         * lib/file-type.c: Likewise.
51459         * lib/filemode.c: Likewise.
51460         * lib/glob.c: Likewise.
51461         * lib/isapipe.c: Likewise.
51462         * lib/lchown.c: Likewise.
51463         * lib/lstat.c: Likewise.
51464         * lib/mkdir-p.c: Likewise.
51465         * lib/rmdir.c: Likewise.
51466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51468         unless mkdir isn't declared, to speed up 'configure'.
51469         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51470         would define all the S_* symbols.
51471         * modules/canonicalize (Depends-on):
51472         Depend on sys_stat, not stat-macros.
51473         * modules/chown: Likewise.
51474         * modules/euidaccess: Likewise.
51475         * modules/filemode: Likewise.
51476         * modules/file-type: Likewise.
51477         * modules/glob: Likewise.
51478         * modules/isapipe: Likewise.
51479         * modules/lchown: Likewise.
51480         * modules/lstat: Likewise.
51481         * modules/mkancesdirs: Likewise.
51482         * modules/rmdir: Likewise.
51483         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51484         * modules/modechange: Likewise.
51485         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51486         (configure.ac): Remove gl_STAT_MACROS.
51487         * modules/sys_stat (Depends-on): Remove stat-macros.
51488
51489 2006-10-27  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/signed.m4: Remove file.
51492         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51493         invocation.
51494         * modules/vasnprintf (Files): Remove m4/signed.m4.
51495
51496 2006-10-27  Bruno Haible  <bruno@clisp.org>
51497
51498         Update to GNU gettext 0.16.
51499         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51500         m4/inttypes-h.m4, m4/signed.m4.
51501         * m4/gettext.m4: Update to GNU gettext 0.16.
51502         * m4/intl.m4: New file, from GNU gettext.
51503         * m4/intldir.m4: New file, from GNU gettext.
51504         * config/srclist.txt: Update
51505
51506 2006-10-27  Eric Blake  <ebb9@byu.net>
51507
51508         * MODULES.html.sh: Document tempname.
51509         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51510         dependencies.
51511         (Files): Move lib/tempname.c...
51512         * modules/tempname: ...to this new module.
51513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51514         (gl_PREREQ_TEMPNAME): Move...
51515         * m4/tempname.m4: ...to this new file.
51516         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51517         * modules/sys_stat (Depends-on): Add stat-macros.
51518         * lib/stat_.h (includes): Pick up stat macros.
51519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51520         if stat macros are broken.
51521         * lib/tempname.c (includes): No need to include "stat-macros.h".
51522         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51523         (direxists, __path_search) [!_LIBC]: Don't compile these in
51524         gnulib; the tmpdir module covers that.
51525         * lib/tempname.h: New file.
51526
51527 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * COPYING: Explain how gnulib-tool converts licence headers.
51530         Almost all wording by Eric Blake.
51531
51532 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * lib/mbchar.h (is_basic_table): Make read-only.
51535         * lib/mbchar.c (is_basic_table): Likewise.
51536         Reported by John Darrington.
51537
51538 2006-10-25  Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/progname.h (set_program_name): Undefine before defining.
51541
51542 2006-10-25  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51545         false for non-gcc C++ compilers.
51546         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51547
51548 2006-10-24  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51551         iconv implementations like Irix iconv.
51552
51553 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         * modules/vararrays: New file.
51556         * m4/vararrays.m4: New file, taken from diffutils.
51557         * MODULES.html.sh: New module vararrays.
51558
51559 2006-10-24  Karl Berry  <karl@gnu.org>
51560
51561         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51562         Don't call GNU Unix.
51563
51564 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51565
51566         * users.txt: Add Libtool.
51567
51568         Sync from Libtool:
51569
51570         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51573         to gnulib's policy of including config.h unconditionally.
51574
51575 2006-10-24  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/wcwidth (Files): Add m4/wint_t.m4.
51578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51579         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51580
51581 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51582
51583         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51584         to pacify GCC with some -W flags enabled.  Problem reported by
51585         Bruno Haible.
51586
51587 2006-10-24  Jim Meyering  <jim@meyering.net>
51588
51589         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51590         Reported by Karl Berry.
51591
51592 2006-10-23  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51595
51596 2006-10-24  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/gl_list.h: Use C comment style, not C++ comment style.
51599
51600 2006-10-23  Eric Blake  <ebb9@byu.net>
51601
51602         * lib/getaddrinfo.c (includes): Add missing include.
51603
51604 2006-10-23  Bruno Haible  <bruno@clisp.org>
51605             Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         Ability to rename obstack_free.
51608         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51609         obstack_free.
51610         (obstack_free): Invoke the __obstack_free macro.
51611         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51612
51613 2006-10-23  Bruno Haible  <bruno@clisp.org>
51614             Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51617         __argc, __argv from the declaration. (They are defined as macros on
51618         mingw.)
51619
51620 2006-10-22  Bruno Haible  <bruno@clisp.org>
51621
51622         * doc/gnulib-intro.texi: New file.
51623         * doc/gnulib.texi: Include it.
51624
51625 2006-10-21  Bruno Haible  <bruno@clisp.org>
51626
51627         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51628         "Introduction", "Miscellanous Notes", "Particular Modules".
51629
51630 2006-10-21  Bruno Haible  <bruno@clisp.org>
51631
51632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51633         Change mostlyclean-local rule to avoid sh syntax error from bash
51634         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51635
51636 2006-10-23  Jim Meyering  <jim@meyering.net>
51637
51638         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51639         in place of snprintf.
51640
51641         * modules/inttostr (Files): Add lib/uinttostr.c.
51642         * lib/uinttostr.c (inttostr): New file/function.
51643         * lib/inttostr.h (uinttostr): Declare.
51644         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51645         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51646         Add uinttostr.
51647         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51648
51649 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         * lib/canonicalize.c (ELOOP): Define if not already defined.
51652         Problem reported by Bruno Haible in
51653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51654
51655 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51658         Problem reported by Perry Smith and Ville Laurikari.
51659
51660         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51661         uses.
51662
51663 2006-10-19  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51666         for mingw.
51667
51668 2006-10-19  Bruno Haible  <bruno@clisp.org>
51669
51670         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51671         Needed for mingw.
51672
51673 2006-10-19  Bruno Haible  <bruno@clisp.org>
51674
51675         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51676
51677 2006-10-19  Bruno Haible  <bruno@clisp.org>
51678
51679         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51680         it.
51681
51682 2006-10-19  Bruno Haible  <bruno@clisp.org>
51683
51684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51685         invocation.
51686
51687 2006-10-19  Bruno Haible  <bruno@clisp.org>
51688
51689         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51690         mountlist by default.
51691
51692 2006-10-16  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/c-strstr.c: Include c-strstr.h.
51695
51696 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51697
51698         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51699         in a slash.
51700
51701 2006-10-18  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/lock.h [C++]: Wrap definitions in extern "C".
51704
51705 2006-10-18  Bruno Haible  <bruno@clisp.org>
51706
51707         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51708         gl_LIBOBJS list.
51709
51710 2006-10-18  Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51713
51714 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51715
51716         * lib/xstrtol.h: Include gettext.h.
51717         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51718         Problem reported by Eric Blake.
51719         * modules/xstrtol (Depends-on): Add gettext-h.
51720
51721 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51722
51723         * lib/strftime.c (advance): New macro.
51724         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51725         incomplete type, so you can't add 0 to it.  Problem and patch
51726         reported by Eelco Dolstra for dietlibc.
51727
51728 2006-10-18  Jim Meyering  <jim@meyering.net>
51729
51730         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51731         type for a local, and rename it: s/up/user_proc/.
51732
51733 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51734
51735         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51736         READ_UTMP_USER_PROCESS.
51737         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51738
51739 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51742         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51743
51744 2006-10-17  Eric Blake  <ebb9@byu.net>
51745
51746         * lib/sigprocmask.c (sigprocmask): Fix typo.
51747
51748         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51749
51750         * modules/clean-temp (Makefile.am): Don't add to make output...
51751         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51752         config.h.
51753
51754 2006-10-17  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51757         differently if DEFAULT_TEXT_DOMAIN is set.
51758
51759 2006-10-16  Bruno Haible  <bruno@clisp.org>
51760
51761         * lib/clean-temp.c: Include fwriteerror.h.
51762
51763 2006-10-16  Bruno Haible  <bruno@clisp.org>
51764
51765         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51766
51767 2006-10-16  Bruno Haible  <bruno@clisp.org>
51768
51769         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51770         * lib/sigprocmask.h: Include <sys/types.h>.
51771         (sigset_t): Use the system's definition if present.
51772
51773 2006-10-17  Eric Blake  <ebb9@byu.net>
51774
51775         * lib/xvasprintf.c (includes): Assume config.h.
51776         * lib/xasprintf.c (includes): Likewise.
51777
51778 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51779
51780         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51781         at least as wide as intmax_t.
51782
51783 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51784
51785         (Imported from Automake.)
51786         * build-aux/gnupload: Update to version 1.1 of directive file.
51787
51788 2006-10-16  Eric Blake  <ebb9@byu.net>
51789
51790         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51791         match Automake 1.10a.
51792
51793 2006-10-14  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/sigprocmask: New file.
51796         * lib/sigprocmask.h: New file.
51797         * lib/sigprocmask.c: New file.
51798         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51799         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51800         request sigprocmask.o.
51801         (gl_PREREQ_SIGPROCMASK): New macro.
51802         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51803         (Depends-on): Add sigprocmask.
51804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51805         gt_SIGNALBLOCKING. Test for 'raise' only once.
51806         * lib/fatal-signal.c: Include sigprocmask.h.
51807         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51808         unblock_fatal_signals): Define always.
51809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51810         sigprocmask.
51811
51812 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51813
51814         Sync from Automake.
51815         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51816         which incorrectly sets the mode of an existing destination
51817         directory.  In some cases the unpatched install-sh could do the
51818         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51819         system.  We hope this is rare in practice, but it's clearly worth
51820         fixing.  Problem reported by Alex Unleashed in
51821         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51822         Also, don't bother to check for -m bugs unless we're using -m;
51823         suggested by Stepan Kasal.
51824
51825 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51826
51827         Sync from Automake.
51828         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51829         `-c' flag, so they appear at the same position as in %FASTDEP%
51830         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51831         which ignores unknown options only after the first non-option.
51832         Bug report against M4 by Nelson H. F. Beebe.
51833
51834 2006-10-13  Jim Meyering  <jim@meyering.net>
51835
51836         Fix a bug in yesterday's change.
51837         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51838         p->fts_statp->st_dev would be used uninitialized.
51839         Ensures that we always call fts_stat on the very first entry.
51840         Miklos Szeredi reported that find -xdev stopped working.
51841
51842 2006-10-12  Bruno Haible  <bruno@clisp.org>
51843
51844         * gnulib-tool (func_get_automake_snippet): Append an automatically
51845         computed EXTRA_DIST augmentation.
51846         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51847         * modules/alloca-opt (Makefile.am): Likewise.
51848         * modules/allocsa (Makefile.am): Likewise.
51849         * modules/arcfour (Makefile.am): Likewise.
51850         * modules/arctwo (Makefile.am): Likewise.
51851         * modules/argmatch (Makefile.am): Likewise.
51852         * modules/argz (Makefile.am): Likewise.
51853         * modules/atexit (Makefile.am): Likewise.
51854         * modules/backupfile (Makefile.am): Likewise.
51855         * modules/byteswap (Makefile.am): Likewise.
51856         * modules/c-strtod (Makefile.am): Likewise.
51857         * modules/c-strtold (Makefile.am): Likewise.
51858         * modules/calloc (Makefile.am): Likewise.
51859         * modules/canon-host (Makefile.am): Likewise.
51860         * modules/canonicalize (Makefile.am): Likewise.
51861         * modules/chdir-long (Makefile.am): Likewise.
51862         * modules/chdir-safer (Makefile.am): Likewise.
51863         * modules/check-version (Makefile.am): Likewise.
51864         * modules/chown (Makefile.am): Likewise.
51865         * modules/cloexec (Makefile.am): Likewise.
51866         * modules/close-stream (Makefile.am): Likewise.
51867         * modules/closeout (Makefile.am): Likewise.
51868         * modules/crc (Makefile.am): Likewise.
51869         * modules/csharpexec (Makefile.am): Likewise.
51870         * modules/cycle-check (Makefile.am): Likewise.
51871         * modules/des (Makefile.am): Likewise.
51872         * modules/dev-ino (Makefile.am): Likewise.
51873         * modules/dirfd (Makefile.am): Likewise.
51874         * modules/dirname (Makefile.am): Likewise.
51875         * modules/dup2 (Makefile.am): Likewise.
51876         * modules/eealloc (Makefile.am): Likewise.
51877         * modules/error (Makefile.am): Likewise.
51878         * modules/euidaccess (Makefile.am): Likewise.
51879         * modules/exclude (Makefile.am): Likewise.
51880         * modules/exitfail (Makefile.am): Likewise.
51881         * modules/fcntl-safer (Makefile.am): Likewise.
51882         * modules/fcntl (Makefile.am): Likewise.
51883         * modules/file-type (Makefile.am): Likewise.
51884         * modules/fileblocks (Makefile.am): Likewise.
51885         * modules/filemode (Makefile.am): Likewise.
51886         * modules/filenamecat (Makefile.am): Likewise.
51887         * modules/fnmatch (Makefile.am): Likewise.
51888         * modules/fopen-safer (Makefile.am): Likewise.
51889         * modules/fpending (Makefile.am): Likewise.
51890         * modules/fprintftime (Makefile.am): Likewise.
51891         * modules/free (Makefile.am): Likewise.
51892         * modules/fsusage (Makefile.am): Likewise.
51893         * modules/ftruncate (Makefile.am): Likewise.
51894         * modules/fts (Makefile.am): Likewise.
51895         * modules/gc-arcfour (Makefile.am): Likewise.
51896         * modules/gc-des (Makefile.am): Likewise.
51897         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51898         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51899         * modules/gc-md4 (Makefile.am): Likewise.
51900         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51901         * modules/gc-sha1 (Makefile.am): Likewise.
51902         * modules/gc (Makefile.am): Likewise.
51903         * modules/getaddrinfo (Makefile.am): Likewise.
51904         * modules/getcwd (Makefile.am): Likewise.
51905         * modules/getdelim (Makefile.am): Likewise.
51906         * modules/getdomainname (Makefile.am): Likewise.
51907         * modules/getgroups (Makefile.am): Likewise.
51908         * modules/gethostname (Makefile.am): Likewise.
51909         * modules/gethrxtime (Makefile.am): Likewise.
51910         * modules/getline (Makefile.am): Likewise.
51911         * modules/getloadavg (Makefile.am): Likewise.
51912         * modules/getlogin_r (Makefile.am): Likewise.
51913         * modules/getndelim2 (Makefile.am): Likewise.
51914         * modules/getopt (Makefile.am): Likewise.
51915         * modules/getpagesize (Makefile.am): Likewise.
51916         * modules/getpass-gnu (Makefile.am): Likewise.
51917         * modules/getpass (Makefile.am): Likewise.
51918         * modules/getsubopt (Makefile.am): Likewise.
51919         * modules/gettime (Makefile.am): Likewise.
51920         * modules/gettimeofday (Makefile.am): Likewise.
51921         * modules/getugroups (Makefile.am): Likewise.
51922         * modules/getusershell (Makefile.am): Likewise.
51923         * modules/glob (Makefile.am): Likewise.
51924         * modules/group-member (Makefile.am): Likewise.
51925         * modules/hard-locale (Makefile.am): Likewise.
51926         * modules/hash (Makefile.am): Likewise.
51927         * modules/hmac-md5 (Makefile.am): Likewise.
51928         * modules/hmac-sha1 (Makefile.am): Likewise.
51929         * modules/human (Makefile.am): Likewise.
51930         * modules/idcache (Makefile.am): Likewise.
51931         * modules/imaxabs (Makefile.am): Likewise.
51932         * modules/imaxdiv (Makefile.am): Likewise.
51933         * modules/inet_ntop (Makefile.am): Likewise.
51934         * modules/inet_pton (Makefile.am): Likewise.
51935         * modules/intprops (Makefile.am): Likewise.
51936         * modules/inttostr (Makefile.am): Likewise.
51937         * modules/inttypes (Makefile.am): Likewise.
51938         * modules/isapipe (Makefile.am): Likewise.
51939         * modules/javaversion (Makefile.am): Likewise.
51940         * modules/lchmod (Makefile.am): Likewise.
51941         * modules/lchown (Makefile.am): Likewise.
51942         * modules/localcharset (Makefile.am): Likewise.
51943         * modules/long-options (Makefile.am): Likewise.
51944         * modules/lstat (Makefile.am): Likewise.
51945         * modules/malloc (Makefile.am): Likewise.
51946         * modules/mathl (Makefile.am): Likewise.
51947         * modules/mbchar (Makefile.am): Likewise.
51948         * modules/md2 (Makefile.am): Likewise.
51949         * modules/md4 (Makefile.am): Likewise.
51950         * modules/md5 (Makefile.am): Likewise.
51951         * modules/memcasecmp (Makefile.am): Likewise.
51952         * modules/memchr (Makefile.am): Likewise.
51953         * modules/memcmp (Makefile.am): Likewise.
51954         * modules/memcoll (Makefile.am): Likewise.
51955         * modules/memcpy (Makefile.am): Likewise.
51956         * modules/memmem (Makefile.am): Likewise.
51957         * modules/memmove (Makefile.am): Likewise.
51958         * modules/mempcpy (Makefile.am): Likewise.
51959         * modules/memrchr (Makefile.am): Likewise.
51960         * modules/memset (Makefile.am): Likewise.
51961         * modules/memxor (Makefile.am): Likewise.
51962         * modules/mkancesdirs (Makefile.am): Likewise.
51963         * modules/mkdir-p (Makefile.am): Likewise.
51964         * modules/mkdir (Makefile.am): Likewise.
51965         * modules/mkdtemp (Makefile.am): Likewise.
51966         * modules/mkstemp (Makefile.am): Likewise.
51967         * modules/mktime (Makefile.am): Likewise.
51968         * modules/modechange (Makefile.am): Likewise.
51969         * modules/mountlist (Makefile.am): Likewise.
51970         * modules/nanosleep (Makefile.am): Likewise.
51971         * modules/obstack (Makefile.am): Likewise.
51972         * modules/openat (Makefile.am): Likewise.
51973         * modules/pagealign_alloc (Makefile.am): Likewise.
51974         * modules/pathmax (Makefile.am): Likewise.
51975         * modules/physmem (Makefile.am): Likewise.
51976         * modules/poll (Makefile.am): Likewise.
51977         * modules/posixtm (Makefile.am): Likewise.
51978         * modules/posixver (Makefile.am): Likewise.
51979         * modules/putenv (Makefile.am): Likewise.
51980         * modules/quote (Makefile.am): Likewise.
51981         * modules/quotearg (Makefile.am): Likewise.
51982         * modules/raise (Makefile.am): Likewise.
51983         * modules/read-file (Makefile.am): Likewise.
51984         * modules/readline (Makefile.am): Likewise.
51985         * modules/readlink (Makefile.am): Likewise.
51986         * modules/readtokens (Makefile.am): Likewise.
51987         * modules/readutmp (Makefile.am): Likewise.
51988         * modules/realloc (Makefile.am): Likewise.
51989         * modules/regex (Makefile.am): Likewise.
51990         * modules/rename-dest-slash (Makefile.am): Likewise.
51991         * modules/rename (Makefile.am): Likewise.
51992         * modules/rijndael (Makefile.am): Likewise.
51993         * modules/rmdir (Makefile.am): Likewise.
51994         * modules/rpmatch (Makefile.am): Likewise.
51995         * modules/safe-read (Makefile.am): Likewise.
51996         * modules/safe-write (Makefile.am): Likewise.
51997         * modules/same-inode (Makefile.am): Likewise.
51998         * modules/same (Makefile.am): Likewise.
51999         * modules/save-cwd (Makefile.am): Likewise.
52000         * modules/savedir (Makefile.am): Likewise.
52001         * modules/setenv (Makefile.am): Likewise.
52002         * modules/settime (Makefile.am): Likewise.
52003         * modules/sha1 (Makefile.am): Likewise.
52004         * modules/sig2str (Makefile.am): Likewise.
52005         * modules/snprintf (Makefile.am): Likewise.
52006         * modules/stat-macros (Makefile.am): Likewise.
52007         * modules/stat-time (Makefile.am): Likewise.
52008         * modules/stdbool (Makefile.am): Likewise.
52009         * modules/stdint (Makefile.am): Likewise.
52010         * modules/stdlib-safer (Makefile.am): Likewise.
52011         * modules/stpcpy (Makefile.am): Likewise.
52012         * modules/stpncpy (Makefile.am): Likewise.
52013         * modules/strcase (Makefile.am): Likewise.
52014         * modules/strcasestr (Makefile.am): Likewise.
52015         * modules/strchrnul (Makefile.am): Likewise.
52016         * modules/strcspn (Makefile.am): Likewise.
52017         * modules/strdup (Makefile.am): Likewise.
52018         * modules/strerror (Makefile.am): Likewise.
52019         * modules/strftime (Makefile.am): Likewise.
52020         * modules/strndup (Makefile.am): Likewise.
52021         * modules/strnlen (Makefile.am): Likewise.
52022         * modules/strpbrk (Makefile.am): Likewise.
52023         * modules/strsep (Makefile.am): Likewise.
52024         * modules/strstr (Makefile.am): Likewise.
52025         * modules/strtod (Makefile.am): Likewise.
52026         * modules/strtoimax (Makefile.am): Likewise.
52027         * modules/strtok_r (Makefile.am): Likewise.
52028         * modules/strtol (Makefile.am): Likewise.
52029         * modules/strtoll (Makefile.am): Likewise.
52030         * modules/strtoul (Makefile.am): Likewise.
52031         * modules/strtoull (Makefile.am): Likewise.
52032         * modules/strtoumax (Makefile.am): Likewise.
52033         * modules/strverscmp (Makefile.am): Likewise.
52034         * modules/sys_socket (Makefile.am): Likewise.
52035         * modules/sys_stat (Makefile.am): Likewise.
52036         * modules/sysexits (Makefile.am): Likewise.
52037         * modules/time_r (Makefile.am): Likewise.
52038         * modules/timegm (Makefile.am): Likewise.
52039         * modules/timespec (Makefile.am): Likewise.
52040         * modules/tmpfile-safer (Makefile.am): Likewise.
52041         * modules/trim (Makefile.am): Likewise.
52042         * modules/unistd-safer (Makefile.am): Likewise.
52043         * modules/unlinkdir (Makefile.am): Likewise.
52044         * modules/unlocked-io (Makefile.am): Likewise.
52045         * modules/userspec (Makefile.am): Likewise.
52046         * modules/utime (Makefile.am): Likewise.
52047         * modules/utimecmp (Makefile.am): Likewise.
52048         * modules/utimens (Makefile.am): Likewise.
52049         * modules/vasnprintf (Makefile.am): Likewise.
52050         * modules/vasprintf (Makefile.am): Likewise.
52051         * modules/vsnprintf (Makefile.am): Likewise.
52052         * modules/xalloc (Makefile.am): Likewise.
52053         * modules/xgetcwd (Makefile.am): Likewise.
52054         * modules/xnanosleep (Makefile.am): Likewise.
52055         * modules/xreadlink (Makefile.am): Likewise.
52056         * modules/xstrtod (Makefile.am): Likewise.
52057         * modules/xstrtol (Makefile.am): Likewise.
52058         * modules/xstrtold (Makefile.am): Likewise.
52059         * modules/yesno (Makefile.am): Likewise.
52060         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52061
52062 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         * modules/error (Makefile.am): Distribute files through
52065         EXTRA_DIST, not lib_SOURCES.
52066
52067 2006-10-12  Eric Blake  <ebb9@byu.net>
52068
52069         * modules/error (Makefile.am): Distribute files in /lib.
52070         * modules/obstack (Makefile.am): Likewise.
52071
52072 2006-10-12  Bruno Haible  <bruno@clisp.org>
52073
52074         * modules/acl (Makefile.am): Distribute all files in lib/ through
52075         EXTRA_DIST.
52076         * modules/arcfour (Makefile.am): Likewise.
52077         * modules/arctwo (Makefile.am): Likewise.
52078         * modules/argmatch (Makefile.am): Likewise.
52079         * modules/argz (Makefile.am): Likewise.
52080         * modules/atexit (Makefile.am): Likewise.
52081         * modules/backupfile (Makefile.am): Likewise.
52082         * modules/c-strtod (Makefile.am): Likewise.
52083         * modules/c-strtold (Makefile.am): Likewise.
52084         * modules/calloc (Makefile.am): Likewise.
52085         * modules/canon-host (Makefile.am): Likewise.
52086         * modules/canonicalize (Makefile.am): Likewise.
52087         * modules/chdir-long (Makefile.am): Likewise.
52088         * modules/chdir-safer (Makefile.am): Likewise.
52089         * modules/check-version (Makefile.am): Likewise.
52090         * modules/chown (Makefile.am): Likewise.
52091         * modules/cloexec (Makefile.am): Likewise.
52092         * modules/close-stream (Makefile.am): Likewise.
52093         * modules/closeout (Makefile.am): Likewise.
52094         * modules/crc (Makefile.am): Likewise.
52095         * modules/cycle-check (Makefile.am): Likewise.
52096         * modules/des (Makefile.am): Likewise.
52097         * modules/dirfd (Makefile.am): Likewise.
52098         * modules/dirname (Makefile.am): Likewise.
52099         * modules/dup2 (Makefile.am): Likewise.
52100         * modules/euidaccess (Makefile.am): Likewise.
52101         * modules/exclude (Makefile.am): Likewise.
52102         * modules/exitfail (Makefile.am): Likewise.
52103         * modules/fcntl-safer (Makefile.am): Likewise.
52104         * modules/file-type (Makefile.am): Likewise.
52105         * modules/fileblocks (Makefile.am): Likewise.
52106         * modules/filemode (Makefile.am): Likewise.
52107         * modules/filenamecat (Makefile.am): Likewise.
52108         * modules/fnmatch (Makefile.am): Likewise.
52109         * modules/fopen-safer (Makefile.am): Likewise.
52110         * modules/fpending (Makefile.am): Likewise.
52111         * modules/fprintftime (Makefile.am): Likewise.
52112         * modules/free (Makefile.am): Likewise.
52113         * modules/fsusage (Makefile.am): Likewise.
52114         * modules/ftruncate (Makefile.am): Likewise.
52115         * modules/fts (Makefile.am): Likewise.
52116         * modules/gc (Makefile.am): Likewise.
52117         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52118         * modules/getaddrinfo (Makefile.am): Likewise.
52119         * modules/getcwd (Makefile.am): Likewise.
52120         * modules/getdelim (Makefile.am): Likewise.
52121         * modules/getdomainname (Makefile.am): Likewise.
52122         * modules/getgroups (Makefile.am): Likewise.
52123         * modules/gethostname (Makefile.am): Likewise.
52124         * modules/gethrxtime (Makefile.am): Likewise.
52125         * modules/getline (Makefile.am): Likewise.
52126         * modules/getloadavg (Makefile.am): Likewise.
52127         * modules/getlogin_r (Makefile.am): Likewise.
52128         * modules/getopt (Makefile.am): Likewise.
52129         * modules/getpass (Makefile.am): Likewise.
52130         * modules/getpass-gnu (Makefile.am): Likewise.
52131         * modules/getsubopt (Makefile.am): Likewise.
52132         * modules/gettime (Makefile.am): Likewise.
52133         * modules/gettimeofday (Makefile.am): Likewise.
52134         * modules/getugroups (Makefile.am): Likewise.
52135         * modules/getusershell (Makefile.am): Likewise.
52136         * modules/glob (Makefile.am): Likewise.
52137         * modules/group-member (Makefile.am): Likewise.
52138         * modules/hard-locale (Makefile.am): Likewise.
52139         * modules/hash (Makefile.am): Likewise.
52140         * modules/hmac-md5 (Makefile.am): Likewise.
52141         * modules/hmac-sha1 (Makefile.am): Likewise.
52142         * modules/human (Makefile.am): Likewise.
52143         * modules/idcache (Makefile.am): Likewise.
52144         * modules/imaxabs (Makefile.am): Likewise.
52145         * modules/imaxdiv (Makefile.am): Likewise.
52146         * modules/inet_ntop (Makefile.am): Likewise.
52147         * modules/inet_pton (Makefile.am): Likewise.
52148         * modules/inttostr (Makefile.am): Likewise.
52149         * modules/isapipe (Makefile.am): Likewise.
52150         * modules/lchown (Makefile.am): Likewise.
52151         * modules/long-options (Makefile.am): Likewise.
52152         * modules/lstat (Makefile.am): Likewise.
52153         * modules/malloc (Makefile.am): Likewise.
52154         * modules/mathl (Makefile.am): Likewise.
52155         * modules/mbchar (Makefile.am): Likewise.
52156         * modules/md2 (Makefile.am): Likewise.
52157         * modules/md4 (Makefile.am): Likewise.
52158         * modules/md5 (Makefile.am): Likewise.
52159         * modules/memcasecmp (Makefile.am): Likewise.
52160         * modules/memchr (Makefile.am): Likewise.
52161         * modules/memcmp (Makefile.am): Likewise.
52162         * modules/memcoll (Makefile.am): Likewise.
52163         * modules/memcpy (Makefile.am): Likewise.
52164         * modules/memmem (Makefile.am): Likewise.
52165         * modules/memmove (Makefile.am): Likewise.
52166         * modules/mempcpy (Makefile.am): Likewise.
52167         * modules/memrchr (Makefile.am): Likewise.
52168         * modules/memset (Makefile.am): Likewise.
52169         * modules/memxor (Makefile.am): Likewise.
52170         * modules/mkancesdirs (Makefile.am): Likewise.
52171         * modules/mkdir (Makefile.am): Likewise.
52172         * modules/mkdir-p (Makefile.am): Likewise.
52173         * modules/mkdtemp (Makefile.am): Likewise.
52174         * modules/mkstemp (Makefile.am): Likewise.
52175         * modules/mktime (Makefile.am): Likewise.
52176         * modules/modechange (Makefile.am): Likewise.
52177         * modules/mountlist (Makefile.am): Likewise.
52178         * modules/nanosleep (Makefile.am): Likewise.
52179         * modules/openat (Makefile.am): Likewise.
52180         * modules/pagealign_alloc (Makefile.am): Likewise.
52181         * modules/physmem (Makefile.am): Likewise.
52182         * modules/poll (Makefile.am): Likewise.
52183         * modules/posixtm (Makefile.am): Likewise.
52184         * modules/posixver (Makefile.am): Likewise.
52185         * modules/putenv (Makefile.am): Likewise.
52186         * modules/quote (Makefile.am): Likewise.
52187         * modules/quotearg (Makefile.am): Likewise.
52188         * modules/raise (Makefile.am): Likewise.
52189         * modules/read-file (Makefile.am): Likewise.
52190         * modules/readline (Makefile.am): Likewise.
52191         * modules/readlink (Makefile.am): Likewise.
52192         * modules/readtokens (Makefile.am): Likewise.
52193         * modules/readutmp (Makefile.am): Likewise.
52194         * modules/realloc (Makefile.am): Likewise.
52195         * modules/regex (Makefile.am): Likewise.
52196         * modules/rename (Makefile.am): Likewise.
52197         * modules/rename-dest-slash (Makefile.am): Likewise.
52198         * modules/rijndael (Makefile.am): Likewise.
52199         * modules/rmdir (Makefile.am): Likewise.
52200         * modules/rpmatch (Makefile.am): Likewise.
52201         * modules/safe-read (Makefile.am): Likewise.
52202         * modules/safe-write (Makefile.am): Likewise.
52203         * modules/same (Makefile.am): Likewise.
52204         * modules/save-cwd (Makefile.am): Likewise.
52205         * modules/savedir (Makefile.am): Likewise.
52206         * modules/setenv (Makefile.am): Likewise.
52207         * modules/settime (Makefile.am): Likewise.
52208         * modules/sha1 (Makefile.am): Likewise.
52209         * modules/sig2str (Makefile.am): Likewise.
52210         * modules/snprintf (Makefile.am): Likewise.
52211         * modules/stdlib-safer (Makefile.am): Likewise.
52212         * modules/stpcpy (Makefile.am): Likewise.
52213         * modules/stpncpy (Makefile.am): Likewise.
52214         * modules/strcase (Makefile.am): Likewise.
52215         * modules/strcasestr (Makefile.am): Likewise.
52216         * modules/strchrnul (Makefile.am): Likewise.
52217         * modules/strcspn (Makefile.am): Likewise.
52218         * modules/strdup (Makefile.am): Likewise.
52219         * modules/strerror (Makefile.am): Likewise.
52220         * modules/strftime (Makefile.am): Likewise.
52221         * modules/strndup (Makefile.am): Likewise.
52222         * modules/strnlen (Makefile.am): Likewise.
52223         * modules/strpbrk (Makefile.am): Likewise.
52224         * modules/strsep (Makefile.am): Likewise.
52225         * modules/strstr (Makefile.am): Likewise.
52226         * modules/strtod (Makefile.am): Likewise.
52227         * modules/strtoimax (Makefile.am): Likewise.
52228         * modules/strtok_r (Makefile.am): Likewise.
52229         * modules/strtol (Makefile.am): Likewise.
52230         * modules/strtoll (Makefile.am): Likewise.
52231         * modules/strtoul (Makefile.am): Likewise.
52232         * modules/strtoull (Makefile.am): Likewise.
52233         * modules/strtoumax (Makefile.am): Likewise.
52234         * modules/strverscmp (Makefile.am): Likewise.
52235         * modules/time_r (Makefile.am): Likewise.
52236         * modules/timegm (Makefile.am): Likewise.
52237         * modules/tmpfile-safer (Makefile.am): Likewise.
52238         * modules/unistd-safer (Makefile.am): Likewise.
52239         * modules/unlinkdir (Makefile.am): Likewise.
52240         * modules/userspec (Makefile.am): Likewise.
52241         * modules/utime (Makefile.am): Likewise.
52242         * modules/utimecmp (Makefile.am): Likewise.
52243         * modules/utimens (Makefile.am): Likewise.
52244         * modules/vasnprintf (Makefile.am): Likewise.
52245         * modules/vasprintf (Makefile.am): Likewise.
52246         * modules/vsnprintf (Makefile.am): Likewise.
52247         * modules/xalloc (Makefile.am): Likewise.
52248         * modules/xgetcwd (Makefile.am): Likewise.
52249         * modules/xnanosleep (Makefile.am): Likewise.
52250         * modules/xreadlink (Makefile.am): Likewise.
52251         * modules/xstrtod (Makefile.am): Likewise.
52252         * modules/xstrtol (Makefile.am): Likewise.
52253         * modules/xstrtold (Makefile.am): Likewise.
52254         * modules/yesno (Makefile.am): Likewise.
52255
52256 2006-10-12  Jim Meyering  <jim@meyering.net>
52257
52258         * m4/getloadavg.m4: Revert the change below.
52259
52260         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52261         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52262         fail with a symlink, which is what coreutils' ./bootstrap now
52263         creates by default.
52264
52265 2006-10-12  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52268         mingw.
52269         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52270         MSVC and mingw explicitly.
52271
52272 2006-10-11  Simon Josefsson  <jas@extundo.com>
52273             Bruno Haible  <bruno@clisp.org>
52274
52275         Add support for multiple gnulib-tool invocations in the scope of a
52276         single configure.ac file.
52277         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52278         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52279         with the same contents as the _LIBADD variable.
52280         (func_emit_initmacro_start, func_emit_initmacro_end,
52281         func_emit_initmacro_done): New functions.
52282         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52283         gl_LIBOBJS and gl_LTLIBOBJS.
52284
52285 2006-10-11  Bruno Haible  <bruno@clisp.org>
52286
52287         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52288         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52289         autoreconf. Instead, invoke autopoint explicitly but move back the
52290         *.m4 files from gnulib.
52291
52292 2006-10-11  Bruno Haible  <bruno@clisp.org>
52293
52294         * gnulib-tool (func_usage): Make module names after --create-testdir
52295         optional.
52296         (func_create_testdir): If no module was specified, use nearly all
52297         modules.
52298
52299 2006-10-12  Jim Meyering  <jim@meyering.net>
52300
52301         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52302         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52303         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52304         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52305         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52306         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52307         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52308         (fts_set_stat_required): New function.
52309         (fts_open): Defer the calls to fts_stat, if possible or requested.
52310         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52311         into fts_stat itself.
52312         (fts_read): Perform any required (deferred) fts_stat call.
52313         (fts_build): Likewise, for the directory we're about to open and read.
52314         In the readdir loop, carefully decide whether each entry will require
52315         an eventual call to fts_stat, using dirent.d_type info if available.
52316         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52317         a command line argument into this function.  Update all callers.
52318         Map a return value of FTS_DOT to FTS_D for a command line argument.
52319         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52320         Thanks to Miklos Szeredi for his tenacity and for the initial
52321         bug report about "find" failing on a FUSE-based file system.
52322
52323         * lib/fts.c (fts_open): Use consistent indentation.
52324
52325 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52326
52327         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52328         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52329         reported by Jim Meyering.  All uses of cache variables renamed
52330         to match Autoconf's.
52331         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52332         the other one.
52333
52334         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52335         Fix misspelling in diagnostic.
52336
52337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52338
52339         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52340         defined.  Problem reported by Matthew Woehlke.
52341
52342         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52343         Add support for Tandem NonStop R series.
52344         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52345         Use new macro.
52346
52347         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52348         (has_trailing_slash): Omit size arg; all callers changed.
52349         Omit 'inline', since it doesn't help performance and we'd
52350         need to configure it.
52351         Don't count //, ///, etc. as having a trailing slash.
52352         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52353         (rpl_rename_dest_slash): On failure, use rename's errno rather
52354         than (in some cases) an incorrect or junk errno.
52355         Simplify code by removing need to compute length; this does
52356         cause it to make two passes instead of one over the file name,
52357         but it's worth it.
52358
52359         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52360         change, since Autoconf's version may no longer be appropriate now
52361         that we are using CVS Autoconf's version.  Add support for Tandem.
52362
52363 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52364             Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52367         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52368         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52369         gl_AC_TYPE_LONG_LONG.
52370
52371         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52372         instead of HAVE_LONG_LONG.
52373         * lib/printf-args.c (printf_fetchargs): Likewise.
52374         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52375         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52376         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52377         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52378         gl_AC_TYPE_LONG_LONG.
52379
52380 2006-10-11  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/longlong.m4: Add comments.
52383         * m4/ulonglong.m4: Likewise.
52384
52385 2006-10-10  Bruno Haible  <bruno@clisp.org>
52386
52387         Make it possible to #define stpcpy, strdup to aliases.
52388         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52389         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52390
52391 2006-10-10  Bruno Haible  <bruno@clisp.org>
52392
52393         Make it possible to #define gcd to an alias.
52394         * lib/gcd.c: Include config.h.
52395
52396 2006-10-10  Bruno Haible  <bruno@clisp.org>
52397
52398         Make it possible to #define c_isascii to an alias.
52399         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52400         defined. Undefine the macros before defining them, to avoid gcc
52401         warnings.
52402         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52403         define NO_C_CTYPE_MACROS early.
52404
52405 2006-10-10  Bruno Haible  <bruno@clisp.org>
52406
52407         Make it possible to #define set_program_name to an alias.
52408         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52409         ENABLE_RELOCATABLE early.
52410
52411 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52414         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52415         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52416         More generally, don't assume that 64-bit signed int is available
52417         if unsigned int is, and vice versa.
52418         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52419         unsigned symbols, not on their signed counterparts.
52420         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52421         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52422         (UINT64_C, UINTMAX_C):
52423         Likewise.
52424         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52425         unsigned counterparts.
52426         (Have_long_long, Unsigned): New macros.
52427         (Int): Renamed from INT.
52428         (strtoimax): Use the new macros.
52429         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52430         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52431         * modules/inttypes (inttypes.h): Substitute
52432         HAVE_UNSIGNED_LONG_LONG_INT.
52433         * modules/stdint (stdint.h): Likewise.
52434         (Files): Add m4/ulonglong.m4.
52435
52436 2006-10-10  Bruno Haible  <bruno@clisp.org>
52437
52438         Fix a gcc -Wshadow warning.
52439         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52440         to 'bucket'.
52441         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52442         gl_linked_indexof_from_to): Likewise.
52443         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52444         Likewise.
52445         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52446         Likewise.
52447         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52448         Reported by Eric Blake.
52449
52450 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52451
52452         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52453         for NetBSD.  Problem reported by Bruno Haible.
52454
52455 2006-10-09  Jim Meyering  <jim@meyering.net>
52456
52457         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52458         Patch from Bruno Haible.
52459
52460 2006-10-09  Jim Meyering  <jim@meyering.net>
52461
52462         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52463         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52464         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52465
52466 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         Don't include <config.h> twice; this doesn't work in some cases,
52469         e.g., when config.h has "#define intmax_t long long int" and
52470         we include <config.h>, <inttypes.h>, <config.h> in that order.
52471         Problem reported by Matthew Woehlke in:
52472         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52473         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52474         * lib/fts-cycle.c: Don't include config.h.
52475         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52476         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52477         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52478         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52479         inttypes.h.
52480         * lib/xstrtoumax.c: Likewise.
52481         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52482         __strtol and the like, so that this module is more like its siblings.
52483         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52484         Remove; no longer needed now that we assume gnulib inttypes.h.
52485
52486 2006-10-08  Bruno Haible  <bruno@clisp.org>
52487
52488         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52489         option.
52490
52491 2006-10-07  Jim Meyering  <jim@meyering.net>
52492
52493         * modules/inttypes (inttypes.h): Revert what seems to have been
52494         an inadvertent part of today's change: use "|", not "/" in the
52495         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52496
52497 2006-10-07  Bruno Haible  <bruno@clisp.org>
52498
52499         * modules/sublist: New file.
52500
52501 2006-10-07  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52504         * modules/argz (argz.h): Likewise.
52505         * modules/arpa_inet (arpa/inet.h): Likewise.
52506         * modules/byteswap (byteswap.h): Likewise.
52507         * modules/configmake (configmake.h): Likewise.
52508         * modules/fcntl (fcntl.h): Likewise.
52509         * modules/fnmatch (fnmatch.h): Likewise.
52510         * modules/getopt (getopt.h): Likewise.
52511         * modules/glob (glob.h): Likewise.
52512         * modules/inttypes (inttypes.h): Likewise.
52513         * modules/netinet_in (netinet/in.h): Likewise.
52514         * modules/poll (poll.h): Likewise.
52515         * modules/stdbool (stdbool.h): Likewise.
52516         * modules/stdint (stdint.h): Likewise.
52517         * modules/sys_select (sys/select.h): Likewise.
52518         * modules/sys_socket (sys/socket.h): Likewise.
52519         * modules/sys_stat (sys/stat.h): Likewise.
52520         * modules/sysexits (sysexits.h): Likewise.
52521         * modules/unistd (unistd.h): Likewise.
52522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52523         Add a "DO NOT EDIT" comment to the generated file.
52524         (func_import): Likewise for gnulib-comp.m4.
52525
52526 2006-10-07  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/gl_sublist.h: New file.
52529         * lib/gl_sublist.c: New file.
52530
52531 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52534         name (relative to the original working directory) and the file
52535         name component (relative to the temporary working directory).  All
52536         callers changed.
52537         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52538         * lib/mkdir-p.c (make_dir_parents): Likewise.
52539         * lib/mkdir-p.h (make_dir_parents): Likewise.
52540
52541 2006-10-06  Eric Blake  <ebb9@byu.net>
52542
52543         Define several macros for use by the clean-temp module.
52544         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52545         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52546         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52547
52548         * lib/clean-temp.h (close_stream_temp): New declaration.
52549         * lib/clean-temp.c (includes): Pull in headers according to what
52550         other modules are in use.
52551         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52552
52553 2006-10-06  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52556         instead of fopen, fwriteerror.
52557
52558 2006-10-06  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52561         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52562         int.
52563         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52564         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52565         Return an error indicator.
52566         Suggested by Eric Blake.
52567
52568 2006-10-06  Bruno Haible  <bruno@clisp.org>
52569
52570         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52571         Reported by Eric Blake.
52572
52573 2006-10-06  Bruno Haible  <bruno@clisp.org>
52574
52575         * modules/closeout (Description): Mention stderr too.
52576
52577 2006-10-06  Bruno Haible  <bruno@clisp.org>
52578         and Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * lib/closeout.c (close_stdout): Also close stderr.
52581         * lib/closeout.h: Update comment.
52582
52583 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52586         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52587         * lib/dirchownmod.c: Include lchown.h.
52588         * lib/lchown.c: Don't include files that lchown.h now includes.
52589         Don't declare chown, since lchown.h now does that.
52590         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52591         (lchown): Define to rpl_chown if lchown is declared but
52592         does not exist.  Declare using a prototype if lchown is not
52593         declared.  Add a copyright notice.
52594         * lib/mkstemp.h: Include <unistd.h>.
52595         * lib/openat.c: Include lchown.h.
52596
52597         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52598         we now test for that separately.
52599         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52600         rather than O_NOFOLLOW, when testing whether it's possible to
52601         avoid a race condition reliably.
52602         * lib/savewd.c (savewd_chdir): Likewise.
52603
52604         Remove macros that are no longer needed now that stdint.h is
52605         reliable.
52606         * lib/fsusage.c (UINTMAX_MAX): Remove.
52607         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52608         * lib/utimecmp.c (SIZE_MAX): Remove.
52609
52610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52611
52612         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52613         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52614         O_NOATIME works.
52615
52616 2006-10-05  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/gl_list.h (gl_sortedlist_search_from_to,
52619         gl_sortedlist_indexof_from_to): New declarations.
52620         (gl_list_implementation): New fields sortedlist_search_from_to,
52621         sortedlist_indexof_from_to.
52622         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52623         inline functions.
52624         * lib/gl_list.c (gl_sortedlist_search_from_to,
52625         gl_sortedlist_indexof_from_to): New functions.
52626         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52627         function.
52628         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52629         (gl_array_sortedlist_search_from_to): New function.
52630         (gl_array_list_implementation): Update.
52631         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52632         function.
52633         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52634         (gl_carray_sortedlist_search_from_to): New function.
52635         (gl_carray_list_implementation): Update.
52636         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52637         gl_linked_sortedlist_indexof_from_to): New functions.
52638         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52639         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52640         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52641         gl_tree_sortedlist_indexof_from_to): New functions.
52642         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52643         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52644         Update.
52645         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52646         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52647         Update.
52648
52649 2006-10-05  Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52652         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52653         (struct gl_list_implementation): Add fields search_from_to,
52654         indexof_from_to. Remove fields search, indexof.
52655         (gl_list_search): Use the search_from_to method.
52656         (gl_list_search_from, gl_list_search_from_to): New functions.
52657         (gl_list_indexof): Use the indexof_from_to method.
52658         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52659         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52660         (gl_list_search_from, gl_list_search_from_to): New functions.
52661         (gl_list_indexof): Use the indexof_from_to method.
52662         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52663         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52664         gl_array_indexof. Add start_index, end_index arguments.
52665         (gl_array_search_from_to): Renamed from gl_array_search. Add
52666         start_index, end_index arguments.
52667         (gl_array_remove, gl_array_list_implementation): Update.
52668         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52669         gl_carray_indexof. Add start_index, end_index arguments.
52670         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52671         start_index, end_index arguments.
52672         (gl_carray_remove, gl_carray_list_implementation): Update.
52673         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52674         gl_linked_search. Add start_index, end_index arguments.
52675         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52676         start_index, end_index arguments.
52677         (gl_linked_remove): Update.
52678         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52679         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52680         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52681         field to 'size_t'.
52682         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52683         gl_tree_search. Add start_index, end_index arguments.
52684         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52685         start_index, end_index arguments.
52686         (gl_tree_remove): Update.
52687         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52688         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52689         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52690         function.
52691         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52692         gl_tree_search. Add start_index, end_index arguments.
52693         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52694         start_index, end_index arguments.
52695         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52696         Update.
52697         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52698
52699 2006-10-05  Bruno Haible  <bruno@clisp.org>
52700
52701         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52702
52703         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52704         fwriteerror_temp): New declarations.
52705         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52706         (descriptors): New variable.
52707         (cleanup): First, close the descriptors.
52708         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52709         fclose_temp, fwriteerror_temp): New functions.
52710
52711 2006-10-04  Jim Meyering  <jim@meyering.net>
52712
52713         * lib/fts.c (fts_open): Tiny comment change.
52714
52715 2006-10-04  Bruno Haible  <bruno@clisp.org>
52716
52717         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52718         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52719         gl_LOCK_BODY.
52720         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52721         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52722         gl_LOCK_EARLY_BODY.
52723         (gl_LOCK): Require gl_LOCK_BODY.
52724
52725 2006-10-04  Bruno Haible  <bruno@clisp.org>
52726
52727         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52728         (gl_oset_search_atleast): New declaration.
52729         (struct gl_oset_implementation): Add field 'search_atleast'.
52730         (gl_oset_search_atleast): New inline function.
52731         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52732         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52733         (gl_array_oset_implementation): Update.
52734         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52735         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52736         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52737
52738 2006-10-04  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52741
52742 2006-10-03  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52745         from gl_avltreehash_list_implementation.
52746
52747 2006-10-03  Bruno Haible  <bruno@clisp.org>
52748
52749         * lib/gl_oset.c (gl_oset_add): Fix return type.
52750
52751 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52752
52753         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52754
52755 2006-10-02  Eric Blake  <ebb9@byu.net>
52756
52757         * modules/strnlen (Depends-on): Add extensions.
52758
52759 2006-10-02  Eric Blake  <ebb9@byu.net>
52760
52761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52762         definition in 2.60+.
52763
52764 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52765
52766         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52767         checks.
52768
52769 2006-10-02  Bruno Haible  <bruno@clisp.org>
52770
52771         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52772         to the AUTOMAKE_OPTIONS.
52773         Reported by Jim Meyering.
52774
52775 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         Work around bug in Solaris 10 /proc file system:
52778         /proc/self/fd/NNN/.. isn't the parent directory of
52779         the directory whose file descriptor is NNN.  This needs to
52780         be worked around at run time, not compile time, since a
52781         program might be built on Solaris 8, where things work, and
52782         run on Solaris 10.
52783         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52784         to use the following interface instead:
52785         (OPENAT_BUFFER_SIZE): New macro.
52786         (openat_proc_name): New function.
52787         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52788         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52789         Likewise.
52790         * lib/openat-proc.c: New file.
52791         * modules/openat (Files): Add lib/openat-proc.c.
52792         (Depends-on): Add same-inode, stdbool.
52793         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52794
52795 2006-09-29  Bruno Haible  <bruno@clisp.org>
52796
52797         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52798         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52799         argument. Set stdout_closed before testing for ferror, not after.
52800         (fwriteerror, fwriteerror_no_ebadf): New functions.
52801
52802 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52803
52804         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52805
52806 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52807
52808         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52809         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52810
52811 2006-09-28  Jim Meyering  <jim@meyering.net>
52812
52813         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52814         Include <unistd.h>.
52815
52816 2006-09-28  Bruno Haible  <bruno@clisp.org>
52817
52818         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52819         * modules/linkedhash-list (Depends-on): Likewise.
52820         * modules/rbtreehash-list (Depends-on): Likewise.
52821
52822 2006-09-28  Bruno Haible  <bruno@clisp.org>
52823
52824         * lib/strndup.h: Simplify the redefinition of strndup.
52825         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52827
52828 2006-09-28  Bruno Haible  <bruno@clisp.org>
52829
52830         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52831         * lib/gl_linkedhash_list.c: Likewise.
52832         * lib/gl_rbtreehash_list.c: Likewise.
52833
52834 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52835
52836         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52837         getaddrinfo.
52838
52839         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52840         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52841         it causes <stdio_ext.h> to cause a compile-time error.
52842         Problem reported by Nelson H. F. Beebe.
52843         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52844         of HAVE_DECL___PENDING.
52845
52846         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52848         declaration.
52849
52850 2006-09-27  Jim Meyering  <jim@meyering.net>
52851
52852         This file could end up with a definition for a function
52853         named __strndup, rather than rpl_strndup on a system with
52854         incomplete weak_alias support.
52855         * lib/strndup.c (strndup): Rename from __strndup.
52856         Remove #defines that used to map __strndup to strndup.
52857         Don't use K&R prototypes.
52858         Remove LIBC-related code, since this file is not sync'd with glibc.
52859         * lib/strndup.h: Revamp, accordingly.
52860         * m4/strndup.m4: Modernize.
52861
52862 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52863
52864         * modules/savewd (Depends-on): Add 'raise'.
52865         * lib/savewd.c: Include <signal.h>, for 'raise'.
52866
52867 2006-09-26  Jim Meyering  <jim@meyering.net>
52868
52869         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52870         when we detect Darwin 8.7.0's acl_get_file bug.
52871         Rearrange to perform the new (below) run-test while $LIBS
52872         contains any acl-related library.  Set USE_ACL at the end.
52873         (gl_ACL_GET_FILE): New function.
52874
52875 2006-09-26  Eric Blake  <ebb9@byu.net>
52876
52877         * lib/verror.c: Include <config.h> unconditionally.
52878
52879 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         * modules/clock-time (Maintainer): Add self.
52882         * modules/getlogin_r (Depends-on): Add extensions.
52883
52884 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52885
52886         * modules/clock-time: New module.
52887         * modules/nanosleep (Depends-on): Add clock-time.
52888         * modules/gethrxtime (Depends-on): Likewise.
52889         * modules/gettime (Depends-on): Likewise.
52890         * modules/settime (Depends-on): Likewise.
52891
52892         * modules/fts-lgpl: Depend on openat.
52893         * modules/mkancesdirs: Depend on savewd.
52894         * modules/mkdir-p: Likewise.
52895
52896 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52897
52898         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52899
52900         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52901         `gl_have_arbitrary_file_name_length_limit' to
52902         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52903         actually works between configure runs.
52904
52905 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52906             Bruno Haible  <bruno@clisp.org>
52907
52908         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52909
52910 2006-09-25  Jim Meyering  <jim@meyering.net>
52911
52912         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52913         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52914
52915 2006-09-25  Eric Blake  <ebb9@byu.net>
52916
52917         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52918         exec's in 2006-09-18 patch when shuffling fds.
52919
52920 2006-09-25  Bruno Haible  <bruno@clisp.org>
52921
52922         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52923         Reported by Jim Meyering.
52924
52925 2006-09-24  Jim Meyering  <jim@meyering.net>
52926
52927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52928         compare a pointer against a literal "0".  That caused failures with
52929         at least HP-UX's hpcc.
52930
52931 2006-09-22  Simon Josefsson  <jas@extundo.com>
52932
52933         * modules/gc-sha1:
52934         * modules/gc-md4:
52935         * modules/gc-hmac-sha1:
52936         * modules/gc-hmac-md5:
52937         * modules/gc-des:
52938         * modules/gc-arcfour: Distribute more files.
52939
52940 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52941
52942         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52943         (gl_linked_iterator_from_to): Initialize struct completely.
52944         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52945         (gl_tree_iterator_from_to): Likewise
52946         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52947         * lib/gl_array_list.c [lint] (gl_array_iterator)
52948         (gl_array_iterator_from_to): Likewise.
52949         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52950         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52951         (gl_carray_iterator_from_to): Likewise.
52952
52953         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52954         * lib/md4.c (md4_process_block): Remove unused variable.
52955         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52956         parentheses for clarity.
52957
52958 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52959
52960         * modules/bison-i18n (Depends-on): Add gettext.
52961
52962 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52963
52964         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52965         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52966         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52967         also add missing comma that caused broken test.
52968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52969         stdlib.h, for `abort'.
52970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52971         variables.
52972         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52973         include unistd.h if present, for `rmdir'.
52974         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52975         variables.
52976         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52977         in the process include standard headers for prototypes.
52978         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52979         gets declared on GNU/Linux.
52980         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52981         unistd.h, for `rmdir'.
52982         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52983
52984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52985         always true.
52986         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52987
52988         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52989
52990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52991
52992         * gnulib-tool (func_version): Create output all at once.  This
52993         may help avoid triggering unnecessary SIGPIPEs, and at any
52994         rate it doesn't hurt.
52995
52996 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52997             Bruno Haible  <bruno@clisp.org>
52998
52999         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53001         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53002
53003         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53004         (gl_FUNC_VASPRINTF): Invoke it.
53005
53006 2006-09-22  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53009         getloadavg.c as first argument.
53010
53011 2006-09-22  Bruno Haible  <bruno@clisp.org>
53012
53013         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53014         at the beginning of the gl_INIT macro.
53015         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53016         gl_GETLOADAVG.
53017
53018 2006-09-22  Bruno Haible  <bruno@clisp.org>
53019
53020         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53021         module.
53022         Suggested by Ralf Wildenhues.
53023
53024 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         Import this patch from libc:
53027
53028         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53029
53030         * lib/regex_internal.c (re_string_reconstruct): Handle
53031         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53032         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53033         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53034         re_string_context_at.
53035
53036         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53037         now requires it.
53038         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53039         gl_REGEX now does it for us.
53040         (gl_REGEX): Add test taken from
53041         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53042
53043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53044         Check that large offsets work.  Modernize Autoconf usages.
53045         Prefer "yes" to mean a good thing rather than a bad.
53046         Don't put "#define mkstemp" in config.h, as this might interfere
53047         with standard system headers that "#define mkstemp mkstemp64".
53048
53049         * modules/mkstemp (Depends-on): Add extensions, so that
53050         mkstemp is visible on some platforms.
53051         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53052         (Include): Change to "mkstemp.h" from <stdlib.h>.
53053         (Files): Add mkstemp.h.
53054
53055         * lib/mkstemp.h: New file, since some standard headers
53056         #define mkstemp.
53057         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53058         Include "mkstemp.h".
53059         Make the _LIBC code resemble glibc original more,
53060         e.g., use K&R style.
53061         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53062         (mkstemp): Remove, since mkstemp.h does this for us.
53063         * lib/stdlib--.h: Include mkstemp.h.
53064
53065         Import this patch from libc:
53066
53067         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53068
53069         * lib/tempname.c (__gen_tempname): Change attempts_min
53070         into a macro.  Use preprocessor to decide how to initialize
53071         attempts [Coverity CID 67].
53072
53073 2006-09-20  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/mkdtemp.c: Import from libc.
53076         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53077                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53078                 attempts_min into a macro.  Use preprocessor to decide how to
53079                 initialize attempts [Coverity CID 67].
53080         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53081                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53082                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53083
53084 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53085
53086         * gnulib-tool (func_exit): New function, to allow to pass the
53087         exit status portably through the trap.  Use everywhere.
53088         (--help, --version): Signal a write error.
53089         (trap): catch SIGPIPE, for write errors.
53090         Exit at the end of the trap, with the correct exit status.
53091
53092 2006-09-19  Karl Berry  <karl@gnu.org>
53093
53094         * doc/gnulib.texi: note about the license texinfo files.
53095
53096 2006-09-19  Eric Blake  <ebb9@byu.net>
53097
53098         * gnulib-tool: Avoid space-tab.
53099
53100 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53101
53102         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53103         that prevented coreutils 6.1 from building.  Problem reported
53104         by Petter Reinholdtsen.
53105
53106 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * gnulib-tool (avoidlist): Fix typo that broke options like
53109         --avoid=lock that are used by coreutils bootstrap.
53110
53111 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53112
53113         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53114         more systematically.
53115
53116 2006-09-18  Jim Meyering  <jim@meyering.net>
53117
53118         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53119
53120 2006-09-18  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53123
53124 2006-09-18  Bruno Haible  <bruno@clisp.org>
53125
53126         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53127         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53128         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53129         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53130         * m4/gettext.m4: Require autoconf >= 2.52.
53131         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53132         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53133         of gl_cv_header_inttypes_h.
53134
53135 2006-09-18  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/javaversion.c: Include configmake.h.
53138
53139 2006-09-18  Bruno Haible  <bruno@clisp.org>
53140
53141         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53142         avoid that the while loops be executed in a subshell.
53143
53144 2006-09-18  Bruno Haible  <bruno@clisp.org>
53145
53146         * MODULES.html.sh (func_module): Break long lines.
53147         Suggested by Bruce Korb <bkorb@gnu.org>.
53148
53149 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53150
53151         Speed up by a factor of 1.12.
53152         * gnulib-tool (nl): New variable.
53153         (func_import): Rewrite include directive extraction to only read each
53154         directive once.
53155
53156 2006-09-17  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/javaversion (Makefile.am): Remove DEFS setting.
53159         (Depends-on): Add configmake, for PKGDATADIR definition.
53160
53161 2006-09-17  Bruno Haible  <bruno@clisp.org>
53162
53163         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53164
53165 2006-09-17  Bruno Haible  <bruno@clisp.org>
53166
53167         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53168         (func_modules_transitive_closure, func_modules_add_dummy,
53169         func_modules_to_filelist, func_import, func_create_testdir,
53170         func_create_megatestdir, ...): Use it wherever possible.
53171         Suggested by Ralf Wildenhues.
53172
53173 2006-09-16  Karl Berry  <karl@gnu.org>
53174
53175         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53176         to avoid sectioning errors.
53177         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53178         [ifinfo]: blank line after @center-ed titles.
53179         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53180         Spell FSF address consistently with others.
53181         (These changes approved by rms.)
53182
53183 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53184
53185         Speed up by a factor of 1.61.
53186         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53187         already checked module names again.
53188
53189 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53190
53191         Speed up by a factor of 1.13.
53192         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53193         for new_files, and the input to func_add_or_update.
53194
53195 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53196
53197         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53198         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53199
53200 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53201
53202         * modules/mkancesdirs (Depends-on): Add fcntl.
53203         * modules/savewd: New file.
53204         * MODULES.html.sh (File system functions): Add savewd.
53205
53206         * modules/configmake (Makefile.am): Add support for the
53207         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53208
53209 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53210
53211         * m4/savewd.m4: New file.
53212
53213 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53214
53215         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53216         (dirchownmod): New arg FD.  All callers changed.
53217         Use FD rather than opening the directory ourself, as opening is
53218         now the caller's responsibility.
53219         * lib/dirchownmod.h: Likewise.
53220         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53221         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53222         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53223         (test_dir): Remove.
53224         (mkancesdirs): Return length of prefix of FILE that has already
53225         been made, or -2 if there is a child doing the work.  Redo
53226         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53227         ".", and treat ".." specially since it might stray back into
53228         already-created areas.  Use a subprocess if necessary.  New arg
53229         WD; all users changed.  MAKE_DIR function should now return 1
53230         if it creates a directory that is not readable.  Return -2 if
53231         a child process is spun off.
53232         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53233         Adjust signature to match code.
53234         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53235         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53236         all users changed.
53237         * lib/savewd.c, lib/savewd.h: New files.
53238
53239 2006-09-15  Jim Meyering  <jim@meyering.net>
53240
53241         * modules/rename-dest-slash: New module.
53242         * MODULES.html.sh (posix_compat): Add it here.
53243
53244         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53245
53246 2006-09-15  Jim Meyering  <jim@meyering.net>
53247
53248         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53249         file.
53250
53251         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53252
53253 2006-09-15  Jim Meyering  <jim@meyering.net>
53254
53255         * lib/rename-dest-slash.c (has_trailing_slash): Use
53256         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53257         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53258         test before testing whether SRC is a directory.
53259         Suggestions from Bruno Haible.
53260
53261         Avoid a warning about an unused variable.
53262         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53263         into the #ifdef block where it's used.
53264
53265         * lib/rename-dest-slash.c: New file.
53266
53267 2006-09-14  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/allocsa.c: Include <config.h> unconditionally.
53270         * lib/asnprintf.c: Likewise.
53271         * lib/asprintf.c: Likewise.
53272         * lib/c-strcasecmp.c: Likewise.
53273         * lib/c-strcasestr.c: Likewise.
53274         * lib/c-strncasecmp.c: Likewise.
53275         * lib/c-strstr.c: Likewise.
53276         * lib/classpath.c: Likewise.
53277         * lib/clean-temp.c: Likewise.
53278         * lib/concatpath.c: Likewise.
53279         * lib/copy-file.c: Likewise.
53280         * lib/csharpcomp.c: Likewise.
53281         * lib/csharpexec.c: Likewise.
53282         * lib/execute.c: Likewise.
53283         * lib/fatal-signal.c: Likewise.
53284         * lib/findprog.c: Likewise.
53285         * lib/fwriteerror.c: Likewise.
53286         * lib/gl_array_list.c: Likewise.
53287         * lib/gl_array_oset.c: Likewise.
53288         * lib/gl_avltree_list.c: Likewise.
53289         * lib/gl_avltree_oset.c: Likewise.
53290         * lib/gl_avltreehash_list.c: Likewise.
53291         * lib/gl_carray_list.c: Likewise.
53292         * lib/gl_linked_list.c: Likewise.
53293         * lib/gl_linkedhash_list.c: Likewise.
53294         * lib/gl_list.c: Likewise.
53295         * lib/gl_oset.c: Likewise.
53296         * lib/gl_rbtree_list.c: Likewise.
53297         * lib/gl_rbtree_oset.c: Likewise.
53298         * lib/gl_rbtreehash_list.c: Likewise.
53299         * lib/imaxabs.c: Likewise.
53300         * lib/imaxdiv.c: Likewise.
53301         * lib/javacomp.c: Likewise.
53302         * lib/javaexec.c: Likewise.
53303         * lib/javaversion.c: Likewise.
53304         * lib/linebreak.c: Likewise.
53305         * lib/localcharset.c: Likewise.
53306         * lib/lock.c: Likewise.
53307         * lib/mbchar.c: Likewise.
53308         * lib/mbswidth.c: Likewise.
53309         * lib/mkdtemp.c: Likewise.
53310         * lib/pipe.c: Likewise.
53311         * lib/printf-args.c: Likewise.
53312         * lib/printf-parse.c: Likewise.
53313         * lib/progname.c: Likewise.
53314         * lib/progreloc.c: Likewise.
53315         * lib/readlink.c: Likewise.
53316         * lib/sh-quote.c: Likewise.
53317         * lib/stpcpy.c: Likewise.
53318         * lib/stpncpy.c: Likewise.
53319         * lib/strcasecmp.c: Likewise.
53320         * lib/strcasestr.c: Likewise.
53321         * lib/strcspn.c: Likewise.
53322         * lib/striconv.c: Likewise.
53323         * lib/strncasecmp.c: Likewise.
53324         * lib/strnlen1.c: Likewise.
53325         * lib/strstr.c: Likewise.
53326         * lib/strtok_r.c: Likewise.
53327         * lib/tls.c: Likewise.
53328         * lib/tmpdir.c: Likewise.
53329         * lib/unicodeio.c: Likewise.
53330         * lib/unsetenv.c: Likewise.
53331         * lib/vasnprintf.c: Likewise.
53332         * lib/vasprintf.c: Likewise.
53333         * lib/wait-process.c: Likewise.
53334         * lib/xallocsa.c: Likewise.
53335         * lib/xsetenv.c: Likewise.
53336         * lib/xstriconv.c: Likewise.
53337
53338 2006-09-13  Simon Josefsson  <jas@extundo.com>
53339
53340         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53341         that internally, suggested by Ralf Wildenhues
53342         <Ralf.Wildenhues@gmx.de>.
53343
53344 2006-09-13  Simon Josefsson  <jas@extundo.com>
53345
53346         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53347         @LIBOBJS@.
53348         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53349
53350 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53353         longer worry about uses that don't define HAVE_CONFIG_H.
53354         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53355         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53356         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53357         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53358         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53359         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53360         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53361         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53362         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53363         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53364         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53365         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53366         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53367         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53368         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53369         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53370         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53371         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53372         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53373         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53374         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53375         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53376         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53377         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53378         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53379         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53380         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53381         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53382         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53383         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53384         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53385         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53386         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53387         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53388         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53389         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53390         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53391         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53392         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53393         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53394         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53395         Likewise.
53396
53397 2006-09-13  Eric Blake  <ebb9@byu.net>
53398
53399         * lib/getopt.c: Fix typo in last commit.
53400
53401 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53402
53403         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53404         dgettext.
53405
53406 2006-09-12  Jim Meyering  <jim@meyering.net>
53407
53408         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53409         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53410         Reported by Nelson H. F. Beebe.
53411
53412 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53413
53414         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53415         program_invocation_name and program_invocation_short_name are
53416         initialized.
53417         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53418         and program_invocation_short_name to argp.h, so they are visible
53419         to user programs.
53420         * lib/argp.h: Likewise
53421
53422 2006-09-10  Bruno Haible  <bruno@clisp.org>
53423
53424         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53425         m4/inttypes_h.m4, m4/uintmax_t.m4.
53426
53427 2006-09-10  Bruno Haible  <bruno@clisp.org>
53428
53429         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53430         gl_AC_TYPE_UINTMAX_T.
53431
53432 2006-09-10  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53435
53436 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53437
53438         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53439         convention.  Text proposed by Bruno Haible.
53440         (struct argp_option): Document the use of N_() wrappers.
53441
53442         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53443         '\v', and translate the two parts separately, instead of feeding
53444         the whole string to gettext.  This allows to exclude
53445         '\v' from the strings visible to the translator by writing doc
53446         strings as N_("..") "\v" N_("..").
53447
53448 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * config/srclist.txt: Undo latest change; the bug was fixed.
53451
53452 2006-09-09  Bruno Haible  <bruno@clisp.org>
53453
53454         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53455         assignments if building a library without libtool.
53456         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53457         in func_emit_lib_Makefile_am.
53458         (func_import): When building a static library libfoo.a, arrange to
53459         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53460         (func_create_testdir): Likewise.
53461         * modules/gc (configure.ac, Makefile.am): If building statically,
53462         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53463         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53464         * modules/striconv (configure.ac, Makefile.am): Likewise.
53465         Based on a suggestion by Ralf Wildenhues.
53466
53467 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53470         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53471         Also:
53472
53473         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53474         Add year_2050_test to catch glibc bug 2821
53475         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53476
53477         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53478         Prefer #ifdef to #if.
53479
53480         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53481         Return from 'main' instead of calling 'exit'.
53482
53483 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53486         returned the maximum time_t value rather than (time_t) -1.
53487         Problem originally reported by William Bardwell
53488         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53489
53490         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53491         Moved to here ...
53492         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53493         ... from here.
53494
53495 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53496
53497         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53498         2821 is fixed.
53499
53500 2006-09-08  Jim Meyering  <jim@meyering.net>
53501
53502         Don't make generated files read-only.  That would bother too many
53503         people.  However, do retain the ability to work when targets are
53504         read-only: remove the destination and temporary files before writing
53505         them (when generated via sed or echo), or by using the -f option for
53506         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53507         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53508         * modules/byteswap, modules/configmake, modules/fcntl:
53509         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53510         * modules/localcharset, modules/netinet_in, modules/poll:
53511         * modules/stdbool, modules/stdint, modules/sys_select:
53512         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53513
53514 2006-09-08  Jim Meyering  <jim@meyering.net>
53515
53516         Avoid new build failure on FreeBSD 6.0.
53517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53518         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53519         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53520
53521 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53522
53523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53524
53525 2006-09-07  Jim Meyering  <jim@meyering.net>
53526
53527         Fix global typo in last change: use chmod u-w, not chmod u-x.
53528         Spotted by Paul Eggert and Bruce Korb.
53529         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53530         * modules/byteswap, modules/configmake, modules/fcntl:
53531         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53532         * modules/localcharset, modules/netinet_in, modules/poll:
53533         * modules/stdbool, modules/stdint, modules/sys_select:
53534         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53535
53536 2006-09-06  Jim Meyering  <jim@meyering.net>
53537
53538         Make generated files be read-only.
53539         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53540         Ensure that each generated file is now read-only.
53541         * modules/argz: Likewise.
53542         * modules/arpa_inet: Likewise.
53543         * modules/byteswap: Likewise.
53544         * modules/configmake: Likewise.
53545         * modules/fcntl: Likewise.
53546         * modules/fnmatch: Likewise.
53547         * modules/getopt: Likewise.
53548         * modules/glob: Likewise.
53549         * modules/inttypes: Likewise.
53550         * modules/netinet_in: Likewise.
53551         * modules/poll: Likewise.
53552         * modules/stdbool: Likewise.
53553         * modules/stdint: Likewise.
53554         * modules/sys_select: Likewise.
53555         * modules/sys_socket: Likewise.
53556         * modules/sys_stat: Likewise.
53557         * modules/sysexits: Likewise.
53558         * modules/localcharset: Same as above, but continue using temporary
53559         file named "t-$@" (why different?) rather than the "$@-t" used
53560         everywhere else.
53561
53562         * modules/sysexits (Makefile.am): Replace literal occurrences
53563         of "sysexit.h" more readable, and more consistent, "$@".
53564
53565 2006-09-06  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/striconv: New file.
53568         * modules/xstriconv: New file.
53569         * MODULES.html.sh (Internationalization functions): Add striconv,
53570         xstriconv.
53571
53572 2006-09-06  Bruno Haible  <bruno@clisp.org>
53573
53574         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53575         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53576         not using libtool correctly.
53577
53578 2006-09-06  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/striconv.h: New file.
53581         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53582         iconvstring.c.
53583         * lib/xstriconv.h: New file.
53584         * lib/xstriconv.c: New file.
53585
53586 2006-09-06  Bruno Haible  <bruno@clisp.org>
53587
53588         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53589         lib_..._LDFLAGS.
53590
53591 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53592
53593         * lib/argz_.h: Sync from Libtool.
53594
53595         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53596                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53597
53598         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53599
53600 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53601
53602         * modules/trim: New file.
53603
53604 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53605
53606         * lib/trim.h: New file.
53607         * lib/trim.c: New file.
53608
53609 2006-09-05  Bruno Haible  <bruno@clisp.org>
53610
53611         * MODULES.html.sh (String handling): Add trim.
53612
53613 2006-09-04  Karl Berry  <karl@gnu.org>
53614
53615         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53616         until next release.
53617
53618 2006-09-03  Bruno Haible  <bruno@clisp.org>
53619
53620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53621         correctly.
53622
53623 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53624
53625         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53626         not gl_GETLOADAVG.  Omit unneeded semicolons.
53627         Problems reported by Ralf Wildenhues in
53628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53629         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53630         at the end, which is the usual gnulib style.
53631
53632         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53633         of doing all the work ourselves.
53634         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53635         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53636
53637 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53640         Problem reported by Ralf Wildenhues in
53641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53642
53643         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53644         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53645
53646 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53649         yesterday's patch by changing test -n to test -z.
53650
53651 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53654         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53655         the former is now obsolescent.
53656
53657         * modules/chdir-long (Depends-on): Add fcntl.
53658
53659 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53662         obsolescent, and programs should use gnulib instead.
53663         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53664         but with prefixes changed.
53665
53666 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53667
53668         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53669         or stdbool.h, because they might not exist while configuring.
53670
53671         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53672         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53673         does that for us.
53674         (O_DIRECTORY): Remove.
53675
53676 2006-08-31  Eric Blake  <ebb9@byu.net>
53677
53678         * gnulib-tool: Don't let emacs change spaces to TAB.
53679
53680 2006-08-31  Bruno Haible  <bruno@clisp.org>
53681
53682         * gnulib-tool: When calling func_import more than once, do it in a
53683         subshell.
53684         Reported by Eric Blake <ebb9@byu.net>.
53685
53686 2006-08-31  Bruno Haible  <bruno@clisp.org>
53687
53688         * gnulib-tool (nl): Remove variable.
53689         (sed_transform_lib_file): Use more robust test for config-h module.
53690         (func_import): Fix typo in 2006-08-25 patch.
53691
53692 2006-08-31  Bruno Haible  <bruno@clisp.org>
53693
53694         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53695         specified, augment Makefile.am variables instead of assigning them.
53696
53697 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         Work around a bug in both the Linux and SunOS 64-bit kernels:
53700         nanosleep mishandles sleeps for longer than 2**31 seconds.
53701         Problem reported by Frank v Waveren in
53702         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53704         Check for nanosleep bug.
53705         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53706
53707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         Work around a bug in both the Linux and SunOS 64-bit kernels:
53710         nanosleep mishandles sleeps for longer than 2**31 seconds.
53711         Problem reported by Frank v Waveren in
53712         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53713         * lib/nanosleep.c (BILLION): New constant.
53714         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53715         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53716         implementation.
53717
53718 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53719
53720         * modules/nanosleep (Depends-on): Add gettime.
53721
53722 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53723         and Simon Josefsson  <jas@extundo.com>
53724         and Oskar Liljeblad  <oskar@osk.mine.nu>
53725
53726         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53727         * gnulib-tool (func_import): New license type 'unmodifiable license
53728         text'.
53729         * modules/fdl: Use it.  Longer description.
53730         * module/gpl, module/lgpl: New files.
53731
53732 2006-08-30  Jim Meyering  <jim@meyering.net>
53733
53734         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53735         shadowing the parameter.
53736
53737 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53738
53739         Sync from Libtool:
53740
53741         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53742
53743         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53744         sharing with gnulib.  Report by Eric Blake.
53745
53746 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53747
53748         * modules/isapipe: New file.
53749         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53750
53751 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53752
53753         * modules/configmake (Makefile.am): Add a comment, and omit
53754         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53755         by Bruno Haible.
53756
53757 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53758
53759         * m4/isapipe.m4: New file.
53760
53761 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/isapipe.c, lib/isapipe.h: New files.
53764
53765 2006-08-29  Jim Meyering  <jim@meyering.net>
53766
53767         * modules/configmake (Makefile.am): Make configmake.h depend on
53768         Makefile.  Otherwise, a stale configmake.h could hang around.
53769
53770 2006-08-29  Eric Blake  <ebb9@byu.net>
53771
53772         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53773         resolution of upstream bug 3044.
53774
53775 2006-08-29  Bruno Haible  <bruno@clisp.org>
53776
53777         * modules/localcharset (Depends-on): Add configmake.
53778         (Makefile.am): Remove setting of LIBDIR through DEFS.
53779
53780 2006-08-29  Bruno Haible  <bruno@clisp.org>
53781
53782         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53783         defined.
53784
53785 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * modules/fcntl: New file.
53788         * modules/chdir-safer (Depends-on): Add fcntl.
53789         * modules/fts: Likewise.
53790         * modules/mkdir-p: Likewise.
53791
53792         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53793         This undoes the most recent change, since we're now addressing the
53794         problem in a different way.
53795
53796         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53797         into output, since the output might be called Makefile.am even
53798         if $makefile_name is something different.
53799         (func_import): Use $makefile_am rather than
53800         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53801         empty.
53802
53803         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53804
53805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53806
53807         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53808         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53809         recent change to stdint.m4, since we're now addressing the problem in a
53810         different way.
53811
53812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * m4/fcntl_h.m4: New file.
53815
53816 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * lib/fcntl_.h: New file.
53819         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53820         the fcntl module.
53821         * lib/dirchownmod.c: Likewise.
53822         * lib/fts.c: Likewise.
53823
53824         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53825         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53826         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53827         just before including <inttypes.h>, to avoid circular inclusion.
53828
53829 2006-08-28  Jim Meyering  <jim@meyering.net>
53830
53831         * doc/visibility.texi: Actually read and correct the grammar of the
53832         sentence affected by yesterday's change.
53833
53834 2006-08-28  Eric Blake  <ebb9@byu.net>
53835
53836         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53837         needs wrapper.
53838
53839 2006-08-28  Eric Blake  <ebb9@byu.net>
53840
53841         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53842
53843 2006-08-28  Eric Blake  <ebb9@byu.net>
53844
53845         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53846
53847 2006-08-28  Bruno Haible  <bruno@clisp.org>
53848
53849         * modules/c-strstr: New file, from GNU gettext.
53850         * MODULES.html.sh (String handling): Add c-strstr.
53851
53852 2006-08-28  Bruno Haible  <bruno@clisp.org>
53853
53854         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53855         macros.
53856         Reported by Eric Blake.
53857
53858 2006-08-28  Bruno Haible  <bruno@clisp.org>
53859
53860         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53861         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53862         * lib/vasprintf.c: Include errno.h, limits.h.
53863         (EOVERFLOW): New fallback definition.
53864         (vasprintf): Test here whether the string length is > INT_MAX.
53865         * lib/vsnprintf.c: Include errno.h, limits.h.
53866         (EOVERFLOW): New fallback definition.
53867         (vsnprintf): Fix bug when generated string was too long for the buffer.
53868         Test here whether the string length is > INT_MAX.
53869
53870 2006-08-28  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/inttypes_.h (SCNX*): Remove definitions.
53873         Reported by Eric Blake.
53874
53875 2006-08-28  Bruno Haible  <bruno@clisp.org>
53876
53877         * lib/c-strstr.h: New file, from GNU gettext.
53878         * lib/c-strstr.c: New file, from GNU gettext.
53879
53880 2006-08-28  Bruno Haible  <bruno@clisp.org>
53881
53882         * gnulib-tool: Reorder some statements.
53883
53884 2006-08-28  Bruno Haible  <bruno@clisp.org>
53885
53886         * gnulib-tool: New option --makefile-name.
53887         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53888         $makefile_name.
53889         (func_import): Write $makefile_name to the cache file, and read it from
53890         there unless explicitly specified. Use $makefile_name as file name
53891         instead of Makefile.am. Adjust the recommendations accordingly.
53892
53893 2006-08-28  Bruno Haible  <bruno@clisp.org>
53894
53895         * gnulib-tool (func_verify_module): Check against misapplying patch.
53896
53897 2006-08-28  Bruno Haible  <bruno@clisp.org>
53898
53899         * gnulib-tool (func_relativize, func_relconcat): New functions.
53900         Give an error if --local-dir is given with --update.
53901         Remove trailing slashes from $local_gnulib_dir.
53902         (func_import): Store the relativized $local_gnulib_dir in
53903         gnulib-cache.m4, and read it from there if not specified explicitly.
53904
53905 2006-08-28  Bruno Haible  <bruno@clisp.org>
53906
53907         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53908         is the current directory. Respect also $local_gnulib_dir.
53909
53910 2006-08-28  Bruno Haible  <bruno@clisp.org>
53911             Simon Josefsson  <jas@extundo.com>
53912
53913         BeOS portability.
53914         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53915
53916 2006-08-27  Jim Meyering  <jim@meyering.net>
53917
53918         * doc/visibility.texi: Remove duplicate word: "pointer".
53919
53920 2006-08-26  Bruno Haible  <bruno@clisp.org>
53921
53922         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53923         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53924         (Makefile.am): Create inttypes.h from inttypes_.h.
53925         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53926
53927         * modules/imaxabs: New file.
53928
53929         * modules/imaxdiv: New file.
53930
53931 2006-08-26  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/inttypes.m4: New file.
53934         * m4/_inttypes_h.m4: Remove file.
53935         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53936         PRI_MACROS_BROKEN.
53937         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53938
53939         * m4/imaxabs.m4: New file.
53940
53941         * m4/imaxdiv.m4: New file.
53942
53943 2006-08-26  Bruno Haible  <bruno@clisp.org>
53944
53945         * lib/inttypes_.h: New file.
53946         * lib/inttypes.h: Remove file.
53947         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53948
53949         * lib/imaxabs.c: New file.
53950
53951         * lib/imaxdiv.c: New file.
53952
53953 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53954
53955         New config-h module, so that "make" output needn't be cluttered
53956         by -DHAVE_CONFIG_H.
53957         * MODULES.html.sh (Support for building libraries and executables):
53958         Add config-h.
53959         * modules/config-h: New file.
53960         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53961         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53962         the config-h module is used.
53963
53964         New configmake module, so that "make" output needn't be cluttered
53965         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53966         * MODULES.html.sh (Support for building libraries and executables):
53967         Add configmake.
53968         * modules/configmake: New file.
53969
53970 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53971
53972         * m4/config-h.m4: New file.
53973
53974 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         * config/srclist.txt: Add elisp-comp.
53977
53978 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53979
53980         * MODULES.html.sh (Support for building libraries and executables):
53981         Add elisp-comp.
53982         * build-aux/elisp-comp: New file.
53983         * modules/elisp-comp: New file.
53984
53985 2006-08-24  Bruno Haible  <bruno@clisp.org>
53986
53987         * gnulib-tool (func_create_testdir): Use non-default values of
53988         sourcebase and m4base.
53989
53990 2006-08-24  Bruno Haible  <bruno@clisp.org>
53991
53992         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53993         HTML structure.
53994
53995 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * modules/openat (Depends-on): Add lchown.
53998
53999 2006-08-23  Bruno Haible  <bruno@clisp.org>
54000
54001         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54002         of gl_LOCK_EARLY instead of gl_LOCK.
54003
54004 2006-08-23  Bruno Haible  <bruno@clisp.org>
54005
54006         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54007         on OSF/1 to no.
54008         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54009
54010 2006-08-23  Bruno Haible  <bruno@clisp.org>
54011
54012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54013         as unusable.
54014
54015         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54016         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54017         (gl_LOCK): New macro.
54018
54019 2006-08-22  Simon Josefsson  <jas@extundo.com>
54020
54021         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54022         to md5 module.
54023
54024 2006-08-22  Simon Josefsson  <jas@extundo.com>
54025
54026         * MODULES.html.sh: Add "Support for maintaining and release
54027         projects".
54028
54029         * build-aux/gnupload: New file, from coreutils.
54030
54031 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54032
54033         Avoid the need for AC_LIBSOURCES in m4 macros.
54034         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54035         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54036         * modules/check-version (EXTRA_DIST): Add check-version.h.
54037         * modules/crc (EXTRA_DIST): Add crc.h.
54038         * modules/des (EXTRA_DIST): Add des.h.
54039         * modules/gc (EXTRA_DIST): Add gc.h.
54040         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54041         * modules/getline (EXTRA_DIST): Add getline.h.
54042         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54043         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54044         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54045         * modules/md2 (EXTRA_DIST): Add md2.h.
54046         * modules/md4 (EXTRA_DIST): Add md4.h.
54047         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54048         * modules/read-file (EXTRA_DIST): Add read-file.h.
54049         * modules/readline (EXTRA_DIST): Add readline.h.
54050         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54051         rijndael-api-fst.h.
54052
54053 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54054
54055         * m4/rijndael.m4 (gl_ARCFOUR):
54056         * m4/arctwo.m4 (gl_ARCTWO):
54057         * m4/check-version.m4 (gl_CHECK_VERSION):
54058         * m4/crc.m4 (gl_CRC):
54059         * m4/des.m4 (gl_DES):
54060         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54061         * m4/gc.m4 (gl_GC):
54062         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54063         * m4/getline.m4 (gl_FUNC_GETLINE):
54064         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54065         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54066         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54067         * m4/md2.m4 (gl_MD2):
54068         * m4/md4.m4 (gl_MD4):
54069         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54070         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54071         * m4/readline.m4 (gl_FUNC_READLINE):
54072         * m4/rijndael.m4 (gl_RIJNDAEL):
54073         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54074         to get the necessary .h files and whatnot.
54075
54076 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54079         gnulib rather than the other way around.
54080         * config/srclistvars.sh (COREUTILS): Remove.
54081
54082 2006-08-22  Jim Meyering  <jim@meyering.net>
54083
54084         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54085
54086         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54087
54088 2006-08-22  Eric Blake  <ebb9@byu.net>
54089
54090         * modules/regexprops-generic: New file.
54091         * MODULES.html.sh (Support for building documentation): List it.
54092
54093 2006-08-22  Eric Blake  <ebb9@byu.net>
54094
54095         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54096         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54098         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54099
54100 2006-08-22  Bruno Haible  <bruno@clisp.org>
54101
54102         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54103         and lib_LTLIBRARIES like the other lib_* variables.
54104
54105 2006-08-22  Bruno Haible  <bruno@clisp.org>
54106
54107         * build-aux/x-to-1.in: New file, from GNU gettext.
54108
54109 2006-08-22  Bruno Haible  <bruno@clisp.org>
54110
54111         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54112         <utmpx.h> exists.
54113
54114 2006-08-22  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54117         <utmpx.h> exists.
54118
54119 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54120
54121         BeOS portability.
54122         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54123         exist.
54124         Problem reported by Bruno Haible.
54125
54126 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         Avoid the need for AC_LIBSOURCES in m4 macros.
54129         * modules/acl (EXTRA_DIST): Add acl.h.
54130         * modules/argmatch (Files): Add m4/argmatch.m4.
54131         (configure.ac): Add gl_ARGMATCH.
54132         (EXTRA_DIST): Renamed from lib_SOURCES, for
54133         consistency with the other modules.  Remove argmatch.c.
54134         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54135         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54136         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54137         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54138         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54139         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54140         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54141         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54142         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54143         * modules/closeout (EXTRA_DIST): Add closeout.h.
54144         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54145         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54146         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54147         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54148         dirname.h; remove basename.c and stripslash.c.
54149         * modules/exclude (EXTRA_DIST): Add exclude.h.
54150         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54151         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54152         * modules/file-type (EXTRA_DIST): Add file-type.h.
54153         * modules/filemode (EXTRA_DIST): Add filemode.h.
54154         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54155         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54156         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54157         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54158         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54159         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54160         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54161         * modules/getdate (EXTRA_DIST): Add getdate.c.
54162         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54163         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54164         * modules/getpass (EXTRA_DIST): Add getpass.h.
54165         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54166         * modules/group-member (EXTRA_DIST): Add group-member.h.
54167         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54168         * modules/hash (EXTRA_DIST): Add hash.h.
54169         * modules/human (EXTRA_DIST): Add human.h.
54170         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54171         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54172         * modules/lchown (EXTRA_DIST): Add lchown.h.
54173         * modules/long-options (EXTRA_DIST): Add long-options.h.
54174         * modules/lstat (EXTRA_DIST): Add lstat.h.
54175         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54176         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54177         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54178         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54179         * modules/memxor (EXTRA_DIST): Add memxor.h.
54180         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54181         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54182         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54183         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54184         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54185         * modules/physmem (EXTRA_DIST): Add physmem.h.
54186         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54187         * modules/posixver (EXTRA_DIST): Add posixver.h.
54188         * modules/quote (EXTRA_DIST): Add quote.h.
54189         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54190         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54191         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54192         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54193         regex_internal.h regexec.c.
54194         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54195         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54196         * modules/same (EXTRA_DIST): Add same.h.
54197         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54198         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54199         * modules/savedir (EXTRA_DIST): Add savedir.h.
54200         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54201         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54202         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54203         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54204         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54205         * modules/strdup (EXTRA_DIST): Add strdup.h.
54206         * modules/strftime (EXTRA_DIST): Add strftime.h.
54207         * modules/strndup (EXTRA_DIST): Add strndup.h.
54208         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54209         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54210         * modules/time_r (EXTRA_DIST): Add time_r.h.
54211         * modules/timespec (EXTRA_DIST): Add timespec.h.
54212         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54213         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54214         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54215         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54216         * modules/userspec (EXTRA_DIST): Add userspec.h.
54217         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54218         * modules/utimens (EXTRA_DIST): Add utimens.h.
54219         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54220         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54221         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54222         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54223         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54224         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54225         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54226         * modules/yesno (EXTRA_DIST): Add yesno.h.
54227
54228 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54231
54232         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54233         * m4/dev-ino.m4, same-inode.m4: Remove.
54234
54235         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54236         * m4/acl.m4 (AC_FUNC_ACL):
54237         * m4/backupfile.m4 (gl_BACKUPFILE):
54238         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54239         * m4/canon-host.m4 (gl_CANON_HOST):
54240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54242         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54243         * m4/cloexec.m4 (gl_CLOEXEC):
54244         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54245         * m4/closeout.m4 (gl_CLOSEOUT):
54246         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54247         * m4/dirname.m4 (gl_DIRNAME):
54248         * m4/exclude.m4 (gl_EXCLUDE):
54249         * m4/exitfail.m4 (gl_EXITFAIL):
54250         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54251         * m4/file-type.m4 (gl_FILE_TYPE):
54252         * m4/filemode.m4 (gl_FILEMODE):
54253         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54254         * m4/fpending.m4 (gl_FUNC_FPENDING):
54255         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54256         * m4/fts.m4 (gl_FUNC_FTS):
54257         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54258         * m4/getdate.m4 (gl_GETDATE):
54259         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54260         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54261         * m4/getpass.m4 (gl_FUNC_GETPASS):
54262         * m4/gettime.m4 (gl_GETTIME):
54263         * m4/getugroups.m4 (gl_GETUGROUPS):
54264         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54265         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54266         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54267         * m4/hash.m4 (gl_HASH):
54268         * m4/idcache.m4 (gl_IDCACHE):
54269         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54270         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54271         * m4/long-options.m4 (gl_LONG_OPTIONS):
54272         * m4/lstat.m4 (gl_FUNC_LSTAT):
54273         * m4/md5.m4 (gl_MD5):
54274         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54275         * m4/memcoll.m4 (gl_MEMCOLL):
54276         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54278         * m4/memxor.m4 (gl_MEMXOR):
54279         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54281         * m4/modechange.m4 (gl_MODECHANGE):
54282         * m4/mountlist.m4 (gl_MOUNTLIST):
54283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54284         * m4/openat.m4 (gl_FUNC_OPENAT):
54285         * m4/pathmax.m4 (gl_PATHMAX):
54286         * m4/physmem.m4 (gl_PHYSMEM):
54287         * m4/posixtm.m4 (gl_POSIXTM):
54288         * m4/posixver.m4 (gl_POSIXVER):
54289         * m4/quote.m4 (gl_QUOTE):
54290         * m4/quotearg.m4 (gl_QUOTEARG):
54291         * m4/readtokens.m4 (gl_READTOKENS):
54292         * m4/readutmp.m4 (gl_READUTMP):
54293         * m4/regex.m4 (gl_REGEX):
54294         * m4/safe-read.m4 (gl_SAFE_READ):
54295         * m4/safe-write.m4 (gl_SAFE_WRITE):
54296         * m4/same.m4 (gl_SAME):
54297         * m4/save-cwd.m4 (gl_SAVE_CWD):
54298         * m4/savedir.m4 (gl_SAVEDIR):
54299         * m4/settime.m4 (gl_SETTIME):
54300         * m4/sha1.m4 (gl_SHA1):
54301         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54302         * m4/stat-macros.m4 (gl_STAT_MACROS):
54303         * m4/stat-time.m4 (gl_STAT_TIME):
54304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54305         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54306         * m4/strdup.m4 (gl_FUNC_STRDUP):
54307         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54308         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54309         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54310         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54311         * m4/time_r.m4 (gl_TIME_R):
54312         * m4/timespec.m4 (gl_TIMESPEC):
54313         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54314         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54315         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54316         * m4/userspec.m4 (gl_USERSPEC):
54317         * m4/utimecmp.m4 (gl_UTIMECMP):
54318         * m4/utimens.m4 (gl_UTIMENS):
54319         * m4/xalloc.m4 (gl_XALLOC):
54320         * m4/xgetcwd.m4 (gl_XGETCWD):
54321         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54322         * m4/xreadlink.m4 (gl_XREADLINK):
54323         * m4/xstrtod.m4 (gl_XSTRTOD):
54324         * m4/yesno.m4 (gl_YESNO):
54325         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54326         to get the necessary .h files and whatnot.
54327
54328 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54329             Bruno Haible  <bruno@clisp.org>
54330
54331         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54332         /bin/sh understanding of '!' conditional negation.
54333
54334 2006-08-21  Jim Meyering  <jim@meyering.net>
54335
54336         * modules/openat (Depends-on): Really alphabetize.
54337
54338         * modules/acl (Depends-on): Add error and quote.
54339
54340         * check-module (find_included_lib_files): Add at-func.c to the
54341         ok-to-include-more-than-once white list.
54342
54343         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54344
54345 2006-08-21  Bruno Haible  <bruno@clisp.org>
54346
54347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54348         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54349         Reported by Martin Lambers <marlam@marlam.de>.
54350
54351 2006-08-21  Bruno Haible  <bruno@clisp.org>
54352
54353         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54354         specify an installation location, don't emit a noinst_LIBRARIES or
54355         noinst_LTLIBRARIES assignment.
54356
54357 2006-08-21  Bruno Haible  <bruno@clisp.org>
54358
54359         BeOS portability.
54360         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54361         BeOS has mbrtowc() but no <wctype.h>.
54362
54363 2006-08-21  Bruno Haible  <bruno@clisp.org>
54364
54365         BeOS portability.
54366         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54367         exist.
54368
54369 2006-08-21  Bruno Haible  <bruno@clisp.org>
54370
54371         BeOS portability.
54372         * lib/mbchar.h: Include <wctype.h> only if it exists.
54373
54374 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54375
54376         Remove files that are no longer needed by their respective modules.
54377         * m4/obstack.m4: Remove.
54378         * m4/strerror_r.m4: Remove.
54379         * m4/uint32_t.m4: Remove.
54380         * m4/uintptr_t.m4: Remove.
54381         * m4/ullong_max.m4: Remove.
54382         * m4/xstrtoimax.m4: Remove.
54383         * m4/xstrtoumax.m4: Remove.
54384
54385         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54386         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54387         dependencies now capture this.
54388
54389         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54390         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54391         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54392         * m4/human.m4 (gl_HUMAN): Likewise.
54393         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54394         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54395
54396         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54397
54398         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54399         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54400         stdint.
54401         * m4/human.m4 (gl_HUMAN): Likewise.
54402         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54403         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54404         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54405         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54406         * m4/xstrtol (gl_XSTRTOL): Likewise.
54407
54408         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54409         AC_TYPE_LONG_LONG_INT.
54410         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54411         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54412         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54413         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54414
54415         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54416         on stdbool.
54417
54418         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54419         (gl_PREREQ_XSTRTOUL): Remove.
54420
54421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54422
54423         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54424         mode.
54425
54426 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         Add and change modules to make it easier for coreutils to use
54429         gnulib-tool.
54430         * modules/backupfile (Files): Remove m4/d-ino.m4.
54431         (Depends-on): Add d-ino.
54432         * modules/cycle-check (Depends-on): Add stdint.
54433         (lib_SOURCES): Add cycle-check.h.
54434         * modules/d-ino: New module.
54435         * modules/d-type: New module.
54436         * modules/error (Files): Remove m4/strerror_r.m4.
54437         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54438         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54439         m4/inttypes_h.m4, m4/uintmax_t.m4.
54440         (Depends-on): Add stdint.
54441         (lib_SOURCES): Add fsusage.h.
54442         * modules/getcwd (Files): Remove d-ino.m4.
54443         (Depends-on): Add d-ino.
54444         * modules/getndelim2 (Depends-on): Add stdint.
54445         * modules/glob (Files): Remove m4/d-type.m4.
54446         (Depends-on): Add d-type.
54447         * modules/host-os: New module.
54448         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54449         m4/inttypes_h.m4, m4/uintmax_t.m4.
54450         * Depends-on: Add stdint.
54451         (lib_SOURCES): Add human.h.
54452         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54453         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54454         m4/uintmax_t.m4, m4/ulonglong.m4.
54455         (Depends-on): Add stdint.
54456         (EXTRA_DIST): Add inttostr.h.
54457         * modules/lchmod: New module.
54458         * modules/link-follow: New module.
54459         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54460         (Depends-on): Add lchmod.
54461         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54462         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54463         (Depends-on): Add stdint.
54464         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54465         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54466         (Depends-on): Add stdint.
54467         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54468         * modules/perl: New module.
54469         * modules/regex (Depends-on): Add stdint.
54470         * modules/rmdir-errno: New module.
54471         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54472         m4/intmax_t.m4.
54473         (Depends-on): Add stdint.
54474         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54475         m4/uintmax_t.m4.
54476         (Depends-on): Add stdint.
54477         * modules/unlink-busy: New module.
54478         * modules/utimecmp (Depends-on): Add stdint.
54479         * modules/uptime: New module.
54480         * modules/winsz-ioctl: New module.
54481         * modules/winsz-termios: New module.
54482         * modules/xnanosleep (Depends-on): Add nanosleep.
54483         * modules/ullong_max: Remove.
54484         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54485         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54486         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54487         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54488         (Depends-on): Add inttypes.
54489         (lib_SOURCES): Add xstrtol.h.
54490         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54491         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54492         * MODULES.html.sh: Move 'assert' into the assert section.
54493         Move 'dummy' into the linking section.
54494         Remove ullong_max.
54495         Add section for compatibility checks for POSIX:2001 functions,
54496         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54497         winsz-ioctl, and winsz-termios into it.
54498         Add lchmod.
54499         Add top-level Misc section and put host-os, perl, and uptime
54500         into it.
54501
54502 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54505         now assume the stdint module.  Do not include inttypes.h.
54506         * lib/fsusage.h: Likewise.
54507         * lib/getndelim2.c: Likewise.
54508         * lib/human.h: Likewise.
54509         * lib/inttostr.h: Likewise.
54510         * lib/obstack.c: Likewise.
54511         * lib/regex_internal.h: Likewise.
54512         * lib/tempname.c: Likewise.
54513         * lib/utimecmp.c: Likewise.
54514         * lib/xstrtol.h: Likewise.
54515
54516         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54517
54518         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54519         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54520         * lib/xtime.h: Likewise.
54521
54522 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * modules/openat (Files): Add lib/fchmodat.c.
54525         Fixes problem reported by Jay Youngman.
54526
54527 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54530         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54531
54532 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54533             Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54536         and is a script that invokes bison. Tighten the code. Add comments.
54537
54538 2006-08-18  Jim Meyering  <jim@meyering.net>
54539
54540         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54541         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54542         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54543         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54544
54545 2006-08-18  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/bison-i18n: New file.
54548         * MODULES.html.sh (Internationalization functions): Add it.
54549
54550 2006-08-18  Bruno Haible  <bruno@clisp.org>
54551
54552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54553         sys/statvfs.h. When getmntinfo was found, check its declaration and
54554         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54555
54556 2006-08-18  Bruno Haible  <bruno@clisp.org>
54557
54558         * m4/bison-i18n.m4: New file, from bison.
54559
54560 2006-08-18  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54563         (ME_DUMMY): Treat "kernfs" as a dummy.
54564         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54565
54566 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         Update from coreutils.
54569
54570         2006-08-15  Jim Meyering  <jim@meyering.net>
54571
54572         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54573
54574         2006-01-17  Jim Meyering  <jim@meyering.net>
54575
54576         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54577
54578         2006-01-11  Jim Meyering  <jim@meyering.net>
54579
54580         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54581         Check for the lchmod function.
54582
54583 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         Update from coreutils.
54586
54587         * lib/__fpending.h: Add copyright notice.
54588         * lib/fprintftime.h: Likewise.
54589         * lib/savedir.c: Use (C) in copyright notice.
54590         * lib/savedir.h: Likewise.
54591
54592         2006-08-15  Jim Meyering  <jim@meyering.net>
54593
54594         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54595         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54596         in support of the EXPECTED_ERRNO macro.
54597         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54598         definitions.  Instead, define the appropriate symbols and include
54599         "at-func.c".
54600         * lib/mkdirat.c (mkdirat): Likewise.
54601         * lib/fchmodat.c (fchmodat): Likewise.
54602         (ENOSYS): Remove definition.
54603         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54604         it.  Don't include "unistd--.h" -- it wasn't ever used.
54605
54606         2006-01-17  Jim Meyering  <jim@meyering.net>
54607
54608         Rewrite fts.c not to change the current working directory,
54609         by using openat, fstatat, fdopendir, etc..
54610
54611         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54612         (HAVE_OPENAT_SUPPORT): Define.
54613         [_LIBC] (fchdir): Don't undef or define; no longer used.
54614         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54615         Now, this `function' always succeeds, and consumes its file descriptor
54616         parameter -- so callers must not close such FDs.  Update callers.
54617         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54618         (diropen): Add parameter, SP.  Adjust all callers.
54619         Implement using diropen_fd, rather than open.
54620         (fts_open): Initialize new member, fts_cwd_fd.
54621         Remove fts_rft-setting code.
54622         (fts_close): Close fts_cwd_fd, if necessary.
54623         (__opendir2): Define in terms of opendir or opendirat,
54624         depending on whether the FST_NOCHDIR flag is set.
54625         (fts_build): Since fts_safe_changedir consumes its FD, and since
54626         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54627         and close the dup'd file descriptor upon failure.
54628         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54629         (fts_safe_changedir): Tweak semantics to reflect that this function
54630         now calls cwd_advance_fd and hence consumes its FD argument.
54631         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54632         [struct FTS] (fts_rft): Remove now-unused member.
54633         [struct FTS] (fts_cycle.state): Improve comment.
54634
54635         * lib/openat.c (openat_needs_fchdir): New function.
54636         * lib/openat.h (openat_needs_fchdir): Declare it.
54637
54638 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54641         Problem and fix reported by Pádraig Brady in
54642         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54643
54644 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54645
54646         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54647
54648 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * lib/memcoll.c (memcoll): Optimize for the common case where the
54651         arguments are bytewise equal.
54652
54653 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * doc/regexprops-generic.texi: Add a copyright notice.
54656
54657 2006-08-15  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/tmpdir (License): Change to LGPL.
54660
54661 2006-08-15  Bruno Haible  <bruno@clisp.org>
54662
54663         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54664         module.
54665
54666 2006-08-14  Simon Josefsson  <jas@extundo.com>
54667
54668         * config/srclist.txt: Add gnupload.
54669
54670 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54671
54672         Change copyright notice from LGPL 2 to GPL 2, since that's the
54673         standard form used in the gnulib repository.
54674         * tests/test-lock.c: Likewise.
54675         * tests/test-stdint.c: Likewise.
54676         * tests/test-tls.c: Likewise.
54677
54678         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54679         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54680         Add copyright notice.
54681
54682         * check-module: Add copyright notice.  Output a copyright
54683         notice if "--version" is specified.
54684         * modules/COPYING: New file.
54685         * tests/test-getaddrinfo.c: Add copyright notice.
54686         * tests/test-verify.c: Likewise.
54687
54688 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         Change copyright notice from LGPL 2 to GPL 2, since that's the
54691         standard form used in the gnulib repository.
54692         * lib/lock.c: LGPL -> GPL.
54693         * lib/lock.h: Likewise.
54694         * lib/strnlen1.c: Likewise.
54695         * lib/strnlen1.h: Likewise.
54696         * lib/tls.c: Likewise.
54697         * lib/tls.h: Likewise.
54698         * lib/tmpdir.c: Likewise.
54699
54700         * lib/TODO: Remove; this belongs only in coreutils.
54701
54702 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54703
54704         Add copyright notices to long-enough files that lack them, since
54705         otherwise the files aren't clearly free.  Use the same notice that
54706         getdate.texi already uses.
54707         * doc/alloca-opt.texi: Add copyright notice.
54708         * doc/alloca.texi: Likewise.
54709         * doc/ctime.texi: Likewise.
54710         * doc/functions.texi: Likewise.
54711         * doc/gcd.texi: Likewise.
54712         * doc/gnulib-tool.texi: Likewise.
54713         * doc/inet_ntoa.texi: Likewise.
54714         * doc/visibility.texi: Likewise.
54715
54716         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54717         * doc/quote.texi: Add copyright notice.
54718
54719         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54720         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54721         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54722         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54723         is now obsolete, and give a pointer to the Sun list.
54724         Add copyright notice.
54725
54726 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         * config/srclistvars.sh: Add copyright notice.
54729
54730 2006-08-14  Eric Blake  <ebb9@byu.net>
54731
54732         Import the following change from libc:
54733
54734         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54735
54736         Upstream bug 2997.
54737         * lib/misc/error.c: Add space between program name and message if file
54738         name is missing.
54739
54740 2006-08-12  Karl Berry  <karl@gnu.org>
54741
54742         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54743         remove, these originate in gnulib now.
54744
54745 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54746
54747         * doc/Makefile (standards.info standards.html standards.dvi):
54748         Also depend on make-stds.texi.
54749
54750 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54753         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54754
54755         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54756         in wchar_t.  Problem reported by Eric Blake.
54757
54758         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54759         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54760         Also, help the compiler to keep LEN in a register.
54761
54762 2006-08-11  Eric Blake  <ebb9@byu.net>
54763
54764         * users.txt: Sort.  Add tar.
54765
54766 2006-08-11  Bruno Haible  <bruno@clisp.org>
54767
54768         * users.txt: New file.
54769
54770 2006-08-11  Bruno Haible  <bruno@clisp.org>
54771
54772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54773         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54774
54775 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * modules/snprintf (Depends-on): Remove minmax.
54778         (Maintainer): Add self and Bruno.
54779
54780 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54781
54782         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54783         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54784         (EOVERFLOW): Define if the system does not.
54785         Do not include "minmax.h"; it wasn't used.
54786         (snprintf): Don't assume size_t promotes to an unsigned type.
54787         Fix bug when generated string was too long for the buffer: the
54788         buffer's contents are supposed to be the initial prefix of the
54789         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54790         exceeds INT_MAX; do the check ourselves.
54791
54792         Import the following changes from libc:
54793
54794         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54795
54796         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54797         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54798         set wc to the byte which couldn't be converted.
54799         (re_string_reconstruct): Don't clear valid_raw_len before calling
54800         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54801         tip_context using re_string_context_at.
54802
54803         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54804
54805         * lib/posix/regex.h: g++ still cannot handled [restrict].
54806
54807         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54808
54809         * lib/posix/regex.h: Remove special handling for VMS.
54810
54811 2006-08-10  Jim Meyering  <jim@meyering.net>
54812
54813         * modules/same-inode: New module.
54814         * modules/dev-ino: New module.
54815         * modules/cycle-check: Depend on these modules, rather than simply
54816         including their .h files.
54817         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54818         required via m4/cycle-check.m4.
54819         * modules/same: Depend on new same-inode module, rather than
54820         including same-inode.h.
54821         * modules/chdir-safer: New file.
54822
54823         * modules/chown (Depends-on): Add stat-macros.
54824
54825 2006-08-10  Jim Meyering  <jim@meyering.net>
54826
54827         * m4/cycle-check.m4: New file.
54828         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54829         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54830
54831 2006-08-10  Eric Blake  <ebb9@byu.net>
54832
54833         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54834         in from original proposal.
54835
54836 2006-08-10  Eric Blake  <ebb9@byu.net>
54837         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54838
54839         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54840         namespace.
54841
54842 2006-08-10  Bruno Haible  <bruno@clisp.org>
54843
54844         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54845         as well.
54846
54847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         Sync from coreutils.
54850
54851         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54852
54853         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54854         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54855
54856 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * modules/restrict: Remove; no longer needed now that we assume
54859         Autoconf 2.59 or later.
54860         * MODULES.html.sh: Remove 'restrict'.
54861         * modules/argp (Depends-on): Remove 'restrict'.
54862         * modules/base64 (Depends-on): Likewise.
54863         * modules/gc (Depends-on): Likewise.
54864         * modules/getaddrinfo (Depends-on): Likewise.
54865         * modules/glob (Depends-on): Likewise.
54866         * modules/inet_ntop (Depends-on): Likewise.
54867         * modules/inet_pton (Depends-on): Likewise.
54868         * modules/memxor (Depends-on): Likewise.
54869         * modules/regex (Depends-on): Likewise.
54870         * modules/strtok_r (Depends-on): Likewise.
54871         * modules/time_r (Depends-on): Likewise.
54872
54873 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54876         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54877         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54878         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54879         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54880         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54881         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54882         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54883
54884         Merge from coreutils.
54885         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54886         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54887         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54888         * m4/time_r.m4 (gl_TIME_R): Likewise.
54889
54890 2006-08-09  Karl Berry  <karl@gnu.org>
54891
54892         * config/srclist.txt: no more gettext-tools, per Bruno.
54893
54894 2006-08-08  Eric Blake  <ebb9@byu.net>
54895
54896         * modules/verror: New module.
54897         * MODULES.html.sh: Document it.
54898
54899 2006-08-08  Eric Blake  <ebb9@byu.net>
54900
54901         * lib/verror.h, lib/verror.c: New files.
54902
54903 2006-08-08  Eric Blake  <ebb9@byu.net>
54904
54905         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54906         verror_at_line output complies with GNU Coding Standards even when
54907         file is NULL.
54908
54909 2006-08-07  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54912         versions of AIX.
54913         Reported by Ralf Wildenhues.
54914
54915 2006-08-07  Bruno Haible  <bruno@clisp.org>
54916
54917         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54918         in an AC_DEFUN. Needed so that the autoconf snippets can use
54919         AC_REQUIRE.
54920
54921 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54922
54923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54924         Initialize pkgdata_DATA.
54925         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54926         overriding it.
54927
54928 2006-08-06  Eric Blake  <ebb9@byu.net>
54929
54930         * lib/error.h: Fold in some upstream changes from glibc.
54931         * lib/error.c: Likewise.
54932
54933 2006-08-04  Bruno Haible  <bruno@clisp.org>
54934
54935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54936         Make the mostlyclean-local rule depend on mostlyclean-generic.
54937         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54938
54939 2006-07-31  Bruno Haible  <bruno@clisp.org>
54940
54941         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54942         <stdlib.h>, <string.h>.
54943
54944 2006-07-30  Bruno Haible  <bruno@clisp.org>
54945
54946         * modules/readlink (License): Change to LGPL.
54947
54948 2006-07-30  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54951         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54952         set PKGDATADIR to point to it.
54953
54954 2006-07-30  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/csharpexec (configure.ac): Comment out macro invocation.
54957         * modules/javaexec (configure.ac): Likewise.
54958         * modules/javacomp-script (configure.ac): Likewise.
54959
54960         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54961
54962 2006-07-30  Bruno Haible  <bruno@clisp.org>
54963
54964         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54965         linked-list.
54966
54967 2006-07-30  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54970
54971 2006-07-30  Bruno Haible  <bruno@clisp.org>
54972
54973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54974         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54975         get removed.
54976
54977 2006-07-29  Bruno Haible  <bruno@clisp.org>
54978
54979         Make it possible for gnulib-tool to work with locally modified or
54980         augmented gnulib repositories.
54981         * gnulib-tool (func_usage): Document --local-dir option.
54982         (local_gnulib_dir): New variable.
54983         Handle --local-dir option.
54984         (func_lookup_file): New function.
54985         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54986         (func_get_description, func_get_filelist, func_get_description,
54987         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54988         func_get_automake_snippet, func_get_include_directive,
54989         func_get_license, func_get_maintainer): Use func_lookup_file.
54990         (func_import, func_create_testdir): Use func_lookup_file.
54991
54992 2006-07-29  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/setenv (Depends-on): Add unistd.
54995
54996 2006-07-29  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54999
55000 2006-07-29  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55003
55004 2006-07-29  Bruno Haible  <bruno@clisp.org>
55005
55006         * gnulib-tool (import, update): If there is no Makefile.am, look at
55007         aclocal.m4, instead of bailing out.
55008
55009 2006-07-29  Bruno Haible  <bruno@clisp.org>
55010
55011         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55012         Categorize the options by when they are useful.
55013
55014 2006-07-29  Bruno Haible  <bruno@clisp.org>
55015
55016         * gnulib-tool (func_usage): Document option --no-libtool.
55017         Handle option --no-libtool.
55018         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55019         for changed semantics of $libtool variable.
55020         (func_import): Likewise. If libtool is not used, show this through
55021         an option --no-libtool.
55022         (func_create_testdir): Update.
55023
55024 2006-07-29  Bruno Haible  <bruno@clisp.org>
55025
55026         * gnulib-tool (func_import): Extend error message about missing
55027         --doc-base.
55028
55029 2006-07-29  Bruno Haible  <bruno@clisp.org>
55030
55031         * gnulib-tool (func_import): Don't create the $docbase directory if
55032         there is no file to store there.
55033
55034 2006-07-29  Bruno Haible  <bruno@clisp.org>
55035
55036         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55037         relevant, look for configure.ac there, not in the current directory.
55038         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55039
55040 2006-07-29  Bruno Haible  <bruno@clisp.org>
55041
55042         * gnulib-tool (SORT): New variable.
55043         (func_usage): Undocument --assume-autoconf option.
55044         Remove --assume-autoconf option handling.
55045         (autoconf_minversion): Determine from the contents of configure.ac.
55046         (func_import): Remove autoconf_minversion handling.
55047         Suggested by Eric Blake.
55048
55049 2006-07-29  Bruno Haible  <bruno@clisp.org>
55050
55051         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55052
55053 2006-07-29  Bruno Haible  <bruno@clisp.org>
55054
55055         * config/srclist.txt (*setenv.[ch]): Remove rules.
55056
55057 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55058
55059         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55060
55061 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55062
55063         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55064         arpa/inet.h.
55065
55066 2006-07-28  Simon Josefsson  <jas@extundo.com>
55067
55068         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55069         * modules/inet_pton (Depends-on): Likewise.
55070
55071 2006-07-28  Simon Josefsson  <jas@extundo.com>
55072
55073         * m4/netinet_in_h.m4: New file.
55074
55075 2006-07-28  Simon Josefsson  <jas@extundo.com>
55076
55077         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55078         #include's.
55079
55080 2006-07-28  Simon Josefsson  <jas@extundo.com>
55081
55082         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55083         #include's.
55084
55085 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55086
55087         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55088         setgid on directories only if they set these bits.
55089         * lib/modechange.h: Remove obsolete comment about masks.
55090
55091 2006-07-28  Eric Blake  <ebb9@byu.net>
55092
55093         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55094         macro expansion.
55095
55096 2006-07-28  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55099
55100 2006-07-28  Bruno Haible  <bruno@clisp.org>
55101
55102         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55103
55104 2006-07-28  Bruno Haible  <bruno@clisp.org>
55105
55106         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55107         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55108         Define fallbacks.
55109         Avoids link error on FreeBSD 4.x.
55110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55111
55112         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55113         encoding.
55114         * lib/mbswidth.c (iswcntrl): Likewise.
55115
55116 2006-07-27  Bruno Haible  <bruno@clisp.org>
55117
55118         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55119         test.
55120
55121 2006-07-27  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55124         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55125         defined.
55126
55127 2006-07-26  Eric Blake  <ebb9@byu.net>
55128
55129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55130
55131 2006-07-26  Eric Blake  <ebb9@byu.net>
55132
55133         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55134         like mingw that lack mkstemp.
55135         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55136         avoid compilation warning on mingw.
55137
55138 2006-07-26  Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55141         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55142         INT_FAST*_MIN, INTPTR_MIN.
55143
55144 2006-07-25  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/version-etc (Depends-on): Add stdarg.
55147
55148 2006-07-25  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55151         complex commands.
55152
55153 2006-07-25  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55156         defined in <stdarg.h> or config.h.
55157
55158 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55161         (gl_STDIO_SAFER): Remove.
55162
55163 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55164
55165         * MODULES.html.sh (File stream based Input/Output):
55166         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55167         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55168         * modules/fopen-safer, modules/tmpfile-safer: New files.
55169         * modules/stdio-safer: Remove.
55170
55171 2006-07-24  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/tmpdir: New file.
55174         * MODULES.html.sh (File system functions): Add it.
55175
55176 2006-07-24  Bruno Haible  <bruno@clisp.org>
55177
55178         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55179         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55180
55181 2006-07-24  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/clean-temp: New file.
55184
55185 2006-07-24  Bruno Haible  <bruno@clisp.org>
55186
55187         * m4/tmpdir.m4: New file, from GNU gettext.
55188
55189 2006-07-24  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/tmpdir.h: New file, from GNU gettext.
55192         * lib/tmpdir.c: New file, from GNU gettext.
55193
55194 2006-07-24  Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/clean-temp.h: New file, from GNU gettext.
55197         * lib/clean-temp.c: New file, from GNU gettext.
55198
55199 2006-07-23  Eric Blake  <ebb9@byu.net>
55200
55201         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55202         (Depends-on): Add binary-io.
55203
55204 2006-07-23  Eric Blake  <ebb9@byu.net>
55205
55206         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55207
55208 2006-07-23  Eric Blake  <ebb9@byu.net>
55209
55210         * lib/tmpfile-safer.c: New file.
55211         * lib/stdio-safer.h (fopen_safer): Add prototype.
55212         * lib/stdio--.h (tmpfile): Make safer.
55213
55214 2006-07-23  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55217         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55218         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55219         gl_linked_remove_at): Use it.
55220
55221 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55222         and Simon Josefsson <jas@extundo.com>
55223
55224         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55225
55226         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55227
55228 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55229
55230         * modules/close-stream: New file.
55231         * modules/closeout (Description): Make it clear that it exits
55232         with a diagnostic on error.
55233         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55234         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55235
55236 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55237
55238         * m4/close-stream.m4: New file.
55239
55240 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55241
55242         * lib/close-stream.c, lib/close-stream.h: New files.
55243
55244 2006-07-22  Bruno Haible  <bruno@clisp.org>
55245
55246         Merge from GNU gettext 0.15.
55247
55248         2006-05-01  Bruno Haible  <bruno@clisp.org>
55249
55250                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55251
55252         2006-07-22  Bruno Haible  <bruno@clisp.org>
55253
55254                 * modules/javaversion: New file.
55255                 * MODULES.html.sh (Java): Add javaversion.
55256
55257         2006-03-12  Bruno Haible  <bruno@clisp.org>
55258
55259                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55260
55261         2005-12-04  Bruno Haible  <bruno@clisp.org>
55262
55263                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55264                 (untested).
55265
55266         2006-06-21  Bruno Haible  <bruno@clisp.org>
55267
55268                 Avoid warnings from recent versions of mcs.
55269                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55270                 -o, -L, -r any more. Use options documented since mcs-1.0
55271                 instead. Similarly for -g.
55272
55273         2005-12-04  Bruno Haible  <bruno@clisp.org>
55274
55275                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55276                 .resources, not .resource.
55277
55278         2005-07-09  Bruno Haible  <bruno@clisp.org>
55279
55280                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55281                 add a .dll suffix.
55282                 Reported by Mark Junker <mjscod@gmx.de>.
55283
55284         2006-07-22  Bruno Haible  <bruno@clisp.org>
55285
55286                 * modules/gettext: Upgrade to gettext-0.15.
55287                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55288                 m4/visibility.m4.
55289                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55290
55291 2006-07-22  Bruno Haible  <bruno@clisp.org>
55292
55293         Merge from GNU gettext 0.15.
55294
55295         2006-03-25  Bruno Haible  <bruno@clisp.org>
55296
55297                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55298
55299         2006-07-21  Bruno Haible  <bruno@clisp.org>
55300
55301                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55302                 "1.1".
55303
55304         2006-05-09  Bruno Haible  <bruno@clisp.org>
55305
55306                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55307                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55308                 for the conftestver execution.
55309
55310         2006-05-01  Bruno Haible  <bruno@clisp.org>
55311
55312                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55313                 optional target-version argument. Verify that the compiler
55314                 groks source of the specified source-version, or add -source
55315                 option as necessary. Verify that the compiler produces
55316                 bytecode in the specified target-version, or add -target and
55317                 -source options as necessary. Make the result of the test
55318                 available as variable CONF_JAVAC. Also log error output in
55319                 config.log.
55320
55321         2006-03-11  Bruno Haible  <bruno@clisp.org>
55322
55323                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55324
55325         2006-05-09  Bruno Haible  <bruno@clisp.org>
55326
55327                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55328                 CLASSPATH_SEPARATOR to a semicolon.
55329
55330         2006-03-12  Bruno Haible  <bruno@clisp.org>
55331
55332                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55333                 available as variable CONF_JAVA, for subsequent autoconf
55334                 tests. Also log error output in config.log.
55335
55336         2006-07-19  Bruno Haible  <bruno@clisp.org>
55337
55338                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55339                 that getline works on glibc2 systems. Needed to avoid trouble
55340                 in relocatable.c.
55341                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55342
55343         2005-12-04  Bruno Haible  <bruno@clisp.org>
55344
55345                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55346                 launcher (untested).
55347
55348         2005-12-04  Bruno Haible  <bruno@clisp.org>
55349
55350                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55351
55352         2006-07-22  Bruno Haible  <bruno@clisp.org>
55353
55354                 * gettext.m4: Update from GNU gettext-0.15.
55355                 * nls.m4: Likewise.
55356                 * po.m4: Likewise.
55357                 * inttypes-pri.m4: Likewise.
55358                 * inttypes-h.m4: Renamed from inttypes.m4.
55359                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55360
55361 2006-07-22  Bruno Haible  <bruno@clisp.org>
55362
55363         Merge from GNU gettext 0.15.
55364
55365         2005-07-05  Bruno Haible  <bruno@clisp.org>
55366
55367                 * printf-args.c (printf_fetchargs): Work around broken
55368                 definition of wint_t on mingw.
55369
55370         2005-02-12  Bruno Haible  <bruno@clisp.org>
55371
55372                 * xallocsa.h: Add extern "C" for C++.
55373
55374         2006-05-17  Bruno Haible  <bruno@clisp.org>
55375
55376                 Cygwin portability.
55377                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55378
55379         2006-04-30  Bruno Haible  <bruno@clisp.org>
55380
55381                 * progreloc.c: Include <mach-o/dyld.h> if available.
55382                 (find_executable): Use _NSGetExecutablePath when possible.
55383
55384         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55385
55386                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55387                 function.
55388
55389         2005-12-29  Bruno Haible  <bruno@clisp.org>
55390
55391                 * progreloc.c (set_program_name_and_installdir): Fix
55392                 compilation error.
55393
55394         2005-12-04  Bruno Haible  <bruno@clisp.org>
55395
55396                 Cygwin portability.
55397                 * progreloc.c: Include <windows.h> also on Cygwin.
55398                 (find_executable): Add support for Cygwin.
55399                 (set_program_name_and_installdir): Handle also platforms with
55400                 nonempty EXEEXT.
55401
55402         2006-07-11  Bruno Haible  <bruno@clisp.org>
55403
55404                 * javacomp.c: Fix a comment.
55405                 Reported by Jim Meyering.
55406
55407         2006-04-30  Bruno Haible  <bruno@clisp.org>
55408
55409                 * javacomp.h (compile_java_class): Add source_version,
55410                 target_version arguments.
55411                 * javacomp.c: Rewritten to choose only a compiler that
55412                 respects the specified source_version and target_version.
55413
55414         2006-06-27  Bruno Haible  <bruno@clisp.org>
55415
55416                 Assume correct S_ISDIR macro.
55417                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55418
55419         2006-07-22  Bruno Haible  <bruno@clisp.org>
55420
55421                 * javaversion.h: New file, from GNU gettext.
55422                 * javaversion.c: New file, from GNU gettext.
55423                 * javaversion.java: New file, from GNU gettext.
55424                 * javaversion.class: New file, from GNU gettext.
55425
55426         2006-05-17  Bruno Haible  <bruno@clisp.org>
55427
55428                 Cygwin portability.
55429                 * javaexec.c (execute_java_class): Test for jview program
55430                 also on Cygwin.
55431
55432         2006-04-09  Bruno Haible  <bruno@clisp.org>
55433
55434                 * fatal-signal.c: Don't include string.h.
55435                 (at_fatal_signal): Use a copying loop instead of memcpy.
55436
55437         2005-12-04  Bruno Haible  <bruno@clisp.org>
55438
55439                 * csharpexec.c: Add support for 'clix' launcher (untested).
55440                 (execute_csharp_using_sscli): New function.
55441                 (execute_csharp_program): Call it.
55442
55443         2006-06-21  Bruno Haible  <bruno@clisp.org>
55444
55445                 Avoid warnings from recent versions of mcs.
55446                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55447                 -o, -L, -r any more. Use options documented since mcs-1.0
55448                 instead. Similarly for -g.
55449
55450         2005-07-09  Bruno Haible  <bruno@clisp.org>
55451
55452                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55453                 add a .dll suffix.
55454                 Reported by Mark Junker <mjscod@gmx.de>.
55455
55456         2006-06-17  Bruno Haible  <bruno@clisp.org>
55457
55458                 * config.charset: Update for NetBSD 3.0.
55459
55460         2006-05-17  Bruno Haible  <bruno@clisp.org>
55461
55462                 Cygwin portability.
55463                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55464
55465         2006-05-16  Bruno Haible  <bruno@clisp.org>
55466
55467                 * localcharset.c [CYGWIN]: Include <windows.h>.
55468                 (get_charset_aliases): For Cygwin, return the same CPxxx
55469                 aliases list as under WIN32.
55470                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55471                 the environment variables. Fall back to GetACP().
55472
55473         2006-04-05  Bruno Haible  <bruno@clisp.org>
55474
55475                 * config.charset: Update Juan Manuel Guerrero's address.
55476
55477         2005-02-12  Bruno Haible  <bruno@clisp.org>
55478
55479                 * allocsa.h: Add extern "C" for C++.
55480
55481         2005-02-10  Bruno Haible  <bruno@clisp.org>
55482
55483                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55484                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55485
55486         2006-07-22  Bruno Haible  <bruno@clisp.org>
55487
55488                 * gettext.h: Update to GNU gettext-0.15.
55489
55490 2006-07-22  Bruno Haible  <bruno@clisp.org>
55491
55492         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55493         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55494         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55495
55496 2006-07-21  Eric Blake  <ebb9@byu.net>
55497
55498         * modules/stdlib-safer: New file.
55499         * MODULES.html.sh (File stream based Input/Output): Add
55500         stdlib-safer.
55501
55502 2006-07-21  Eric Blake  <ebb9@byu.net>
55503
55504         * lib/stdlib-safer.h: New file from coreutils, required by
55505         stdlib--.h.
55506
55507 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55510
55511 2006-07-20  Bruno Haible  <bruno@clisp.org>
55512
55513         * gnulib-tool: Recognize new option --assume-autoconf.
55514         (autoconf_minversion): New variable.
55515         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55516
55517 2006-07-20  Bruno Haible  <bruno@clisp.org>
55518
55519         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55520
55521 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55522
55523         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55524         Reindent and repaginate.
55525
55526 2006-07-19  Derek Price  <derek@ximbiot.com>
55527
55528         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55529         Correct grammar.
55530
55531 2006-07-17  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/list: New file.
55534         * modules/array-list: New file.
55535         * modules/carray-list, modules/carray-list-tests: New files.
55536         * modules/linked-list, modules/linked-list-tests: New files.
55537         * modules/avltree-list, modules/avltree-list-tests: New files.
55538         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55539         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55540         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55541         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55542         * modules/oset: New file.
55543         * modules/array-oset: New file.
55544         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55545         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55546         * tests/test-carray_list.c: New file.
55547         * tests/test-linked_list.c: New file.
55548         * tests/test-avltree_list.c: New file.
55549         * tests/test-rbtree_list.c: New file.
55550         * tests/test-linkedhash_list.c: New file.
55551         * tests/test-avltreehash_list.c: New file.
55552         * tests/test-rbtreehash_list.c: New file.
55553         * tests/test-avltree_oset.c: New file.
55554         * tests/test-rbtree_oset.c: New file.
55555         * MODULES.html.sh (Container data structures): New section.
55556
55557 2006-07-17  Bruno Haible  <bruno@clisp.org>
55558
55559         * m4/gl_list.m4: New file.
55560
55561 2006-07-17  Bruno Haible  <bruno@clisp.org>
55562
55563         * lib/gl_list.h: New file.
55564         * lib/gl_list.c: New file.
55565         * lib/gl_array_list.h: New file.
55566         * lib/gl_array_list.c: New file.
55567         * lib/gl_carray_list.h: New file.
55568         * lib/gl_carray_list.c: New file.
55569         * lib/gl_linked_list.h: New file.
55570         * lib/gl_linked_list.c: New file.
55571         * lib/gl_anylinked_list1.h: New file.
55572         * lib/gl_anylinked_list2.h: New file.
55573         * lib/gl_avltree_list.h: New file.
55574         * lib/gl_avltree_list.c: New file.
55575         * lib/gl_anyavltree_list1.h: New file.
55576         * lib/gl_anyavltree_list2.h: New file.
55577         * lib/gl_rbtree_list.h: New file.
55578         * lib/gl_rbtree_list.c: New file.
55579         * lib/gl_anyrbtree_list1.h: New file.
55580         * lib/gl_anyrbtree_list2.h: New file.
55581         * lib/gl_anytree_list1.h: New file.
55582         * lib/gl_anytree_list2.h: New file.
55583         * lib/gl_linkedhash_list.h: New file.
55584         * lib/gl_linkedhash_list.c: New file.
55585         * lib/gl_anyhash_list1.h: New file.
55586         * lib/gl_anyhash_list2.h: New file.
55587         * lib/gl_avltreehash_list.h: New file.
55588         * lib/gl_avltreehash_list.c: New file.
55589         * lib/gl_rbtreehash_list.h: New file.
55590         * lib/gl_rbtreehash_list.c: New file.
55591         * lib/gl_anytreehash_list1.h: New file.
55592         * lib/gl_anytreehash_list2.h: New file.
55593
55594         * lib/gl_oset.h: New file.
55595         * lib/gl_oset.c: New file.
55596         * lib/gl_array_oset.h: New file.
55597         * lib/gl_array_oset.c: New file.
55598         * lib/gl_avltree_oset.h: New file.
55599         * lib/gl_avltree_oset.c: New file.
55600         * lib/gl_rbtree_oset.h: New file.
55601         * lib/gl_rbtree_oset.c: New file.
55602         * lib/gl_anytree_oset.h: New file.
55603
55604 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55605
55606         * m4/mkancesdirs.m4: New file.
55607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55608         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55609         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55610         it.
55611
55612 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55615         * lib/mkancesdirs.h: New files.
55616         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55617         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55618         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55619         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55620         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55621         callers changed.  Revamp internals significantly, by not
55622         attempting to create directories that are temporarily more
55623         permissive than the final results.  Do not attempt to use
55624         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55625         This removes some race conditions, fixes some bugs, and simplifies
55626         things.  Use new dirchownmod function to do owner and mode changes.
55627         * lib/mkdir-p.h: Likewise.
55628         * lib/modechange.c (octal_to_mode): New function.
55629         (struct mode_change): New member mentioned.
55630         (make_node_op_equals): New arg mentioned.  All callers changed.
55631         (mode_compile): Keep track of which mode bits the user has explicitly
55632         mentioned.
55633         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55634         New arg PMODE_BITS, to keep track of which mode bits the user
55635         mentioned; it treats S_ISUID and S_ISGID speciall.
55636         All callers changed.
55637         * lib/modechange.h: Likewise.
55638
55639 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55640
55641         * MODULES.html.sh: Add mkancestors.
55642         * modules/mkancesdirs: New module.
55643         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55644         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55645         The chdir-safer and afs files are now orphans; I'll remove them
55646         unless someone speaks up.
55647         Add lib/dirchownmod.c, lib/dirchownmod.h.
55648         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55649         Add lchown, mkancesdirs.
55650         (Maintainer): Add self.
55651
55652 2006-07-15  Karl Berry  <karl@gnu.org>
55653
55654         * gnulib-tool: help message wording/arrangement.
55655
55656 2006-07-14  Simon Josefsson  <jas@extundo.com>
55657
55658         * doc/gnulib.texi (Libtool and Windows): New section.
55659
55660 2006-07-12  Simon Josefsson  <jas@extundo.com>
55661
55662         * modules/gendocs (License): Fix license, approved by Karl.
55663
55664 2006-07-12  Eric Blake  <ebb9@byu.net>
55665
55666         * MODULES.html.sh: Add gendocs.
55667
55668 2006-07-11  Eric Blake  <ebb9@byu.net>
55669
55670         * modules/fdl: New module, to install doc/fdl.texi.
55671         * MODULES.html.sh: Add new section for documentation modules.
55672         * gnulib-tool: Avoid space-tab.
55673         (--doc-base): New option, to manage files from doc.
55674
55675 2006-07-11  Eric Blake  <ebb9@byu.net>
55676
55677         * m4/absolute-header.m4: Fix comments to match recent change.
55678
55679 2006-07-11  Eric Blake  <ebb9@byu.net>
55680
55681         * gnulib-tool: List --doc-base before --tests-base.
55682
55683 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55684
55685         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55686
55687 2006-07-11  Bruno Haible  <bruno@clisp.org>
55688
55689         * README: Mention where to put documentation.
55690
55691 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55692
55693         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55694
55695 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55696
55697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55698         to stdint.m4.
55699
55700 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55701
55702         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55703         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55704         "no/such/file/stdint.h" when there is no such file, so that
55705         the resulting C code can be parsed by dodgy compilers.
55706         Problems reported by Bob Proulx.
55707
55708 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55709
55710         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55711         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55712         macros into the GNU _D_EXACT_NAMLEN.
55713         * lib/savedir.c:  Likewise.
55714         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55715
55716 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55717         and Paul Eggert  <eggert@cs.ucla.edu>
55718
55719         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55720         * m4/savedir.m4:
55721         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55722         macros into the GNU _D_EXACT_NAMLEN.
55723
55724 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55727         around the absolute name, to work around a problem with the HP-UX
55728         11.23 native C compiler, reported by Bob Proulx.
55729
55730 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55731
55732         * doc/maintain.texi, make-stds.texi: Sync from
55733         <http://savannah.gnu.org/projects/gnustandards>.
55734
55735 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55738
55739 2006-07-09  Jim Meyering  <jim@meyering.net>
55740
55741         * m4/glob.m4: Remove a doubled word in a comment.
55742
55743 2006-07-09  Jim Meyering  <jim@meyering.net>
55744
55745         * lib/argp-pv.c: Remove a doubled word in a comment.
55746         * lib/check-version.c (check_version): Likewise.
55747         * lib/javacomp.c (compile_java_class): Likewise.
55748
55749 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55750
55751         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55752         for the benefit of people using Autoconf 2.60.  If you want to
55753         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55754         (or m4/onceonly.m4, if pre-2.57) manually.
55755
55756 2006-07-08  Jim Meyering  <jim@meyering.net>
55757
55758         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55759         comment.
55760         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55761         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55762         comment.
55763
55764 2006-07-08  Jim Meyering  <jim@meyering.net>
55765
55766         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55767
55768 2006-07-07  Simon Josefsson  <jas@extundo.com>
55769
55770         * tests/test-crc.c: Change expected crc value, the test vector
55771         were probably computed using the old broken crc.c?
55772
55773 2006-07-06  Simon Josefsson  <jas@extundo.com>
55774
55775         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55776         now the canonical place for the M4 file).
55777
55778         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55779         from the sys_socket dependency now.
55780
55781         * modules/inet_pton (Files): Ditto.
55782
55783         * modules/inet_ntop (Files): Ditto.
55784
55785 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55786
55787         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55788         not gl_PREREQ_GETUSERSHELL.
55789
55790 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55791
55792         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55793         with only one argument, for Autoconf 2.60.
55794         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55795         expand to nothing, so add a shell command to avoid syntax error.
55796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55797
55798 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55799
55800         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55801
55802 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55805         no longer needed.  Check for isblank decl.
55806         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55807         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55808         of existence.
55809
55810 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * lib/getloadavg.c: Use __VMS, not VMS.
55813         * lib/getopt.c: Likewise.
55814         * lib/getpagesize.h: Likewise.
55815         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55816         and probably does not work.
55817
55818 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55819
55820         * lib/.cppi-disable: Add wcwidth.
55821         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55822         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55823         (ISGRAPH): Remove.  All uses changed to isgraph.
55824         (FOLD) [!defined _LIBC]: Remove special case.
55825         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55826         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55827         HAVE_ISBLANK.
55828         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55829         case.
55830
55831 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55832
55833         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55834         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55835         brackets.  Other minor changes to suppress some compiler
55836         warnings.
55837
55838 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55839         and Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55842         of invoking obsolescent AC_HEADER_DIRENT macro.
55843         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55844         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55845         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55847         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55848         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55849         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55850         * m4/readdir.m4: Remove; no longer needed.
55851
55852 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55853         and Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55856         Don't worry about this obsolete case any more.
55857         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55858         directories.
55859         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55860         worry about this obsolete case any more.
55861         * lib/fts.c: Likewise.
55862         * lib/getcwd.c: Likewise.
55863         * lib/glob.h: Likewise.
55864         * lib/savedir.c: Likewise.
55865
55866 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55869         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55870         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55871         needed.
55872         All uses removed.
55873         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55874         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55875         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55876         needed.
55877         * m4/getdate.m4 (gl_GETDATE): Likewise.
55878         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55880         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55881         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55882         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55883         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55884         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55885         needed.
55886
55887 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55888
55889         * lib/memcasecmp.c: Include <limits.h>.
55890         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55891         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55892         Don't assume isdigit succeeds only on '0' through '9'.
55893
55894 2006-07-05  Eric Blake  <ebb9@byu.net>
55895
55896         * modules/getaddrinfo (Depends-on): Add snprintf.
55897
55898 2006-07-05  Eric Blake  <ebb9@byu.net>
55899
55900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55901         to avoid 'header present but could not be compiled' on cygwin.
55902
55903 2006-07-05  Eric Blake  <ebb9@byu.net>
55904
55905         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55906         missing from netdb.h.
55907         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55908
55909 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55910
55911         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55912         no longer needed.
55913         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55914         * m4/getdate.m4 (gl_GETDATE): Likewise.
55915         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55916         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55917         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55918         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55919         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55920
55921 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55922
55923         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55924         All uses of is_space replaced by isspace.
55925         * lib/exit.h: Don't talk about STDC_HEADERS.
55926         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55927         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55928         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55929         replaced by isprint etc.
55930         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55931         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55932         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55933         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55934         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55935         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55936
55937 2006-07-05  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55940         the function exists, before testing against AIX.
55941         Reported by Martin Lambers <marlam@marlam.de>.
55942
55943 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55944
55945         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55946         From Mark D. Baushke.
55947
55948 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55949
55950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55951         to the absolute name, not just one, to bypass Sun C 5.8's
55952         "warning: #include of /usr/include/... may be non-portable".
55953
55954 2006-07-04  Eric Blake  <ebb9@byu.net>
55955
55956         * modules/dirname-tests: New test module.
55957         * tests/test-dirname.c: New file, replacing dirname.c
55958         TEST_DIRNAME section that was recently deleted.
55959
55960 2006-07-04  Bruno Haible  <bruno@clisp.org>
55961
55962         Assume ANSI C header files and <ctype.h> functions.
55963         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55964         (mbsnwidth): Use isprint, iscntrl instead.
55965
55966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55967
55968         Merge from coreutils.
55969         * MODULES.html.sh: Add xstrtold.
55970         * modules/xstrtold: New file.
55971         * modules/cycle-check (Files): Add lib/same-inode.h.
55972         * modules/dirname (Files): Add m4/double-slash-root.m4.
55973         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55974         * modules/mkdir-p (Files): Add lib/same-inode.h.
55975         * modules/same (Files): Add lib/same-inode.h.
55976
55977 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55978
55979         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55980         This is to keep the terminology clean; POSIX talks about
55981         "absolute pathnames", not "full pathnames", but the GNU
55982         Coding Standards say to use "path" for something else;
55983         so use "absolute" to keep both sides happy.
55984         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55985         Set gl_absolute_header, not gl_full_header_path.
55986         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55987         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55988         All uses changed.
55989
55990         Merge from coreutils.
55991
55992         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55993
55994         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55995         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55996         want to require the building of c-strtod.o.
55997         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55998         needs -lm directly.
55999         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56000
56001         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56002
56003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56004         --as-needed option if available.  Problem reported by Albert Chin in
56005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56006         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56007         cc merely issues a bunch of annoying warnings for --as-needed
56008         (this problem was reported by Bob Proulx).  Also, try linking with
56009         -lm to detect a bug in binutils 2.16 (this problem was reported
56010         by Ralf Wildenhues).
56011
56012         2006-06-18  Jim Meyering  <jim@meyering.net>
56013
56014         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56015         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56016         macro.
56017         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56018         also check for glibc-2.4's abort-inducing bug.
56019
56020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56021         Low-probability clean-up should be to use rmdir to get rid of
56022         the just-created directory, not unlink.
56023
56024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56025         configure fail, and request a bug report to inform us about it.
56026         Add a comment that, barring reports to the contrary, in 2007 we'll
56027         assume ftruncate is universally available.
56028
56029         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56030
56031         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56032
56033         2006-03-12  Jim Meyering  <jim@meyering.net>
56034
56035         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56036         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56037         * m4/same.m4 (gl_SAME): Likewise.
56038         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56039
56040         2006-03-11  Eric Blake  <ebb9@byu.net>
56041
56042         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56043         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56044         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56045         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56046
56047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56048
56049         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56050         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56051         reported by Mark D. Baushke, one in
56052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56053
56054         Merge from coreutils.
56055
56056         * lib/.cppi-disable: Add stdint_.h.
56057         * lib/.cvsignore: Add stdint.h.
56058
56059         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56062         both double and long double versions.
56063         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56064         * lib/xstrtold.c: New file.
56065         * lib/xstrtod.h (xstrtold): New decl.
56066
56067         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56068
56069         * lib/filemode.c (setst): Remove.
56070         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56071         (arguably) clearer, and the generated code is a bit smaller on my
56072         Debian GNU/Linux stable x86 host.
56073
56074         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56075
56076         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56077         Assume that filemode.h includes sys/types.h and sys/stat.h.
56078         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56079         (ftypelet): Reorder to put common cases first, for efficiency.
56080         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56081         to do 'M'.
56082         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56083         of 10, for compatibility with FreeBSD.  All callers changed.
56084         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56085         types that can't be deduced solely from st_mode.  First arg is now a
56086         const pointer.
56087         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56088         (strmode): Renamed from mode_string.
56089         (filemodestring): New decl.
56090         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56091         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56092         needed.
56093         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56094
56095         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56096
56097         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56098         fsusage.h now does that.  Include fsusage.h first, to test interface.
56099         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56100         at most one method (the old code could have generated decls that
56101         didn't conform to C89, not that this was ever exercised).
56102         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56103
56104         2006-03-19  Jim Meyering  <jim@meyering.net>
56105
56106         Work even in a chroot where d_ino values for entries in "/"
56107         don't match the stat.st_ino values for the same names.
56108         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56109         number, iterate through all entries again, using lstat instead.
56110         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56111         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56112
56113         * lib/getcwd.c (__getcwd): Clarify a comment.
56114         Use memcpy in place of a call to strcpy.
56115
56116         2006-03-12  Jim Meyering  <jim@meyering.net>
56117
56118         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56119         matches that of the current directory (which we're about to chdir ".."
56120         out of), then save the dev-ino of the parent, instead.
56121
56122         * lib/same-inode.h (SAME_INODE): New file/macro.
56123         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56124         Include "same-inode.h", instead.
56125         * lib/same.c: Likewise.
56126         * lib/cycle-check.h: Include "same-inode.h".
56127         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56128         * lib/cycle-check.c (SAME_INODE): Remove definition.
56129         * lib/root-dev-ino.h: Include "same-inode.h".
56130
56131         2006-03-11  Eric Blake  <ebb9@byu.net>
56132
56133         * lib/same.c (same_name): s/base_name/last_component/
56134         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56135         * lib/filenamecat.c (file_name_concat): Likewise.
56136
56137         2006-03-11  Eric Blake  <ebb9@byu.net>,
56138                     Paul Eggert  <eggert@cs.ucla.edu>
56139
56140         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56141         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56142         drive prefix.
56143         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56144         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56145         (last_component): New method.
56146         * lib/dirname.c (dir_len): Determine when drive letters need a
56147         subsequent slash.  Preserve // when it is special.
56148         (dir_name): Don't append dot when drive letter is absolute.
56149         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56150         * lib/basename.c (base_name): New semantics - malloc the result.
56151         Preserve // when it is special.  Preserve relative files that look
56152         like drive letters.
56153         (base_len): Preserve // when it is special.
56154         (last_component): New method, similar to old base_name semantics.
56155         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56156         base_name.  Strip redundant slashes from ///.
56157
56158 2006-07-03  Jim Meyering  <jim@meyering.net>
56159
56160         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56161         macro is used before the first cycle_check call.
56162
56163 2006-07-03  Eric Blake  <ebb9@byu.net>
56164
56165         * modules/dirname (Depends-on): Add xstrndup.
56166
56167 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56168
56169         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56170         test cases, so that config.log is a bit easier to follow.
56171
56172 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56175         both are 64 bits, since this seems to be the tradition, and this
56176         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56177         we ever run into a host that prefers long long to long in this
56178         case, we'll need another configure-time test.  Problem reported by
56179         Jim Meyering.
56180
56181 2006-07-02  Eric Blake  <ebb9@byu.net>
56182
56183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56184
56185 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56186
56187         * modules/inttypes (Depends-on): No longer depends on stdint.
56188         * modules/stdint (Description): Say more about assumptions.
56189         Say that the fast types might differ.  Say macros are used.
56190         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56191         (Makefile.am): Revise list of substituted symbols to match
56192         new stdint.m4.
56193         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56194         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56195         * tests/test-stdint.c (verify_same_types)
56196         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56197         the code conforms to C99/C89.
56198         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56199         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56200
56201 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56202
56203         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56204         but fix a bug, by requiring at least 64 bits.
56205         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56206         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56207         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56208         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56209
56210         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56211         changes.  Make 2.59 a prerequisite.  Check and substitute for
56212         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56213         inttypes.h.  Do not use special include files; just use the
56214         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56215         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56216         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56217         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56218         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56219         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56220         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56221         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56222         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56223         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56224         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56225         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56226         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56227         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56228         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56229         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56230         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56231         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56232         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56233         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56234         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56235         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56236         not check for things that C99 does not require, e.g., int8_t.  If
56237         a test isn't needed unless <stdint.h> isn't working, and is
56238         unlikely to be needed for any other reason, then don't do it
56239         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56240         size_t, since we assume C89 freestanding at least.  Do not check
56241         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56242         the right thing even if the types are not defined.  Instead use:
56243         (gl_STDINT_TYPE_PROPERTIES): New macro.
56244         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56245         testing whether <sys/types.h> clashes, as Autoconf does this for
56246         us now.  All uses removed.
56247         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56248         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56249         (gl_CHECK_TYPE_SAME):
56250         Remove; no longer needed.
56251         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56252         exists, since we'll return 0 anyway in that case.
56253         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56254
56255 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56256
56257         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56258         possible collision with system files.
56259         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56260         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56261         WCHAR_MIN and WCHAR_MAX in this case.
56262         (<stddef.h>): Do not include; no longer needed.
56263         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56264         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56265         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56266         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56267         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56268         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56269         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56270         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56271         !defined(__c99))]: Include in this case too, since it's harmless
56272         now.
56273         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56274         dangerous to do so.
56275         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56276         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56277         (_STDINT_MIN, _STDINT_MAX): New macros.
56278         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56279         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56280         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56281         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56282         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56283         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56284         macros, not typedefs; this simplifies things quite a bit.
56285         Use long int for all types narrower than int64_t.
56286         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56287         Define in terms of long long int or int64_t or long int,
56288         not int64_t or int32_t.  This saves some compile-time testing.
56289         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56290         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56291         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56292         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56293         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56294         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56295         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56296         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56297         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56298         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56299         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56300         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56301         undef any previous version and define our own version, for
56302         simplicity and consistency with the new macros for types.
56303         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56304         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56305         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56306         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56307         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56308         @WINT_T_SUFFIX@ to keep things simple here.
56309         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56310         Simplify by assuming typical 8/16/32/64 host, since we're
56311         already doing that elsewhere anyway.
56312         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56313         and assume long long int is 64 bits if available.  This
56314         speeds up 'configure'.
56315
56316 2006-07-01  Eric Blake  <ebb9@byu.net>
56317
56318         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56319         Reported by Andreas Buening.
56320
56321 2006-07-01  Eric Blake  <ebb9@byu.net>
56322
56323         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56324
56325 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56326
56327         * lib/getaddrinfo.c: fixed typo
56328
56329 2006-06-29  Jim Meyering  <jim@meyering.net>
56330
56331         * modules/strftime (Maintainer): Add my name, since with the
56332         FPRINTFTIME changes strftime.c has forked from glibc.
56333
56334 2006-06-29  Eric Blake  <ebb9@byu.net>
56335
56336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56337
56338 2006-06-29  Eric Blake  <ebb9@byu.net>
56339
56340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56341
56342 2006-06-29  Eric Blake  <ebb9@byu.net>
56343
56344         * lib/stat_.h: New file.
56345
56346 2006-06-29  Eric Blake  <ebb9@byu.net>
56347
56348         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56349         unused static function.
56350
56351 2006-06-29  Eric Blake  <ebb9@byu.net>
56352
56353         * doc/functions.texi (Function Portability): Document missing lstat
56354         on mingw.
56355
56356 2006-06-29  Eric Blake  <ebb9@byu.net>
56357
56358         * MODULES.html.sh: Add sys_stat.
56359         * modules/sys_stat: New module.
56360         * modules/mkstemp (Depends-on): Add sys_stat.
56361
56362 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56363
56364         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56365
56366 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56367
56368         * m4/c-bs-a.m4: Removed.
56369
56370 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56371
56372         * lib/strftime.c: Assume strftime() exists.
56373
56374 2006-06-29  Derek Price  <derek@ximbiot.com>
56375
56376         * modules/c-bs-a: Removed - \a is C89.
56377         * MODULES.html.sh: Remove c-bs-a.
56378
56379 2006-06-29  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/wcwidth (License): Change to LGPL.
56382
56383 2006-06-28  Simon Josefsson  <jas@extundo.com>
56384
56385         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56386         on _WIN32.
56387
56388         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56389         getnameinfo.
56390
56391 2006-06-28  Simon Josefsson  <jas@extundo.com>
56392
56393         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56394
56395 2006-06-28  Simon Josefsson  <jas@extundo.com>
56396
56397         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56398         functions there.  It will succeed on Windows XP, but on Windows
56399         2000 and (presumably) earlier, it will fail, and use the internal
56400         re-implementation.
56401         (use_win32_p): New function.
56402         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56403         Support AI_NUMERICSERV to disable getservbyname.
56404         (getnameinfo): New function, only supports
56405         NI_NUMERICHOST|NI_NUMERICSERV for now.
56406
56407         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56408         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56409         getnameinfo.
56410
56411 2006-06-28  Eric Blake  <ebb9@byu.net>
56412
56413         * modules/wcwidth: New file.
56414         * modules/mbchar (Depends-on): Add wcwidth.
56415         * modules/mbswidth (Depends-on): Add wcwidth.
56416         * MODULES.html.sh: Add wcwidth.
56417
56418 2006-06-28  Eric Blake  <ebb9@byu.net>
56419
56420         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56422
56423 2006-06-28  Eric Blake  <ebb9@byu.net>
56424
56425         * lib/xvasprintf.h: Fix comments.
56426
56427 2006-06-28  Eric Blake  <ebb9@byu.net>
56428
56429         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56430         * lib/mbswidth.c (wcwidth): Move from here...
56431         * lib/wcwidth.h: ...to this new file.
56432
56433 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56434
56435         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56436
56437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56438         it's obsolete.
56439         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56440
56441 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56442
56443         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56444         Autoconf 2.60 says this stuff was obsolete.
56445
56446 2006-06-28  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56449
56450 2006-06-28  Bruno Haible  <bruno@clisp.org>
56451
56452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56453         gt_TYPE_WCHAR_T.
56454
56455 2006-06-28  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56458         declaration for wcwidth.
56459         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56460
56461 2006-06-28  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56464         (mkdir): Define using _mkdir.
56465
56466 2006-06-28  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/getaddrinfo.h: Fix POSIX URL.
56469         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56470         _WIN32.
56471         (use_win32_p): Make static.
56472         (getaddrinfo): Reject service name if it is empty or does not consist
56473         solely of decimal digits, or if its value is > 65535.
56474         (getnameinfo): Remove useless casts.
56475
56476 2006-06-27  Simon Josefsson  <jas@extundo.com>
56477
56478         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56479         Eggert and Martin Lambers.
56480
56481 2006-06-27  Simon Josefsson  <jas@extundo.com>
56482
56483         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56484         Eggert and Martin Lambers.
56485
56486 2006-06-27  Bruno Haible  <bruno@clisp.org>
56487
56488         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56489         result to 0, not to empty.
56490         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56491
56492 2006-06-27  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56495
56496 2006-06-26  Simon Josefsson  <jas@extundo.com>
56497
56498         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56499         present.
56500
56501 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56502
56503         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56504         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56506
56507 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56508
56509         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56510
56511 2006-06-26  Bruno Haible  <bruno@clisp.org>
56512
56513         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56514
56515 2006-06-26  Bruno Haible  <bruno@clisp.org>
56516
56517         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56518
56519 2006-06-26  Bruno Haible  <bruno@clisp.org>
56520
56521         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56522         SGI C compiler in pre-C99 mode.
56523         Suggested by Mark D. Baushke and Larry Jones.
56524
56525 2006-06-26  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56528         WCHAR_MAX.
56529         Reported by Mark D. Baushke and Larry Jones.
56530
56531 2006-06-26  Bruno Haible  <bruno@clisp.org>
56532
56533         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56534         in pre-C99 mode.
56535         Suggested by Mark D. Baushke and Larry Jones.
56536
56537 2006-06-23  Simon Josefsson  <jas@extundo.com>
56538             Bruno Haible  <bruno@clisp.org>
56539
56540         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56541         Emit mostlyclean-local rule.
56542         (func_emit_tests_Makefile_am): Likewise.
56543         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56544
56545 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56546
56547         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56548
56549 2006-06-23  Bruno Haible  <bruno@clisp.org>
56550
56551         * tests/test-stdint.c: Update to match ISO C 99 Technical
56552         Corrigendum 1.
56553
56554 2006-06-23  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56557
56558 2006-06-23  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/stdint_.h: Treat IRIX like OpenBSD.
56561
56562 2006-06-23  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56565         ISO C 99 Technical Corrigendum 1.
56566
56567 2006-06-22  Simon Josefsson  <jas@extundo.com>
56568
56569         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56570         MinGW.
56571
56572 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56575         needed.  Some compiler complained about some of them.  Problem reported
56576         by Larry Jones in
56577         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56578
56579 2006-06-21  Simon Josefsson  <jas@extundo.com>
56580
56581         * tests/test-getaddrinfo.c: New file.
56582
56583         * modules/getaddrinfo-tests: New file.
56584
56585         * MODULES.html.sh: Add inet_pton.
56586
56587         * modules/inet_pton: New file.
56588
56589 2006-06-21  Simon Josefsson  <jas@extundo.com>
56590
56591         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56592         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56593         of using the (limited) gnulib implementation on Windows XP.
56594
56595         * m4/inet_pton.m4: New file.
56596
56597 2006-06-21  Simon Josefsson  <jas@extundo.com>
56598
56599         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56600         variable.
56601
56602         * lib/socket_.h: Don't define WINVER.
56603
56604         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56605         slightly modified to work in gnulib.
56606
56607 2006-06-21  Simon Josefsson  <jas@extundo.com>
56608
56609         * doc/gnulib.texi (Windows sockets): Add.
56610
56611 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56612
56613         * lib/read-file.c (fread_file): Start with buffer allocation of
56614         0 bytes rather than 1 byte; this simplifies the code.
56615         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56616         code to free buffer and save/restore errno.
56617         (internal_read_file): Remove unused local.
56618
56619 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56620
56621         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56622         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56623         Problem reported by Denis Excoffier in
56624         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56625
56626 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56627
56628         * modules/sys_socket, modules/socklen: Include sys/types since
56629         FreeBSD 4.x's sys/socket.h needs it.
56630
56631 2006-06-19  Simon Josefsson  <jas@extundo.com>
56632
56633         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56634
56635 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56638
56639 2006-06-19  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56642         and FULL_PATH_INTTYPES_H in angle brackets.
56643         Reported by Mark D. Baushke <mdb@gnu.org>.
56644
56645 2006-06-17  Eric Blake  <ebb9@byu.net>
56646
56647         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56648         errno.
56649
56650 2006-06-17  Bruno Haible  <bruno@clisp.org>
56651
56652         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56653         <sys/inttypes.h>.
56654
56655 2006-06-17  Bruno Haible  <bruno@clisp.org>
56656
56657         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56658         whether errno is declared. Assume <errno.h> declares errno.
56659
56660 2006-06-17  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56663
56664 2006-06-17  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56667         problem on Solaris 2.5.1.
56668
56669 2006-06-16  Eric Blake  <ebb9@byu.net>
56670
56671         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56672         * lib/unicodeio.c [!defined errno]: Likewise.
56673         * lib/strtol.c [!defined errno]: Likewise.
56674         * lib/strtod.c [!defined errno]: Likewise.
56675
56676 2006-06-15  Eric Blake  <ebb9@byu.net>
56677
56678         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56679
56680 2006-06-15  Eric Blake  <ebb9@byu.net>
56681
56682         * config/srclist.txt (ssize_t.m4): Lose sync.
56683
56684 2006-06-15  Bruno Haible  <bruno@clisp.org>
56685
56686         * modules/stdint (Files): Include m4/full-header-path.m4,
56687         m4/size_max.m4, m4/wchar_t.m4.
56688         (Makefile.am): Many more substitutions.
56689         * modules/stdint-tests: New file.
56690         * tests/test-stdint.c: New file.
56691
56692 2006-06-15  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56695         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56696         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56697         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56698         gl_CHECK_TYPE_SAME): New macros.
56699
56700 2006-06-15  Bruno Haible  <bruno@clisp.org>
56701
56702         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56703
56704 2006-06-15  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/stdint_.h: Rewritten to be fully auto-configured.
56707         Fixes bug on HP-UX/IA64.
56708
56709 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56710
56711         * lib/getdate.y (__attribute__): Don't define if already defined.
56712         Problem reported by Larry Jones.
56713         * lib/utimens.c (__attribute__): Likewise.
56714
56715 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56718         reported by Andreas Schwab.
56719
56720 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56721             Bruno Haible  <bruno@clisp.org>
56722
56723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56724         check for the declaration of strnlen and a run test that exposes the
56725         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56726         rpl_strndup.
56727
56728 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56729             Bruno Haible  <bruno@clisp.org>
56730
56731         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56732
56733 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56734
56735         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56736         compile test, for Tru64 4.0D.
56737
56738 2006-05-28  Karl Berry  <karl@gnu.org>
56739
56740         * config/srclist.txt (printf-args.c): lose sync.
56741
56742 2006-05-26  Martin Lambers  <marlam@marlam.de>
56743
56744         * lib/getpass.c: Updates the test for the native W32 API, and adds
56745         missing includes, thus fixing compilation warnings.
56746
56747 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56748
56749         * lib/exclude.c (exclude_fnmatch): New function.
56750         (excluded_file_name): Call exclude_fnmatch.
56751         * lib/exclude.h (excluded_file_name): New prototype
56752
56753 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56754
56755         * lib/tempname.c (small_open, large_open): New macros.
56756         (__open, __open64) [!_LIBC]: Remove.
56757         (__gen_tempname): Use small_open and large_open instead of __open
56758         and __open64.  This fixes a portability bug on HP-UX 11.11i
56759         reported by Simon Wing-Tang in
56760         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56761
56762 2006-05-24  Bruno Haible  <bruno@clisp.org>
56763
56764         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56765         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56766         Reported by Thorsten Maerz <torte@netztorte.de> via
56767         Aaron Stone <aaron@serendipity.cx>.
56768
56769 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56770
56771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56772         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56773         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56774         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56775         not really conditional on the cache.
56776         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56777
56778 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56781         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56782         (my_usleep): Don't mishandle maximum value.
56783
56784 2006-05-19  Jim Meyering  <jim@meyering.net>
56785
56786         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56787
56788 2006-05-17  Bruno Haible  <bruno@clisp.org>
56789
56790         Cygwin portability.
56791         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56792
56793 2006-05-17  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/stdint_.h: Fix recognition of Cygwin.
56796
56797 2006-05-15  Bruno Haible  <bruno@clisp.org>
56798
56799         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56800         on libtool patch by Ralf Wildenhues.
56801
56802 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56803
56804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56805         test for C99 conformance; (bool) 0.5 is an integer constant
56806         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56807         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56808
56809 2006-05-11  Simon Josefsson  <jas@extundo.com>
56810
56811         * m4/xvasprintf.m4: Fix obvious typo.
56812
56813 2006-05-11  Jim Meyering  <jim@meyering.net>
56814
56815         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56816         James Lemley.
56817
56818 2006-05-10  Simon Josefsson  <jas@extundo.com>
56819
56820         * lib/md4.c: Typo fix, update copyright years.
56821         (K1, K2): Don't use L because it turn computations into 64-bit on
56822         64-bit platforms.
56823
56824 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56825
56826         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56827         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56828         unwanted sign propagation, e.g., on hosts with 64-bit int.
56829         There still are some problems with reeelly weird theoretical hosts
56830         (e.g., 33-bit int) but it's not worth worrying about now.
56831         * lib/sha1.c (rol): Likewise.
56832         (K1, K2, K3, K4): Remove unnecessary L suffix.
56833
56834 2006-05-10  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/des.c: Cast to avoid warnings.
56837
56838 2006-05-09  Bruno Haible  <bruno@clisp.org>
56839
56840         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56841         (Depends-on): Depend also on xsize, stdarg.
56842         (configure.ac): Add gl_XVASPRINTF.
56843
56844 2006-05-09  Bruno Haible  <bruno@clisp.org>
56845
56846         * m4/xvasprintf.m4: New file.
56847
56848 2006-05-09  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56851         (EOVERFLOW): Define fallback value.
56852         (xstrcat): New function.
56853         (xvasprintf): Recognize the special case of a string concatenation.
56854
56855 2006-05-08  Eric Blake  <ebb9@byu.net>
56856
56857         * gnulib-tool (func_version): Base copyright year on CVS date.
56858         (func_emit_copyright_notice): New function.
56859         (func_emit_lib_Makefile_am): Use it.
56860         (func_emit_tests_Makefile_am): Likewise.
56861         (func_import): Likewise.
56862
56863 2006-05-08  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/stdarg: New file.
56866         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56867
56868 2006-05-08  Bruno Haible  <bruno@clisp.org>
56869
56870         * m4/stdarg.m4: New file, from GNU gettext.
56871
56872 2006-05-08  Bruno Haible  <bruno@clisp.org>
56873
56874         * config/srclist.txt (build-aux/config.rpath): different from latest
56875         release.
56876
56877 2006-05-08  Bruno Haible  <bruno@clisp.org>
56878
56879         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56880
56881 2006-05-05  Jim Meyering  <jim@meyering.net>
56882
56883         * m4/warning.m4: New file, derived from bison's file by the same name.
56884
56885 2006-05-03  Bruno Haible  <bruno@clisp.org>
56886
56887         * lib/stdint_.h: Shorter URL.
56888         * lib/inttypes.h: Likewise.
56889
56890 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56891
56892         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56893
56894 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56895
56896         * lib/verify.h: Document the internals better.  Most of this change
56897         was written by Bruno Haible.
56898
56899 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56900
56901         * doc/verify.texi: New file, partly based on a proposal by
56902         Bruno Haible.
56903
56904 2006-05-02  Bruno Haible  <bruno@clisp.org>
56905
56906         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56907         test from here...
56908         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56909
56910 2006-04-29  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56913         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56914
56915 2006-04-29  Bruno Haible  <bruno@clisp.org>
56916
56917         * gnulib-tool: Make --update option actually work.
56918
56919 2006-04-29  Bruno Haible  <bruno@clisp.org>
56920
56921         * doc/gcd.texi: New file.
56922         * doc/gnulib.texi: Include it.
56923
56924 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         * lib/getdate.y (get_date): When adding relative date, start with the
56927         initial time, not with the result of the first mktime call.
56928
56929 2006-04-25  Bruno Haible  <bruno@clisp.org>
56930
56931         * gnulib-tool (func_import): Output the include directives in three
56932         blocks, sorted separately.
56933         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56934
56935 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56936
56937         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56938         to define main with arguments, for C++.  Reported by Eric Blake.
56939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56940         Prefer 'int main ()' to 'int main (void)', for C++.
56941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56943         for 'main', for C99 and C++.
56944
56945 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56946
56947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56948         Don't assume that exit status -1 is valid.
56949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56950         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56952         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56953         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56954         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56955         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56956         functions can be used without declaring them, or that you can
56957         exit with status -1.
56958         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56959
56960 2006-04-24  Karl Berry  <karl@gnu.org>
56961
56962         * config/srclist.txt (longdouble.m4): sync lost.
56963
56964 2006-04-24  Eric Blake  <ebb9@byu.net>
56965
56966         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56967
56968 2006-04-24  Bruno Haible  <bruno@clisp.org>
56969
56970         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56971         poll() implementation in AIX.
56972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56973
56974 2006-04-24  Bruno Haible  <bruno@clisp.org>
56975
56976         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56977         assigned exactly once.
56978
56979 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56980             Bruno Haible  <bruno@clisp.org>
56981
56982         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56983         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56984         for AM_CPPFLAGS.
56985
56986 2006-04-23  Bruno Haible  <bruno@clisp.org>
56987
56988         * modules/copy-file: Depend on unistd.
56989         * modules/execute: Likewise.
56990         * modules/fatal-signal: Likewise.
56991         * modules/findprog: Likewise.
56992         * modules/mkdtemp : Likewise.
56993         * modules/pipe: Likewise.
56994         * modules/wait-process: Likewise.
56995
56996 2006-04-23  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56999         condition was already detected.
57000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57001
57002 2006-04-23  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/copy-file.c: Include <unistd.h> unconditionally.
57005         * lib/execute.c: Likewise.
57006         * lib/fatal-signal.c: Likewise.
57007         * lib/findprog.c: Likewise.
57008         * lib/mkdtemp.c: Likewise.
57009         * lib/pipe.h: Likewise.
57010         * lib/pipe.c: Likewise.
57011         * lib/wait-process.h: Likewise.
57012
57013 2006-04-23  Bruno Haible  <bruno@clisp.org>
57014
57015         * gnulib-tool (func_usage): Fix --import description. Document
57016         --update.
57017         (func_import): Create temporary file in a temporary directory, if
57018         --dry-run is specified. Silence errors from 'grep' when there are no
57019         m4 files in $m4dir.
57020         (func_create_testdir): Silence errors from 'grep' when there are no
57021         m4 files in $m4dir.
57022         Reported by Karl Berry <karl@freefriends.org>.
57023
57024 2006-04-20  Bruno Haible  <bruno@clisp.org>
57025
57026         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57027         one argument, so that the code will be portable to Autoconf 2.60.
57028         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57029         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57030         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57031
57032 2006-04-19  Derek Price  <derek@ximbiot.com>
57033             Eric Blake  <ebb9@byu.net>
57034
57035         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57036         rather than "/full/path.h".  Update comment to match.  Shorten &
57037         generalize m4_translit call via AS_TR_CPP.
57038
57039 2006-04-19  Derek Price  <derek@ximbiot.com>
57040             Eric Blake  <ebb9@byu.net>
57041
57042         * lib/inttypes.h: Correct grammar in comment.
57043
57044 2006-04-18  Derek Price  <derek@ximbiot.com>
57045             Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * modules/inttypes: New file.
57048         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57049
57050 2006-04-18  Derek Price  <derek@ximbiot.com>
57051             Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57054         New files.
57055
57056 2006-04-18  Derek Price  <derek@ximbiot.com>
57057             Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         * lib/inttypes.h: New file.
57060         * lib/strtoimax.c: Assume <inttypes.h>.
57061
57062 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57065         isn't mounted.  Problem reported by Kir Kolyshkin.
57066
57067 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57070         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57071         Derek R. Price.
57072         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57073         implementation.
57074
57075 2006-04-12  Eric Blake  <ebb9@byu.net>
57076
57077         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57078         is now done automatically by the corresponding Autoconf macro.
57079
57080 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57083         time_r.h.
57084
57085 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         Merge regex changes from libc, removing some of our
57088         POSIX-conformance changes that were rejected and redoing them in a
57089         less-intrusive way.
57090
57091         * lib/regcomp.c (re_compile_internal, init_dfa):
57092         Length arg is now size_t, not Idx.  All uses changed.
57093         (peek_token): Forward decl now says internal_function.
57094         (__re_error_msgid, __re_error_msgid_idx):
57095         Now static rather than extern with attribute_hidden.
57096         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57097         For some reason libc prefers K&R style defns for external functions.
57098         (regerror) [!defined _LIBC]: Likewise.
57099         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57100         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57101         (build_range_exp, build_collating_symbol):
57102         Use K&R-style defn.
57103         (re_compile_fastmap): Use '\0' to memset, not 0.
57104         (utf8_sb_map): Make the calculations more obvious.
57105         (init_dfa, parse_bracket_exp, build_charclass_op):
57106         Call calloc and cast result, as glibc does.
57107         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57108         (build_range_exp, build_collating_symbol):
57109         Now internal functions.
57110
57111         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57112
57113         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57114         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57115         Don't depend on VMS; depend on __VMS instead, for POSIX
57116         namespace cleanness.
57117         (regoff_t): Define to ssize_t, not long int.
57118
57119         Remove the REG_ macros named below.  Instead, make the old names
57120         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57121         __USE_GNU_REGEX.
57122         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57123         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57124         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57125         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57126         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57127         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57128         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57129         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57130         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57131         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57132         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57133         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57134         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57135         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57136         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57137         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57138         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57139         (REG_NREGS):
57140         Remove.  All uses replaced by the old RE_* names.
57141         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57142         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57143         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57144         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57145         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57146         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57147         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57148         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57149         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57150         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57151         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57152         Don't bother having these macros be independent of each others'
57153         values, since they no longer exist in the POSIX name space.
57154
57155         Rename the following member names back to their old names,
57156         unless !__USE_GNU_REGEX.  All uses changed back.
57157         (buffer): Renamed from re_buffer.
57158         (allocated): Renamed from re_allocated.
57159         (used): Renamed from re_used.
57160         (syntax): Renamed from re_syntax.
57161         (fastmap): Renamed from re_fastmap.
57162         (translate): Renamed from re_translate.
57163         (can_be_null): Renamed from re_can_be_null.
57164         (regs_allocated): Renamed from re_regs_allocated.
57165         (fastmap_accurate): Renamed from re_fastmap_accurate.
57166         (no_sub): Renamed from re_no_sub.
57167         (not_bol): Renamed from re_not_bol.
57168         (not_eol): Renamed from re_not_eol.
57169         (newline_anchor): Renamed from re_newline_anchor.
57170         (num_regs): Renamed from rm_num_regs.
57171         (start): Renamed from rm_start.
57172         (end): Renamed from rm_end.
57173
57174         (free_state): Move up a bit.
57175
57176         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57177         #define to be empty.
57178         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57179         when that is what is intended.
57180         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57181         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57182         (MAX): New macro.
57183         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57184         All uses changed back to re_malloc, etc.  It's now the caller's
57185         responsibility to check for overflow; all callers changed.
57186         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57187         (re_x2nrealloc): Remove.
57188         (free_state): Remove decl.
57189
57190         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57191         (re_set_registers, re_exec):
57192         Use K&R-style defn.
57193
57194         2006-01-31  Roland McGrath  <roland@redhat.com>
57195
57196         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57197         Reported by Mike Frysinger <vapier@gentoo.org>.
57198
57199         2006-01-15  Andreas Jaeger  <aj@suse.de>
57200
57201         [BZ #1950]
57202         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57203         build_wcs_upper_buffer change.
57204         (build_wcs_upper_buffer): Change return type.
57205
57206         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57207
57208         * lib/regex_internal.h: Include <stdint.h> if available.
57209
57210         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57211
57212         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57213
57214         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57215
57216         * lib/regcomp.c: Adjust for changed secondary hash function.
57217
57218         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57219
57220         * lib/regex.h: Pretty printing.
57221         Clean up namespace a bit.
57222
57223         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57224
57225         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57226         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57227
57228         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57229                     Ulrich Drepper  <drepper@redhat.com>
57230
57231         [BZ #1302]
57232         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57233         changed.
57234         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57235
57236         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57237
57238         [BZ #281]
57239         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57240         * lib/regcomp.c: Remove unnecessary uses of
57241         unsigned RE_TRANSLATE_TYPE.
57242         * lib/regex_internal.h: Likewise.
57243         * lib/regex_internal.c: Likewise.
57244         * lib/regexec.c: Likewise.
57245         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57246
57247         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57248
57249         * lib/regexec.c (find_recover_state): Remove unnecessary
57250         initialization.
57251         (transit_state_bkref): Make DFA a const pointer.
57252         (get_subexp): Likewise.
57253         (check_arrival): Likewise.
57254         (update_cur_sifted_state): Likewise.
57255         (re_search_internal): Likewise.
57256         (prune_impossible_nodes): Likewise.
57257         (acquire_init_state_context): Likewise.
57258         (proceed_next_node): Likewise.
57259         (set_regs): Likewise.
57260         (free_fail_stack_return): Likewise.
57261         (check_arrival_expand_ecl): Mark DFA parameter as const.
57262         (check_arrival_expand_ecl_sub): Likewise.
57263         (check_subexp_limits): Likewise.
57264         (sub_epsilon_src_nodes):  Likewise.
57265         (add_epsilon_src_nodes):  Likewise.
57266         (merge_state_array): Likewise.
57267         (update_regs): Likewise.
57268         (build_trtable): Likewise.
57269         (sift_states_backward): Mark MCTX parameter as const.
57270         (build_sifted_states): Likewise.
57271         (update_cur_sifted_state): Likewise.
57272         (sift_states_mkref): Likewise.
57273         (check_arrival_expand_ecl): Mark eclosure as const.
57274         (check_dst_limits_calc_pos_1): Likewise.
57275         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57276         pointer.
57277
57278         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57279
57280         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57281         (transit_state_sb): Likewise.
57282         (transit_state_mb): Likewise.
57283         (sift_states_iter_mb): Likewise.
57284         (check_arrival_add_next_nodes): Likewise.
57285         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57286         [_LIBC] (re_search_2_stub): Use mempcpy.
57287
57288         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57289         mbrtowc for very simple UTF-8 case.
57290
57291         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57292         a pointer-to-const.
57293         (re_acquire_state_context): Likewise.
57294         * lib/regex_internal.h: Adjust prototypes.
57295
57296         * lib/regex.c: Prevent using C++ compilers.
57297
57298         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57299         (re_acquire_state_context): Likewise.
57300
57301 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57302
57303         * modules/regex (Depends-on): Add ssize_t.
57304
57305 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57308         translation table.
57309
57310 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57313
57314 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57315             Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57318         <sys/types.h> and <inttypes.h>.
57319
57320 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57321
57322         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57323         `__error_t_defined', so argp.h will not typedef the former.
57324
57325 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57326
57327         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57328         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57329         glibc names.  Even if glibc is changed to conform to POSIX, the
57330         traditional names will be available anyway, since regex depends on
57331         the extensions module.  Also, fix a longstanding typo in the
57332         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57333         reported by Emanuele Giaquinta.  Also, change sense of cached
57334         variable, so that the message makes sense.
57335
57336 2006-03-24  Simon Josefsson  <jas@extundo.com>
57337
57338         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57339         including some doc fixes.
57340         (base64_encode_alloc): Fix +1 bug on allocation failures.
57341
57342 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57343
57344         * lib/base64.c (base64_encode): Do not read past end of array with
57345         unsanitized input on systems with CHAR_BIT > 8.
57346
57347 2006-03-24  Eric Blake  <ebb9@byu.net>
57348
57349         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57350
57351 2006-03-22  Karl Berry  <karl@gnu.org>
57352
57353         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57354         * config/srclistvars.sh (COREUTILS): new var.
57355
57356 2006-03-17  Jim Meyering  <jim@meyering.net>
57357
57358         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57359         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57360
57361 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57364         no longer needs it.  Instead, check that regoff_t is as least
57365         as wide as ptrdiff_t.
57366
57367         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57368         so that our regex.h stays compatible with the installed regex.
57369         This is helpful for installers who configure --without-included-regex.
57370         Problem reported by Emanuele Giaquinta.
57371
57372 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57375         Typedef to long int, not to off_, as POSIX will likely change
57376         in that direction.
57377
57378 2006-03-15  Eric Blake  <ebb9@byu.net>
57379
57380         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57381
57382 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57383
57384         * lib/argp-help.c (validate_uparams): Fix typo
57385         * lib/argp-parse.c (argp_default_options): Consistently begin help
57386         messages with a lowercase letter.
57387
57388 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57391         overrun buffers and shouldn't be used (much as gets shouldn't be
57392         used).
57393         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57394
57395 2006-03-08  Simon Josefsson  <jas@extundo.com>
57396
57397         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57398         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57399
57400 2006-03-08  Simon Josefsson  <jas@extundo.com>
57401
57402         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57403         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57404
57405 2006-03-08  Simon Josefsson  <jas@extundo.com>
57406
57407         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57408         signal that configure disabled the device.
57409
57410 2006-03-08  Simon Josefsson  <jas@extundo.com>
57411
57412         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57413         languages.
57414
57415 2006-03-07  Simon Josefsson  <jas@extundo.com>
57416
57417         * modules/getopt (Depends-on): Add unistd.
57418
57419         * modules/unistd: New file.
57420
57421 2006-03-07  Simon Josefsson  <jas@extundo.com>
57422
57423         * modules/gc-random: New file.
57424
57425 2006-03-07  Simon Josefsson  <jas@extundo.com>
57426
57427         * m4/unistd_h.m4: New file.
57428
57429 2006-03-07  Simon Josefsson  <jas@extundo.com>
57430
57431         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57432         test to be side-effect free by storing the result in the cache
57433         variable gl_cv_lib_readline, and moving the assignment of
57434         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57435         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57436
57437 2006-03-07  Simon Josefsson  <jas@extundo.com>
57438
57439         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57440         error on missing devices (the functions will return an error).
57441
57442         * m4/gc.m4: Move random stuff to gc-random.m4
57443
57444 2006-03-07  Simon Josefsson  <jas@extundo.com>
57445
57446         * lib/unistd_.h: New file.
57447
57448 2006-03-07  Simon Josefsson  <jas@extundo.com>
57449
57450         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57451
57452 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57455         Problem reported by Juan Manuel Guerrero.
57456
57457 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57460         the unistd module.
57461         * lib/getlogin_r.c: Likewise.
57462         * lib/getlogin_r.h: Likewise.
57463         * lib/glob.c: Likewise.
57464         * lib/pagealign_alloc.c: Likewise.
57465         * lib/unistd_.h: Remove; no longer needed.
57466
57467 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57470         Add unistd.
57471         * modules/c-stack (Depends-on): Add unistd.
57472         * modules/getlogin_r: Likewise.
57473         * modules/glob: Likewise.
57474         * modules/pagealign_alloc: Likewise.
57475         * modules/unistd (Files): Remove lib/unistd_.h.
57476         (EXTRA_DIST): Remove.
57477         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57478         need unistd_.h.
57479         (MOSTLYCLEANFILES): Remove unistd.h-t.
57480
57481 2006-03-03  Simon Josefsson  <jas@extundo.com>
57482
57483         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57484
57485 2006-03-03  Simon Josefsson  <jas@extundo.com>
57486
57487         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57488         libidn and bison.
57489
57490 2006-03-03  Simon Josefsson  <jas@extundo.com>
57491
57492         * build-aux/maint.mk: Add indent target.
57493
57494 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57495
57496         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57497         our replacement poll.h in any case, to avoid a differing
57498         declaration from a system header.  Seen on AIX.
57499
57500 2006-03-01  Simon Josefsson  <jas@extundo.com>
57501
57502         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57503         <kasal@ucw.cz>.
57504
57505 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57506
57507         * modules/gettime (Depends-on): Add extensions module.
57508         * modules/nanosleep (Depends-on): Likewise.
57509         * modules/settime (Depends-on): Likewise.
57510
57511 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57514         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57515         pedantically.
57516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57517         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57518
57519         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57520         not "==".  Reported by Ralf Wildenhues.
57521
57522 2006-03-01  Karl Berry  <karl@gnu.org>
57523
57524         * doc/Copyright/request-*: new files, synced from gnuorg.
57525
57526 2006-03-01  Karl Berry  <karl@gnu.org>
57527
57528         * config/srclist.txt (Copyright/*): new entries.
57529
57530 2006-02-28  Simon Josefsson  <jas@extundo.com>
57531
57532         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57533
57534 2006-02-27  Simon Josefsson  <jas@extundo.com>
57535
57536         * lib/base64.h: Indent #define's.  From Jim Meyering
57537         <jim@meyering.net>.
57538
57539 2006-02-27  Jim Meyering  <jim@meyering.net>
57540
57541         Revert the change of 2006-02-24, so these files can continue
57542         to be sync'd from gettext.
57543         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57544         of `config.h'.
57545
57546 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57547
57548         * modules/intprops: New file.
57549         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57550         Add intprops.
57551         * modules/getloadavg (Files): Remove lib/intprops.h.
57552         (Depends-on): Add intprops.
57553         * modules/human: Likewise.
57554         * modules/inttostr: Likewise.
57555         * modules/openat: Likewise.
57556         * modules/sig2str: Likewise.
57557         * modules/userspec: Likewise.
57558         * modules/utimecmp: Likewise.
57559         * modules/xnanosleep: Likewise.
57560         * modules/xstrtol: Likewise.
57561
57562 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57563
57564         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57565         * modules/lock-tests (TESTS): Use $(EXEEXT).
57566         * modules/tls-tests: Likewise.
57567         * modules/argp-tests: Likewise.
57568         (check_PROGRAMS): New var, replacing...
57569         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57570
57571 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57572
57573         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57574         `config.h'.
57575
57576 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57579
57580 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57581
57582         Sync from coreutils.
57583         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57584         gl_CHDIR_SAFER.
57585
57586 2006-02-22  Jim Meyering  <jim@meyering.net>
57587
57588         Sync from coreutils.
57589         * m4/chdir-safer.m4: New file.
57590
57591 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57592
57593         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57594         AT_FDCWD exceeds INT_MAX.
57595         * lib/openat.h (AT_FDCWD): Likewise.
57596
57597 2006-02-17  Eric Blake  <address@hidden>
57598
57599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57600
57601 2006-02-16  Simon Josefsson  <jas@extundo.com>
57602
57603         * modules/getaddrinfo (Depends-on): Add sys_socket.
57604
57605 2006-02-15  Simon Josefsson  <jas@extundo.com>
57606
57607         * build-aux/maint.mk: Add dsyntax-check rule.
57608
57609 2006-02-15  Eric Blake  <ebb9@byu.net>
57610
57611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57612         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57613         'present but cannot compile' warnings on cygwin.
57614         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57615         use ws2tcpip.h if sys/socket.h works.
57616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57617         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57618
57619 2006-02-14  Simon Josefsson  <jas@extundo.com>
57620
57621         * modules/maintainer-makefile (Files): Rename.
57622
57623         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57624         and (the local) Makefile.cfg to maint-cfg.mk.
57625
57626         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57627         to the latter.
57628
57629         * modules/maintainer-makefile: New module.
57630
57631         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57632         severaly stripped to make it possible to build it up from scratch
57633         with reliable tests.
57634
57635         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57636         fixes to permit overriding the default actions when configure and
57637         makefile are not available.
57638
57639 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         Sync from coreutils.
57642         * modules/lstat (Depends-on): Don't depend on xalloc.
57643         (License): Change from GPL to LGPL, since this is now simply a
57644         replacement for a libc function.
57645
57646 2006-02-14  Jim Meyering  <jim@meyering.net>
57647
57648         Sync from coreutils.
57649
57650         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57651         failure on deficient systems, and simplify gnulib lgpl dependencies.
57652         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57653         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57654
57655         * lib/xalloc-die.c: Remove unused definition of N_.
57656
57657 2006-02-14  Jim Meyering  <jim@meyering.net>
57658
57659         Sync from coreutils.
57660         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57661         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57662         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57663         double-quote uses of that variable, to accommodate the rare case in
57664         which getmntent is available in none of the libraries checked.  This
57665         happens at least on FreeBSD 5.0.
57666
57667 2006-02-13  Simon Josefsson  <jas@extundo.com>
57668
57669         * gnulib-tool (Usage): Fix --import, from
57670         karl@freefriends.org (Karl Berry).
57671
57672 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57673
57674         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57675
57676 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57677
57678         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57679         "autoupdate" on 2005-12-12.
57680
57681 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57682
57683         * modules/closeout (Depends-on): Remove atexit.
57684
57685 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57688         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57689
57690 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57693         __EXTENSIONS__ if this causes compilation to fail.  Problem
57694         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57695         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57696
57697 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57698
57699         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57700         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57702         All uses changed.
57703
57704 2006-01-26  Simon Josefsson  <jas@extundo.com>
57705
57706         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57707         prototype is visible on mingw32.
57708
57709         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57710         for mingw32.
57711
57712         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57713         mingw32).
57714
57715 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57718         attempt to open for write; this always fails, at least on POSIX
57719         hosts.  This reinstates the 2006-01-09 change, which was
57720         inadvertently removed.
57721
57722 2006-01-26  Bruno Haible  <bruno@clisp.org>
57723
57724         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57725         Reported by Paul Eggert.
57726
57727 2006-01-26  Bruno Haible  <bruno@clisp.org>
57728             Paul Eggert  <eggert@cs.ucla.edu>
57729
57730         * lib/stdbool_.h (_Bool)
57731         [(! (defined __cplusplus || defined __BEOS__)
57732           && !defined __GNUC__
57733           && !(defined __HP_cc || defined __xlc__
57734                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57735                || defined __sgi))]:
57736         #define to signed char in these cases too; this simplifies
57737         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57738         etc., separately) and makes it more conservative.
57739
57740 2006-01-25  Simon Josefsson  <jas@extundo.com>
57741
57742         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57743         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57744         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57745
57746 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57747
57748         * lib/argp-namefrob.h: Bugfix. Remove stray #
57749
57750 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57753         so that we test the test.
57754         Check for yet another HP-UX cc bug involving *bool |= bool.
57755
57756 2006-01-25  Karl Berry  <karl@gnu.org>
57757
57758         * config/srclist.txt (vasnprintf.c): sync lost.
57759
57760 2006-01-25  Jim Meyering  <jim@meyering.net>
57761
57762         Sync from the stable (b5) branch of coreutils:
57763
57764         * lib/fts.c (fts_children): Don't let close() clobber errno from
57765         failed fchdir().
57766
57767         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57768         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57769         a dangling symlink.  That can also happen at least for ELOOP.
57770         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57771         FYI, this bug predates the inclusion of fts.c in coreutils.
57772
57773         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57774         in their own block, so pre-c99 compilers don't object.
57775
57776         Avoid the double-free (first in fts_read, second in fts_close) that
57777         would occur when an `active' directory is made inaccessible (e.g.,
57778         via chmod a-x) during a traversal.
57779         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57780         before returning.  Reproduce this failure by
57781         mkdir -p a/b; cd a; chmod a-x . b
57782         Reported by Stavros Passas.
57783
57784 2006-01-25  Jim Meyering  <jim@meyering.net>
57785
57786         * lib/fileblocks.c: Remove more useless parentheses.
57787         * lib/readutmp.h: Likewise.
57788
57789 2006-01-25  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57792         warnings.
57793         Reported by Paul Eggert.
57794
57795 2006-01-25  Bruno Haible  <bruno@clisp.org>
57796
57797         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57798         rid of a trap command. For Solaris sh.
57799         Reported by Mark D. Baushke <mdb@gnu.org>.
57800
57801 2006-01-24  Simon Josefsson  <jas@extundo.com>
57802
57803         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57804         Bruno.
57805
57806 2006-01-24  Karl Berry  <karl@gnu.org>
57807
57808         * config/srclist.txt (argp-namefrob.h): sync lost.
57809
57810 2006-01-24  Jim Meyering  <jim@meyering.net>
57811
57812         * modules/openat (Files): Add lib/intprops.h.
57813         From Mark D. Baushke.
57814
57815 2006-01-24  Jim Meyering  <jim@meyering.net>
57816
57817         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57818         Reported by Mark D. Baushke.
57819
57820 2006-01-24  Jim Meyering  <jim@meyering.net>
57821
57822         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57823
57824 2006-01-24  Bruno Haible  <bruno@clisp.org>
57825
57826         * modules/strnlen (Maintainer): Change from glibc to all.
57827
57828 2006-01-24  Bruno Haible  <bruno@clisp.org>
57829
57830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57831         Patch by Paul Eggert.
57832
57833 2006-01-24  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57836         already has it.
57837         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57838         2005-11-26.
57839
57840         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57841         'signed char' to avoid problems with the built-in _Bool type.
57842         Reported by Paul Eggert on 2005-11-26.
57843
57844 2006-01-24  Bruno Haible  <bruno@clisp.org>
57845
57846         * gnulib-tool (func_import): Avoid constructing complicated sed
57847         expressions inside backquote.
57848         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57849
57850 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57851
57852         These changes imported from libc.
57853         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57854         test and two separate function calls.
57855         * lib/strndup.c (__strndup): Add libc_hidden_def.
57856
57857 2006-01-23  Simon Josefsson  <jas@extundo.com>
57858
57859         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57860         Remove the test_*_SOURCES variable: automake infers it by default.
57861         * modules/tls-tests: Likewise.
57862
57863 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57864
57865         Work around porting bugs reported by Dieter in
57866         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57867         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57868         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57869         Include "getopt.h" first, to check interface.
57870         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57871         !HAVE_DECL_GETENV.
57872         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57873         (__strndup): Revert to K&R-style function dfns, the glibc style.
57874         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57875         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57876         Include strnlen.h first, to get prototype properly.
57877         (strnlen): Renamed from __strnlen.
57878         Remove weak alias.
57879
57880 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57881
57882         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57883
57884 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57885
57886         * config/srclist.txt: Adjust to reflect glibc reorganization.
57887         This affects only comments.
57888
57889 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57890
57891          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57892          Reported by Bruce Korb <bkorb@gnu.org>.
57893
57894 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57897         to pacify gcc -Wswitch-default.
57898
57899 2006-01-22  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57902         temporary buffer for sprintf, take into account the precision also
57903         for 'd', 'i', 'u', 'o', 'x', 'X'.
57904
57905 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57906
57907         * modules/argp-tests: New module
57908         * tests/test-argp.c: New file
57909         * tests/test-argp-2.sh: New file
57910
57911 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57912
57913         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57914         (__argp_base_name): Removed
57915         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57916         typo.
57917         (__argp_base_name): Provide macro definition or extern declaration
57918         depending on the configuration
57919
57920 2006-01-20  Simon Josefsson  <jas@extundo.com>
57921
57922         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57923
57924 2006-01-20  Simon Josefsson  <jas@extundo.com>
57925
57926         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57927
57928 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57931         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57932         Suggested by Bruno Haible.
57933
57934 2006-01-20  Karl Berry  <karl@gnu.org>
57935
57936         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57937         until changes propagate, I guess.
57938
57939 2006-01-19  Simon Josefsson  <jas@extundo.com>
57940
57941         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57942
57943 2006-01-19  Simon Josefsson  <jas@extundo.com>
57944
57945         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57946
57947 2006-01-19  Simon Josefsson  <jas@extundo.com>
57948
57949         * gnulib-tool: Set check_PROGRAMS.
57950
57951         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57952         modules/des-tests, modules/gc-arcfour-tests,
57953         modules/gc-arctwo-tests, modules/gc-des-tests,
57954         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57955         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57956         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57957         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57958         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57959         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57960         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57961         test_*_SOURCES.
57962
57963 2006-01-18  Simon Josefsson  <jas@extundo.com>
57964
57965         * modules/socklen (Depends-on): Depend on sys_socket.
57966
57967 2006-01-18  Simon Josefsson  <jas@extundo.com>
57968
57969         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57970         modules/des-tests, modules/gc-arcfour-tests,
57971         modules/gc-arctwo-tests, modules/gc-des-tests,
57972         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57973         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57974         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57975         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57976         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57977         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57978         $(EXEEXT) to automake TESTS variable, for mingw32.
57979
57980 2006-01-17  Simon Josefsson  <jas@extundo.com>
57981
57982         * modules/socklen (Include): Need sys/socket.h.
57983
57984 2006-01-17  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/ssize_t (Include): Add <sys/types.h>.
57987
57988 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57991         it's not portable and it doesn't work with cross-compiles.
57992         Problem reported by Bruno Haible.  Fix missing-$ typo in
57993         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57994         -zignore from being used with Sun's C compiler.
57995
57996 2006-01-12  Simon Josefsson  <jas@extundo.com>
57997
57998         * lib/base64.c: Fix warning, reported by Bruno Haible
57999         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58000
58001 2006-01-12  Bruno Haible  <bruno@clisp.org>
58002
58003         * modules/ldd: New file.
58004         * build-aux/ldd.sh.in: New file.
58005         * MODULES.html.sh (Support for building libraries and executables): Add
58006         ldd.
58007
58008 2006-01-12  Bruno Haible  <bruno@clisp.org>
58009
58010         * m4/ldd.m4: New file.
58011
58012 2006-01-12  Bruno Haible  <bruno@clisp.org>
58013
58014         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58015         endless loop while replacing $auxdir with build-aux.
58016
58017 2006-01-11  Simon Josefsson  <jas@extundo.com>
58018
58019         * lib/stdint_.h (SIZE_MAX): Add missing (.
58020
58021 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         Sync from coreutils.
58024         * lib/md5.c: Fix commentary typos.
58025         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58026         * lib/md5.h (__attribute__): Remove; unused.
58027         * lib/sha1.c: Fix commentary to match md5 better.
58028         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58029         so that we don't need to worry about alignment.  All uses changed.
58030         This merges the 2005-10-28 md5 change into sha1.
58031
58032 2006-01-11  Jim Meyering  <jim@meyering.net>
58033
58034         Sync from coreutils.
58035         * lib/md5.c (OP): Fix spacing.
58036
58037 2006-01-11  Bruno Haible  <bruno@clisp.org>
58038
58039         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58040         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58041         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58042
58043 2006-01-11  Bruno Haible  <bruno@clisp.org>
58044
58045         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58046         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58047         the "early" section as well.
58048
58049 2006-01-11  Bruno Haible  <bruno@clisp.org>
58050
58051         Avoid "ar: no archive members specified" error on MacOS X.
58052         * gnulib-tool (func_modules_add_dummy): New function.
58053         (func_import, func_create_testdir): Invoke it.
58054
58055 2006-01-11  Bruno Haible  <bruno@clisp.org>
58056
58057         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58058         with $auxdir in AC_CONFIG_FILES statements.
58059
58060 2006-01-11  Bruno Haible  <bruno@clisp.org>
58061
58062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58063         Initialize also noinst_HEADERS to empty.
58064
58065 2006-01-11  Bruno Haible  <bruno@clisp.org>
58066
58067         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58068         variables.
58069         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58070         autoreconf.
58071
58072 2006-01-11  Bruno Haible  <bruno@clisp.org>
58073
58074         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58075         overridable by the user.
58076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58077
58078 2006-01-10  Simon Josefsson  <jas@extundo.com>
58079
58080         * modules/sys_socket: New file.
58081
58082 2006-01-10  Simon Josefsson  <jas@extundo.com>
58083
58084         * m4/sys_socket_h.m4: New file.
58085
58086 2006-01-10  Simon Josefsson  <jas@extundo.com>
58087
58088         * lib/socket_.h: New file.
58089
58090 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * modules/readutmp (Maintainer): Add myself.
58093
58094 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58095
58096         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58097         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58098         People who are still concerned with buggy memcmp implementations
58099         can invoke gl_FUNC_MEMCMP themselves.
58100
58101 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * lib/regex_internal.h (BITSET_WORD_BITS):
58104         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58105         preprocessor mishandles large unsigned values as if they were signed.
58106         Problem reported by Claudio Fontana in
58107         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58108
58109 2006-01-10  Jim Meyering  <jim@meyering.net>
58110
58111         Avoid the double-free (first in fts_read, second in fts_close) that
58112         would occur when an `active' directory is made inaccessible (e.g.,
58113         via chmod a-x) during a traversal.
58114         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58115         before returning.  Reproduce this failure by
58116         mkdir -p a/b; cd a; chmod a-x . b
58117         Reported by Stavros Passas.
58118
58119         Sync from coreutils.
58120         * lib/sha1.c: Tweak grammar in a comment.
58121
58122 2006-01-10  Jim Meyering  <jim@meyering.net>
58123
58124         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58125         Patch by Joerg Sonnenberger.
58126
58127 2006-01-10  Bruno Haible  <bruno@clisp.org>
58128
58129         * modules/readutmp: Depend on module free.
58130         * modules/strtok_r: Depend on module restrict.
58131
58132 2006-01-10  Bruno Haible  <bruno@clisp.org>
58133
58134         * modules/gettext (configure.ac): Add an invocation of
58135         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58136
58137 2006-01-10  Bruno Haible  <bruno@clisp.org>
58138
58139         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58140         Reported by Werner Lemberg <wl@gnu.org>.
58141
58142 2006-01-10  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/localcharset.c: Update from GNU gettext.
58145
58146 2006-01-10  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/argp.h (__const): Remove macro. Use const instead.
58149         * lib/argp-fmtstream.h (__const): Likewise.
58150         * lib/glob_.h (__const): Remove macro.
58151         * lib/glob-libc.h: Use const instead of __const.
58152
58153 2006-01-10  Bruno Haible  <bruno@clisp.org>
58154
58155         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58156         variable.
58157         Needed to avoid an automake error regarding the 'gettext' module.
58158
58159 2006-01-09  Simon Josefsson  <jas@extundo.com>
58160
58161         * modules/inet_ntop (Depends-on): Add restrict.
58162
58163 2006-01-09  Simon Josefsson  <jas@extundo.com>
58164
58165         * modules/gc-rijndael-tests (License): Put under LGPL.
58166
58167         * modules/gc-des-tests (License): Likewise.
58168
58169         * modules/gc-arcfour-tests (License): Likewise.
58170
58171         * modules/gc-arctwo-tests (License): Likewise.
58172
58173         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58174
58175         * modules/gc-hmac-sha1-tests (Files): Likewise.
58176
58177         * modules/gc-hmac-md5-tests (License): Likewise.
58178
58179         * modules/gc-sha1-tests (License): Likewise.
58180
58181         * modules/gc-md5-tests (License): Likewise.
58182
58183         * modules/gc-md4-tests (License): Likewise.
58184
58185         * modules/gc-md2-tests (License): Likewise.
58186
58187         * modules/gc-tests (License): Likewise.
58188
58189         * modules/des-tests (License): Likewise.
58190
58191         * modules/md4-tests (License): Likewise.
58192
58193         * modules/md2-tests (License): Likewise.
58194
58195 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58196
58197         Sync from coreutils:
58198
58199         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58200         * modules/lib-ignore: New file.
58201         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58202         chdir-safer.m4, lchmod.m4.
58203         * modules/openat: Add mkdirat.c, openat-priv.h.
58204
58205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         Sync from coreutils.
58208         * m4/lib-ignore.m4: New file.
58209         * m4/lchmod.m4: New file.
58210
58211 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         Sync from coreutils.
58214         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58215         for write access: POSIX says that must fail.
58216         * lib/fts.c (diropen): Likewise.
58217         * lib/save-cwd.c (save_cwd): Likewise.
58218         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58219         well, for minor improvements on hosts that lack O_DIRECTORY.
58220         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58221         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58222         Fall back on chown if open failed with EACCES.
58223
58224         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58225         Report an error at compile-time if only a 1-second nominal clock
58226         resolution is found.
58227
58228         * lib/lchmod.h: New file.
58229         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58230         (make_dir_parents): Use lchown rather than chown, and
58231         lchmod rather than chmod.
58232
58233         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58234         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58235         "proc" reported by n0dalus.
58236
58237         * lib/mountlist.c: Include <limits.h>.
58238         (dev_from_mount_options)
58239         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58240         New function.  It no longer assumes "dev=" has the System V meaning
58241         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58242         (read_file_system_list)
58243         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58244         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58245         dev= in that case.
58246
58247         * lib/posixtm.h (PDS_PRE_2000): New macro.
58248         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58249         allow_century.  All usages changed.  Reject dates outside the range
58250         1969-1999 if PDS_PRE_2000 is used.
58251
58252 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58253
58254         Sync from coreutils.
58255         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58256         (Time of day items): Mention the possibility of leap seconds.
58257         Problem reported by Dr. David Alan Gilbert.
58258
58259 2006-01-09  Jim Meyering  <jim@meyering.net>
58260
58261         Sync from coreutils.
58262
58263         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58264
58265         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58266
58267         * lib/modechange.c (mode_compile): Reject an invalid mode string
58268         that starts with an octal digit.  From Andreas Gruenbacher.
58269
58270         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58271         and dup to open_safer and dup_safer, respectively.
58272         (openat_permissive): Fix typo in comment.
58273
58274         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58275         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58276         (_): Remove; no longer needed.
58277         (openat): Renamed from rpl_openat; no need for rpl_openat
58278         since openat.h renames openat for us.
58279         Replace most of the body with a call to openat_permissive,
58280         to avoid duplicate code.
58281         Port to (probably hypothetical) environments were mode_t is
58282         wider than int.
58283         (openat_permissive): Require mode arg, so that we can check
58284         types better.  Put it just after flags.  Change cwd failure
58285         indicator from pointer-to-bool to pointer-to-errno-value.
58286         All callers changed.
58287         Invoke openat_save_fail and/or openat_restore_fail if
58288         cwd_errno is null, so that openat can call us.
58289         (openat_permissive, fdopendir, fstatat, unlinkat):
58290         Simplify errno handling to avoid some duplicate code,
58291         as it's OK to set errno on success.
58292         * lib/openat.h: Revamp code so that function macros depend on
58293         __OPENAT_PREFIX only, not also on AT_FDCWD.
58294         (openat_ro): Remove.  Caller changed to use openat_permissive.
58295         (openat_permissive): Now a macro, if not a function.
58296         (openat_restore_fail, openat_save_fail): Now always functions,
58297         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58298
58299         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58300         and openat.c.
58301         * lib/mkdirat.c: Include openat-priv.h.
58302         Remove definitions of macros defined therein.
58303         * lib/openat.c: Likewise.
58304
58305         * lib/mkdirat.c (mkdirat): New file and function.
58306         * lib/openat.h (mkdirat): Declare.
58307
58308         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58309
58310         * lib/openat.h (openat_permissive): Declare.
58311         (openat_ro): Define.
58312
58313         * lib/openat.c (EXPECTED_ERRNO): New macro.
58314         (openat_permissive): New function -- used in remove.c rewrite.
58315         (all functions): Set errno just before returning, only if there
58316         was an actual failure.
58317         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58318
58319         Emulate openat-family functions using Linux's procfs, if possible.
58320         Idea and some code based on Ulrich Drepper's glibc changes.
58321
58322         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58323         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58324         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58325         before falling back on save_cwd and restore_cwd.
58326         (fdopendir, fstatat, unlinkat): Likewise.
58327
58328         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58329         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58330
58331         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58332         as second argument to va_arg.  Otherwise, some versions of gcc
58333         warn that `if this code is reached, the program will abort'.
58334
58335 2006-01-09  Jim Meyering  <jim@meyering.net>
58336
58337         Sync from coreutils.
58338         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58339         Require openat-priv.h.
58340
58341 2006-01-09  Bruno Haible  <bruno@clisp.org>
58342
58343         * modules/strnlen (Include): Use strnlen.h.
58344
58345 2006-01-09  Bruno Haible  <bruno@clisp.org>
58346
58347         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58348
58349 2006-01-09  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/sysexit_.h (EX_OK): New macro.
58352         Suggested by Martin Lambers <marlam@marlam.de>.
58353
58354 2006-01-09  Bruno Haible  <bruno@clisp.org>
58355
58356         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58357         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58358
58359 2006-01-09  Bruno Haible  <bruno@clisp.org>
58360
58361         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58362         numbers.
58363
58364 2006-01-09  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58367         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58368         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58369         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58370
58371 2006-01-09  Bruno Haible  <bruno@clisp.org>
58372
58373         * build-aux/javacomp.sh.in: New file, moved from lib/.
58374         * modules/javacomp-script (Files): Update.
58375         (configure.ac): Add AC_CONFIG_FILES invocation.
58376         (EXTRA_DIST): Remove variable.
58377
58378         * build-aux/javaexec.sh.in: New file, moved from lib/.
58379         * modules/javaexec (Files): Update.
58380         (configure.ac): Add AC_CONFIG_FILES invocation.
58381         (EXTRA_DIST): Remove javaexec.sh.in.
58382
58383         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58384         * modules/csharpcomp-script (Files): Update.
58385         (configure.ac): Add AC_CONFIG_FILES invocation.
58386         (EXTRA_DIST): Remove variable.
58387
58388         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58389         * modules/csharpexec (Files): Update.
58390         (configure.ac): Add AC_CONFIG_FILES invocation.
58391         (EXTRA_DIST): Remove csharpexec.sh.in.
58392
58393 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58394
58395         Sync from coreutils.
58396
58397         Add POSIX ACL support
58398         * lib/acl.h (copy_acl, set_acl): Add declarations.
58399         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58400         systems other than Linux.
58401         (chmod_or_fchmod): New function: use fchmod when possible,
58402         and chmod otherwise.
58403         (file_has_acl): Add a POSIX ACL implementation, with a
58404         Linux-specific subcase.
58405         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58406         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58407         acls are unsupported.
58408         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58409         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58410         are unsupported.
58411
58412 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58413
58414         Sync from coreutils.
58415         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58416
58417 2006-01-07  Bruno Haible  <bruno@clisp.org>
58418
58419         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58420         gl_EARLY.
58421
58422 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58423
58424         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58425         Problem reported for Mingw by Mark Junker.
58426
58427 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58428
58429         * README: Gnulib normally doesn't generate a tarball.
58430
58431 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58434         long int, not int, for nanosecond counts, so that people who are
58435         used to POSIX struct timespec won't be surprised.  Reported by Jim
58436         Meyering.
58437
58438 2005-12-28  Bruno Haible  <bruno@clisp.org>
58439
58440         * build-aux/config.rpath: Update from GNU gettext.
58441
58442 2005-12-16  Jim Meyering  <jim@meyering.net>
58443
58444         * modules/fprintftime: New module.
58445         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58446
58447 2005-12-16  Jim Meyering  <jim@meyering.net>
58448
58449         * m4/fprintftime.m4: New file.
58450
58451 2005-12-16  Jim Meyering  <jim@meyering.net>
58452
58453         * lib/fprintftime.c, lib/fprintftime.h: New files.
58454
58455 2005-12-15  Simon Josefsson  <jas@extundo.com>
58456
58457         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58458         new m4/socklen.m4.
58459
58460 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58461
58462         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58463         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58464
58465 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58466
58467         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58468         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58469         struct uparams is valid. Fall back to the default values if it is
58470         not.
58471
58472 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58473
58474         * modules/argp (Files): Add argp-pin.c
58475         (Depends-on): dirname
58476         (lib_SOURCES): Add argp-pin.c
58477
58478 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58479
58480         * m4/argp.m4:  Check if program_invocation_name and
58481         program_invocation_short_name are declared and define appropriate
58482         macros if they are not.
58483
58484 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58485
58486         * lib/argp-help.c (__argp_base_name): New function
58487         (__argp_short_program_name): Rewrite using __argp_base_name
58488         * lib/argp-namefrob.h: Define program_invocation_name and
58489         program_invocation_short_name if requested
58490         (__argp_base_name): Add prototype
58491         * lib/argp-parse.c (argp_def): Use gettext wrappers
58492         (argp_default_parser): Use __argp_base_name
58493         * lib/argp-pin.c: New file. Defines program_invocation_name and
58494         program_invocation_short_name on systems that lack them.
58495
58496 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58499         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58500         porting problem reported by Georg Schwarz in
58501         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58502
58503 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58506         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58507         porting problem reported by Georg Schwarz in
58508         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58509
58510 2005-12-05  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58513         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58514         Reported by Mark Junker <mjscod@gmx.de>.
58515
58516 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58517
58518         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58519         Use implementation from Albert Chin, with some
58520         comments/corrections by Stepan Kasal and myself.
58521
58522 2005-12-02  Bruno Haible  <bruno@clisp.org>
58523
58524         * gnulib-tool (func_import): Accept GPLed build tool modules when
58525         --lgpl is given.
58526         * modules/csharpcomp-script: New file.
58527         * modules/csharpcomp: Depend on it.
58528         * modules/javacomp-script: New file.
58529         * modules/javacomp: Depend on it.
58530         Suggested by Simon Josefsson.
58531
58532 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58535         statement, to work around an HP-UX 10.20 compiler bug reported by
58536         Peter O'Gorman.
58537
58538 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58539
58540         * modules/savedir (Depends-on): Add openat.
58541
58542 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58543
58544         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58545         (uintmax_t) [defined uintmax_t]: Do not declare.
58546         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58547         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58548         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58549         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58550         sake of portability to weird hosts that C allows (though we don't
58551         know of any practical examples).
58552
58553         * lib/savedir.h (fdsavedir): New decl.
58554         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58555         contains most of the former guts of savedir.
58556         (savedir): Use savedirstream.
58557         Include "openat.h".
58558
58559 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * modules/obstack (Files): Add m4/ulonglong.m4.
58562         Problem reported by Davide Angelocola.
58563
58564 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58567         coreutils no longer futzes with rounding modes.
58568
58569 2005-11-14  Jim Meyering  <jim@meyering.net>
58570
58571         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58572         replacement of mkstemp.
58573
58574 2005-11-10  Simon Josefsson  <jas@extundo.com>
58575
58576         * lib/readline.c: Remove EOL.
58577
58578 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58579
58580         * modules/gethrxtime (Depends-on): Add gettime.
58581
58582 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58583
58584         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58585         or gettimeofday; no longer needed.
58586
58587 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58590         time business.
58591         (gethrxtime) [! (HAVE_NANOUPTIME
58592         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58593         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58594         our own approximation.
58595
58596 2005-11-08  Eric Blake  <ebb9@byu.net>
58597
58598         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58599
58600 2005-11-08  Eric Blake  <ebb9@byu.net>
58601
58602         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58603
58604 2005-11-04  Bruno Haible  <bruno@clisp.org>
58605
58606         * gnulib-tool: Implement --update mode.
58607
58608 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         Fix porting problem reported by Theodoros V. Kalamatianos.
58611         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58612         Don't assume that futimes failing means we must fail.
58613
58614 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58617         variables to suggest the intended function of the PATH_MAX check.
58618
58619 2005-10-30  Kean Johnston  <jkj@sco.com>
58620
58621         Trivial changes to support SCO systems.
58622         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58623         as PATH_MAX.
58624         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58625         where __ptr is null when no I/O is pending.
58626
58627 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58628
58629         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58630         leave errno alone.  Problem reported by Dmitry V. Levin.
58631
58632 2005-10-28  Simon Josefsson  <jas@extundo.com>
58633
58634         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58635         Test more.
58636
58637         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58638
58639         * modules/md2, modules/md2-tests: New files.
58640
58641 2005-10-28  Simon Josefsson  <jas@extundo.com>
58642
58643         * m4/inet_ntop.m4: More tests.
58644
58645         * m4/gc-md2.m4, md2.m4: New file.
58646
58647 2005-10-28  Simon Josefsson  <jas@extundo.com>
58648
58649         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58650         "restrict" keywords, as per POSIX.  Protect the function
58651         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58652         Don't use K&R prototypes.  Check the sprintf return values.
58653         Re-define EAFNOSUPPORT if not present.  Indent.
58654
58655         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58656         suggested by Bruno Haible <bruno@clisp.org>.
58657
58658         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58659
58660         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58661
58662         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58663         libgcrypt).
58664
58665         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58666
58667         * lib/md2.h, lib/md2.c: New files.
58668
58669 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58670
58671         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58672         errno alone.  Problem reported by Frederic Jolliton.
58673
58674 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58675
58676         * modules/verify (License): Change from GPL to LGPL.  This is a
58677         tiny module and there are apparently near-equivalents that are
58678         under the BSD license.
58679
58680 2005-10-24  Simon Josefsson  <jas@extundo.com>
58681
58682         * modules/sha1: Relicense to LGPL.
58683
58684 2005-10-24  Simon Josefsson  <jas@extundo.com>
58685
58686         * lib/md4.h: Shrink buffer size, now that we changed the type.
58687
58688 2005-10-23  Simon Josefsson  <jas@extundo.com>
58689
58690         * gnulib-tool (func_import): Fix --tests-base.
58691
58692 2005-10-22  Simon Josefsson  <jas@extundo.com>
58693
58694         * modules/arcfour (Depends-on): Need stdint.
58695
58696 2005-10-22  Simon Josefsson  <jas@extundo.com>
58697
58698         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58699         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58700
58701 2005-10-22  Simon Josefsson  <jas@extundo.com>
58702
58703         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58704         suggested by Bruno Haible <bruno@clisp.org>.
58705
58706 2005-10-22  Simon Josefsson  <jas@extundo.com>
58707
58708         * lib/crc.h: Include stddef.h, for size_t.
58709
58710 2005-10-22  Simon Josefsson  <jas@extundo.com>
58711
58712         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58713         arcfour_context struct (simplify test vector testing in GNU
58714         Shishi).
58715
58716 2005-10-21  Simon Josefsson  <jas@extundo.com>
58717
58718         * modules/des, modules/des-tests: New files.
58719
58720         * modules/gc-des, modules/gc-des-tests: New files.
58721
58722         * tests/test-des.c, tests/test-gc-des.c: New file.
58723
58724 2005-10-21  Simon Josefsson  <jas@extundo.com>
58725
58726         * modules/arctwo, modules/arctwo-tests: New files.
58727
58728         * tests/test-arctwo.c: New file.
58729
58730         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58731
58732         * tests/test-gc-arctwo.c: New file.
58733
58734 2005-10-21  Simon Josefsson  <jas@extundo.com>
58735
58736         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58737         Bruno Haible <bruno@clisp.org>.
58738
58739         * m4/gc-des.m4: New file.
58740
58741 2005-10-21  Simon Josefsson  <jas@extundo.com>
58742
58743         * m4/arctwo.m4: New file.
58744
58745         * m4/gc-arctwo.m4: New file.
58746
58747 2005-10-21  Simon Josefsson  <jas@extundo.com>
58748
58749         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58750         block.
58751
58752 2005-10-21  Simon Josefsson  <jas@extundo.com>
58753
58754         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58755         <bruno@clisp.org>.
58756
58757         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58758
58759         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58760         Bruno Haible <bruno@clisp.org>.
58761
58762         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58763         <bruno@clisp.org>.
58764
58765 2005-10-21  Simon Josefsson  <jas@extundo.com>
58766
58767         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58768
58769 2005-10-21  Simon Josefsson  <jas@extundo.com>
58770
58771         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58772
58773 2005-10-21  Simon Josefsson  <jas@extundo.com>
58774
58775         * lib/des.h, lib/des.c: New files.
58776
58777         * lib/gc-gnulib.c: Support DES.c
58778
58779 2005-10-21  Simon Josefsson  <jas@extundo.com>
58780
58781         * lib/arctwo.h, lib/arctwo.c: New files.
58782
58783         * lib/gc-gnulib.c: Support ARCTWO.
58784
58785 2005-10-21  Simon Josefsson  <jas@extundo.com>
58786
58787         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58788         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58789
58790 2005-10-21  Simon Josefsson  <jas@extundo.com>
58791
58792         * gnulib-tool (func_import, func_create_testdir): Define automake
58793         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58794         Makefile.am snippet),
58795         suggested by Bruno Haible <bruno@clisp.org>.
58796
58797         * modules/gc (Makefile.am): Use it.
58798
58799 2005-10-21  Bruno Haible  <bruno@clisp.org>
58800
58801         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58802         patch.
58803
58804 2005-10-19  Simon Josefsson  <jas@extundo.com>
58805
58806         * tests/test-gc-rijndael.c: New file.
58807
58808         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58809
58810 2005-10-19  Simon Josefsson  <jas@extundo.com>
58811
58812         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58813         interface too.
58814
58815 2005-10-19  Simon Josefsson  <jas@extundo.com>
58816
58817         * tests/test-gc-arcfour.c: New file.
58818
58819         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58820
58821 2005-10-19  Simon Josefsson  <jas@extundo.com>
58822
58823         * modules/gc-md4, modules/gc-md4-tests: New file.
58824
58825         * tests/test-gc-md4.c: New file.
58826
58827 2005-10-19  Simon Josefsson  <jas@extundo.com>
58828
58829         * m4/gc-md4.m4: New file.
58830
58831 2005-10-19  Simon Josefsson  <jas@extundo.com>
58832
58833         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58834         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58835         <kasal@ucw.cz>.
58836
58837 2005-10-19  Simon Josefsson  <jas@extundo.com>
58838
58839         * m4/gc-arcfour.m4: New file.
58840
58841         * m4/gc-rijndael.m4: New file.
58842
58843 2005-10-19  Simon Josefsson  <jas@extundo.com>
58844
58845         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58846
58847 2005-10-19  Simon Josefsson  <jas@extundo.com>
58848
58849         * lib/gc-gnulib.c: Support ARCFOUR.
58850
58851 2005-10-19  Simon Josefsson  <jas@extundo.com>
58852
58853         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58854         support.
58855
58856         * lib/gc.h: Add ECB enum type.
58857
58858         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58859
58860 2005-10-18  Simon Josefsson  <jas@extundo.com>
58861
58862         * tests/test-md5.c: New file.
58863
58864         * modules/md5-tests: New file.
58865
58866 2005-10-18  Simon Josefsson  <jas@extundo.com>
58867
58868         * tests/test-md4.c: New file.
58869
58870         * modules/md4, modules/md4-tests: New files.
58871
58872 2005-10-18  Simon Josefsson  <jas@extundo.com>
58873
58874         * m4/md4.m4: New file.
58875
58876 2005-10-18  Simon Josefsson  <jas@extundo.com>
58877
58878         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58879
58880 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58881
58882         * gnulib-tool (func_create_testdir): Omit the second check whether
58883         BUILT_SOURCES in nonempty.
58884
58885 2005-10-17  Simon Josefsson  <jas@extundo.com>
58886
58887         * tests/test-rijndael.c: New file.
58888
58889 2005-10-17  Simon Josefsson  <jas@extundo.com>
58890
58891         * modules/sha1: Depend on stdint instead of md5.
58892
58893         * modules/md5: Depend on stdint, remove uint32_t.
58894
58895 2005-10-17  Simon Josefsson  <jas@extundo.com>
58896
58897         * modules/gc-sha1-tests: New file.
58898
58899         * tests/test-gc-sha1.c: New file.
58900
58901 2005-10-17  Simon Josefsson  <jas@extundo.com>
58902
58903         * m4/md5.m4: Remove call to uint32_t.m4.
58904
58905 2005-10-17  Simon Josefsson  <jas@extundo.com>
58906
58907         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58908
58909         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58910         md5.h.
58911
58912         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58913
58914         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58915
58916 2005-10-17  Simon Josefsson  <jas@extundo.com>
58917
58918         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58919
58920 2005-10-17  Simon Josefsson  <jas@extundo.com>
58921
58922         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58923
58924 2005-10-17  Simon Josefsson  <jas@extundo.com>
58925
58926         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58927
58928         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58929
58930 2005-10-17  Bruno Haible  <bruno@clisp.org>
58931
58932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58933         that it can also be used in a test.
58934
58935 2005-10-16  Bruno Haible  <bruno@clisp.org>
58936
58937         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58938         TESTS_ENVIRONMENT, so that individual tests can augment it.
58939
58940         * gnulib-tool (func_create_testdir): Use an intermediate target for
58941         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58942         macros, like $(ALLOCA_H), which cannot be passed through the command
58943         line.
58944
58945 2005-10-15  Simon Josefsson  <jas@extundo.com>
58946
58947         * modules/rijndael-tests: New file.
58948
58949         * modules/rijndael: New file.
58950
58951 2005-10-15  Simon Josefsson  <jas@extundo.com>
58952
58953         * m4/rijndael.m4: New file.
58954
58955 2005-10-15  Simon Josefsson  <jas@extundo.com>
58956
58957         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58958
58959         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58960
58961 2005-10-14  Simon Josefsson  <jas@extundo.com>
58962
58963         * tests/test-arcfour.c: New file.
58964
58965         * modules/arcfour, modules/arcfour-tests: New files.
58966
58967 2005-10-14  Simon Josefsson  <jas@extundo.com>
58968
58969         * m4/arcfour.m4: New file.
58970
58971 2005-10-14  Simon Josefsson  <jas@extundo.com>
58972
58973         * lib/arcfour.h, lib/arcfour.c: New files.
58974
58975 2005-10-14  Roland McGrath  <roland@redhat.com>
58976
58977         Import from libc.  [BZ #1331]
58978         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58979         macro argument.
58980         Reported by Matej Vela <vela@debian.org>.
58981
58982 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58983
58984         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58985         include <wchar.h>; no longer needed.
58986
58987 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58990
58991 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58992         and  Ulrich Drepper  <drepper@redhat.com>
58993
58994         Import from libc.
58995         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58996         instead of inline stream orientation test and two separate
58997         function calls.  Pay no attention to USE_IN_LIBIO.
58998
58999 2005-10-13  Simon Josefsson  <jas@extundo.com>
59000
59001         * modules/gc-hmac-md5-tests: New file.
59002
59003         * tests/test-gc-hmac-sha1.c: New file.
59004
59005         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59006
59007         * modules/gc-hmac-md5-tests: New file.
59008
59009         * tests/test-gc-md5.c: New file.
59010
59011         * modules/gc-md5-tests: New file.
59012
59013 2005-10-13  Simon Josefsson  <jas@extundo.com>
59014
59015         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59016         Move memory allocation outside of loop.
59017
59018 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59021         intermediate directory is in a read-only file system.  Problem
59022         reported by Eric Blake.
59023
59024 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59025
59026         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59027
59028 2005-10-12  Simon Josefsson  <jas@extundo.com>
59029
59030         * tests/test-hmac-sha1.c: New file.
59031
59032         * modules/hmac-sha1-tests: New file.
59033
59034         * modules/hmac-sha1: New file.
59035
59036 2005-10-12  Simon Josefsson  <jas@extundo.com>
59037
59038         * modules/gc-sha1: New file.
59039
59040 2005-10-12  Simon Josefsson  <jas@extundo.com>
59041
59042         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59043
59044         * tests/test-gc-pbkdf2-sha1.c: New file.
59045
59046 2005-10-12  Simon Josefsson  <jas@extundo.com>
59047
59048         * modules/gc-md5, modules/gc-hmac-md5: New files.
59049
59050         * modules/gc (Files): Remove md5, memxor and hmac files.
59051
59052 2005-10-12  Simon Josefsson  <jas@extundo.com>
59053
59054         * m4/gc-pbkdf2-sha1.m4: New file.
59055
59056         * m4/gc-hmac-sha1.m4: New file.
59057
59058         * m4/gc-sha1: New file.
59059
59060         * m4/hmac-sha1.m4: New file.
59061
59062 2005-10-12  Simon Josefsson  <jas@extundo.com>
59063
59064         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59065
59066         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59067
59068 2005-10-12  Simon Josefsson  <jas@extundo.com>
59069
59070         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59071         suggested by Bruno Haible <bruno@clisp.org>.
59072
59073 2005-10-12  Simon Josefsson  <jas@extundo.com>
59074
59075         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59076
59077 2005-10-12  Simon Josefsson  <jas@extundo.com>
59078
59079         * lib/gc-pbkdf2-sha1.c: New file.
59080
59081         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59082
59083 2005-10-12  Simon Josefsson  <jas@extundo.com>
59084
59085         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59086
59087         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59088
59089 2005-10-12  Simon Josefsson  <jas@extundo.com>
59090
59091         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59092         GC_USE_HMAC_MD5, respectively.
59093
59094         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59095         (gc_md5): Fix typo.
59096
59097         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59098
59099         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59100
59101         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59102
59103 2005-10-12  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59106         Reported by Stepan Kasal <kasal@ucw.cz>.
59107
59108 2005-10-11  Simon Josefsson  <jas@extundo.com>
59109
59110         * tests/test-crc.c: New file.
59111
59112         * modules/crc, modules/crc-tests: New files.
59113
59114 2005-10-11  Simon Josefsson  <jas@extundo.com>
59115
59116         * m4/crc.m4: New file.
59117
59118 2005-10-11  Simon Josefsson  <jas@extundo.com>
59119
59120         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59121
59122         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59123
59124         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59125
59126 2005-10-11  Simon Josefsson  <jas@extundo.com>
59127
59128         * lib/crc.h, lib/crc.c: New files.
59129
59130         * lib/gc.h (gc_hash_buffer): Add doc.
59131
59132 2005-10-11  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/c-strcasestr: New file.
59135         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59136
59137 2005-10-11  Bruno Haible  <bruno@clisp.org>
59138
59139         * modules/c-strcase: New file.
59140         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59141
59142 2005-10-11  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/strcasecmp.c: Include limits.h.
59145         (strcasecmp): Avoid integer overflow on exotic platforms.
59146         * lib/strncasecmp.c: Include limits.h.
59147         (strncasecmp): Avoid integer overflow on exotic platforms.
59148         Reported by Paul Eggert.
59149
59150 2005-10-11  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/c-strcasestr.h: New file, from GNU gettext.
59153         * lib/c-strcasestr.c: New file, from GNU gettext.
59154
59155 2005-10-11  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/c-strcase.h: New file, from GNU gettext.
59158         * lib/c-strcasecmp.c: New file, from GNU gettext.
59159         * lib/c-strncasecmp.c: New file, from GNU gettext.
59160
59161 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59162
59163         * modules/mempcpy (License): GPL -> LGPL.
59164         * modules/strchrnul (License): Likewise.
59165         * modules/sysexits (License): Likewise.
59166
59167 2005-10-08  Simon Josefsson  <jas@extundo.com>
59168
59169         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59170
59171 2005-10-07  Simon Josefsson  <jas@extundo.com>
59172
59173         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59174
59175 2005-10-06  Simon Josefsson  <jas@extundo.com>
59176
59177         * tests/test-hmac-md5.c: New file.
59178
59179         * modules/hmac-md5-tests: New file.
59180
59181         * modules/hmac-md5: New file.
59182
59183 2005-10-06  Simon Josefsson  <jas@extundo.com>
59184
59185         * m4/hmac-md5.m4: New file.
59186
59187         * m4/memxor.m4: Require gl_C_RESTRICT.
59188
59189 2005-10-06  Simon Josefsson  <jas@extundo.com>
59190
59191         * lib/memxor.c (memxor): Avoid casts and warnings.
59192
59193 2005-10-06  Simon Josefsson  <jas@extundo.com>
59194
59195         * lib/hmac-md5.c: New file.
59196
59197         * lib/hmac.h: New file.
59198
59199 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59200
59201         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59202         promotes to int, not unsigned int, to catch the AIX 5.3
59203         compiler bug.
59204
59205 2005-10-05  Simon Josefsson  <jas@extundo.com>
59206
59207         * modules/memxor: New file.
59208
59209         * modules/iconv (Files): Move config.rpath to havelib, it is used
59210         there.
59211
59212         * modules/havelib (Files): Add config.rpath.
59213
59214 2005-10-05  Simon Josefsson  <jas@extundo.com>
59215
59216         * m4/memxor.m4: New file.
59217
59218 2005-10-05  Simon Josefsson  <jas@extundo.com>
59219
59220         * lib/memxor.c (memxor): Fix compiler error.
59221
59222         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59223         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59224
59225         * lib/memxor.h, lib/memxor.c: New files.
59226
59227         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59228         we assume all systems have it, suggested by Jim Meyering
59229         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59230         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59231         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59232         same reasons.
59233
59234 2005-10-05  Simon Josefsson  <jas@extundo.com>
59235
59236         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59237
59238 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59241         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59242         needed, since the source code now assumes these .h files.
59243
59244 2005-10-05  Derek Price  <derek@ximbiot.com>
59245
59246         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59247
59248 2005-10-05  Bruno Haible  <bruno@clisp.org>
59249
59250         * modules/stdint (License): Change to LGPL.
59251
59252 2005-10-04  Simon Josefsson  <jas@extundo.com>
59253
59254         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59255         D. Baushke" <mdb@gnu.org>.
59256
59257 2005-10-04  Bruno Haible  <bruno@clisp.org>
59258
59259         * lib/verify.h (verify_true): Provide alternative definition for C++.
59260
59261 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59264         (SSIZE_MAX): New macro, if not already defined.
59265         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59266         than 2 GiB.
59267
59268 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59269
59270         Sync from coreutils.
59271         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59272         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59273         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59274         ULLONG_MAX doesn't work with 2.7.2.1.
59275
59276 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59279         From Ben Pfaff.
59280
59281         * modules/exclude (Depends-on): Depend on verify.
59282         * modules/strtoimax (Depends-on): Likewise.
59283         * modules/utimecmp (Depends-on): Likewise.
59284
59285 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         * lib/exclude.c: Include verify.h.
59288         (verify): Remove.  All callers changed to use verify.h's version.
59289         * lib/strtoimax.c: Likewise.
59290         * lib/utimecmp.c: Likewis.e
59291
59292         Sync from coreutils.
59293         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59294         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59295         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59296         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59297         bother returning ENOSYS if settimeofday or stime fails; just let
59298         them return whatever errno they want to return.
59299         * lib/utimens.c: Include unistd.h, for dup2.
59300         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59301         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59302
59303 2005-10-02  Jim Meyering  <jim@meyering.net>
59304
59305         Sync from coreutils.
59306         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59307         from glibc-2.2.5 that fails for read-only files.
59308
59309 2005-10-02  Jim Meyering  <jim@meyering.net>
59310
59311         Sync from coreutils.
59312         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59313         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59314         `#if HAVE_CONFIG_H'.
59315         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59316         Remove AT_FDCWD test.
59317         Do not consume the fd unless successful.
59318         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59319         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59320         block, so that we don't even try to compile it if settimeofday is
59321         available.  This works around a compilation failure on OSF1 V5.1,
59322         due to stime requiring a `long int*' while tv_sec is `int'.
59323
59324 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59325
59326         Sync from coreutils.
59327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59328         against `yes', rather than just testing for nonempty.
59329
59330 2005-10-01  Simon Josefsson  <jas@extundo.com>
59331
59332         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59333         and Darwin.
59334
59335         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59336         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59337         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59338         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59339         Check if struct addrinfo is declared.
59340
59341 2005-10-01  Simon Josefsson  <jas@extundo.com>
59342
59343         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59344         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59345         AI_* and EAI_* definitions.  Protect function declarations.
59346
59347 2005-10-01  Jim Meyering  <jim@meyering.net>
59348
59349         Sync from coreutils.
59350
59351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59352         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59353         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59355         in the inet and nsl libraries.  Required on Solaris 5.7.
59356
59357 2005-10-01  Jim Meyering  <jim@meyering.net>
59358
59359         Sync from coreutils.
59360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59361         in the inet and nsl libraries.  Required on Solaris 5.7.
59362
59363 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59364
59365         * lib/getdelim.c (getdelim): Remove unused variables.
59366
59367 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59370         so that the code works even with ancient cpp.  Portability problem
59371         with GCC 2.7.2.1 reported by Thomas M.Ott.
59372
59373 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * modules/regex (Depends-on): Add strcase.
59376
59377         * modules/gethostname (Licence): Change from GPL to LGPL, since
59378         gethostname.c is a trivial implementation of a standard library
59379         function.
59380         * modules/poll (License): Change from GPL to LGPL, since it's
59381         derived from LGPL code.
59382
59383 2005-09-27  Jim Meyering  <jim@meyering.net>
59384
59385         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59386         HAVE_CONFIG_H.
59387
59388         * lib/intprops.h (signed_type_or_expr__): Define.
59389         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59390         for unsigned types.
59391
59392 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * lib/verify.h (verify_expr): Remove, replacing with:
59395         (verify_true): New macro that returns true instead of void.
59396         (verify_type__): Remove.
59397         (verify): Use verify_true rather than verify_type__.
59398
59399 2005-09-26  Bruno Haible  <bruno@clisp.org>
59400
59401         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59402         is necessary.
59403         (lib_SOURCES): Remove mbchar.c.
59404         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59405         (Files): Add m4/mbrtowc.m4.
59406         * modules/mbiter: Likewise.
59407         * modules/mbuiter: Likewise.
59408
59409 2005-09-26  Bruno Haible  <bruno@clisp.org>
59410
59411         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59412         compile mbchar.c if they are not both present.
59413         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59414         * m4/mbiter.m4 (gl_MBITER): Likewise.
59415         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59416         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59417         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59418
59419 2005-09-25  Jim Meyering  <jim@meyering.net>
59420
59421         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59422         also uses socklen_t.
59423
59424 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         * lib/utimens.c (ENOSYS): Define if not already defined.
59427         (futimens): Support having a null PATH if the file descriptor
59428         is nonnegative.
59429
59430         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59431         Remove.
59432         (__attribute): Define to empty unless GCC 3.1 or later.
59433         This works around a core dump on OpenBSD 3.4, which has GCC
59434         2.95.3, which dumps core when given __attribute__(()).  It also
59435         simplifies other tests, since we really don't want to bother with
59436         worrying about which ancient version of GCC supported what.
59437         Original problem reported by Yoann Vandoorselaere, with part of
59438         the fix suggested by Derek Price.
59439
59440 2005-09-24  Jim Meyering  <jim@meyering.net>
59441
59442         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59443         so we can once again use a positive bitfield width of 1 -- now we
59444         don't have to explain why we were using a bitfield width of 2.
59445
59446 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59449         and similarly for the other external symbols.  Problem reported
59450         by James Gallager.
59451
59452         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59453         bug reported by Jim Meyering.
59454
59455         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59456         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59457         not needed, since socklen is a prerequisite module.
59458
59459 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59462         Problem reported by Eric Blake.
59463         (getaddrinfo): Initialize se so that it's not garbage.
59464         Redo internal storage allocation so that it doesn't make unportable
59465         assumptions about alignment.
59466         Fix a memory leak.
59467
59468         * lib/utimens.c (futimens): Use futimesat if available.
59469         Prefer it to futimes since it doesn't have the futimes bug.
59470
59471         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59472         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59473         Instead, declare a function that returns a pointer to an array,
59474         and use verify_type__ to declare the size of the array.
59475         Problem and germ of a solution reported by Bruno Haible.
59476         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59477         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59478
59479 2005-09-23  Jim Meyering  <jim@meyering.net>
59480
59481         Sync from coreutils.
59482         Correct build failure (socklen_t not defined) on at least
59483         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59485
59486 2005-09-23  Jim Meyering  <jim@meyering.net>
59487
59488         * modules/getaddrinfo (Depends-on): Add socklen.
59489
59490 2005-09-23  Bruno Haible  <bruno@clisp.org>
59491
59492         * tests/test-verify.c: New file.
59493
59494 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         Sync from coreutils.
59497
59498         * modules/argmatch (Depends-on): Add verify.
59499         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59500         unistd-safer.
59501         * modules/save-cwd (Depends-on): Likewise.
59502
59503         * modules/openat (Files): Add lib/openat-die.c.
59504         (Depends-on): Remove error, exitfail.
59505         Add dirname.
59506
59507         * modules/verify: New file.
59508         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59509         with "verify" module.
59510
59511 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59512
59513         Sync from coreutils.
59514
59515         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59516         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59517         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59518         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59519         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59520         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59521         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59522         Don't bother checking for string.h, stdlib.h, unistd.h.
59523         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59524         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59525         module's job.
59526         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59527         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59528
59529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59530         (gl_GETDATE): Use it.
59531
59532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59533
59534 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         Sync from coreutils.
59537
59538         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59539         stat-time.h.
59540         * lib/argmatch.h: Include verify.h
59541         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59542         (ARGMATCH_ASSERT): Remove; unused.
59543         * lib/canonicalize.c: Assume STDC_HEADERS.
59544         * lib/exclude.c: Include "strcase.h".
59545         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59546         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59547         and stdio-safer.h.
59548         (getusershell): Call fopen, not fopen_safer.
59549         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59550         Do not include unistd-safer.h.
59551         (save_cwd): Don't call fd_safer; no longer needed
59552         now that we include fcntl--.h.
59553
59554         * lib/getdate.y (relative_time): New type.
59555         (RELATIVE_TIME_0): New constant.
59556         (parser_control): Use relative_time instead of doing it ourselves.
59557         (%union): Add new relative_time rel member.
59558         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59559         Now typeless.
59560         (relunit, relunit_snumber): Now of type rel.
59561         (zone, rel, relunit, get_date): Adjust to above changes.
59562
59563         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59564         Do not include unistd-safer.h.
59565         (getloadavg): Don't call fd_safer; no longer needed
59566         now that we include fcntl--.h.
59567
59568         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59569         (make_dir_parents): Treat ENOSYS like EEXIST.
59570
59571         Improve quality of diagnostics on restore_cwd failure.
59572         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59573         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59574         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59575         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59576         each time through the loop.  Do not diagnose restore_cwd failure;
59577         that is the caller's job (and perhaps the caller does not care).
59578
59579         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59580         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59581         If the file already exists but is not a directory, don't bother
59582         to try to make its parents.
59583         Close potential file descriptor leak if we can't chdir("/") (!).
59584         Don't always return true if chdir($PWD) fails; return true only
59585         if the requested action was done successfully (except for the
59586         chdir($PWD)).
59587         Don't log final directory unless we actually made it.
59588         Refactor to avoid duplicate code to fix up permissions.
59589         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59590
59591         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59592         to make it a bit faster and (I hope) clearer.
59593         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59594         Fix bug in formats like %2N.
59595
59596         * lib/verify.h: New file.
59597
59598 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         Sync from coreutils.
59601         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59602
59603 2005-09-22  Jim Meyering  <jim@meyering.net>
59604
59605         Sync from coreutils.
59606
59607         * m4/lstat.m4 (gl_FUNC_LSTAT):
59608         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59609         Remove obsolete comment.
59610         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59611         * m4/xstrtod.m4: Likewise.
59612
59613         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59614
59615 2005-09-22  Jim Meyering  <jim@meyering.net>
59616
59617         Sync from coreutils.
59618
59619         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59620
59621         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59622         the .tm_year member, since otherwise gcc-4.0 would now warn about
59623         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59624
59625         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59626         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59627
59628         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59629         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59630         when run in a time zone for which daylight savings time is in effect
59631         for the starting date.
59632
59633         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59634         stop us from restricting permissions of just-created absolute-named
59635         directories.
59636         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59637         to restore initial working directory.
59638         * lib/mkdir-p.c (make_dir_parents): New parameter:
59639         different_working_dir, to tell caller if/when we change the working
59640         directory and are unable to return to the initial one.
59641         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59642         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59643         `return false'.  This fixes a bug introduced on 2004-07-30.
59644
59645         * lib/openat.c (fdopendir): Be sure to close the supplied
59646         file descriptor before returning.  This makes our replacement
59647         implementation a little closer to Solaris's, where fdopendir
59648         ties the file descriptor to the returned DIR* pointer.
59649         * lib/openat.c (unlinkat): New function.
59650         * lib/openat.h (unlinkat): Add prototype.
59651         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59652         (openat_restore_fail): Rename from openat_restore_die.
59653         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59654
59655         Provide an alternative to exiting immediately upon save_cwd or
59656         restore_cwd failure.  Now, an application can arrange e.g.,
59657         to perform a longjump in that case.
59658         * lib/openat.c: Include dirname.h.
59659         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59660         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59661         and openat_restore_die rather than calling error directly.
59662         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59663
59664         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59665         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59666         define.
59667
59668         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59669         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59670                             int utc, int nanoseconds);
59671         Background:
59672         date should not have to allocate a megabyte of virtual memory to
59673         handle a format argument like +%1048575T.  When implemented with
59674         strftime, it must allocate such a buffer, use strftime to fill it
59675         in, print it, then free it.
59676         With fprintftime, it simply prints everything and exits.
59677         With no need for memory allocation, that's one fewer way to fail.
59678         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59679         optional field width, not before, so we accept %9:z, not %:9z.
59680         (my_strftime): Be sure to use L_('x') for literals.
59681
59682         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59683         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59684         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59685         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59686         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59687         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59688         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59689         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59690         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59691         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59692         * lib/xgethostname.c, lib/xreadlink.c:
59693         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59694
59695         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59696         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59697         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59698         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59699         and don't include <sys/file.h>).
59700
59701 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59702
59703         Sync from coreutils.
59704
59705         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59706         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59707         [!LDAV_DONE]: Avoid unused variable warning.
59708
59709 2005-09-21  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/unicodeio.h (unicode_to_mb): New declaration.
59712
59713 2005-09-20  Derek Price  <derek@ximbiot.com>
59714
59715         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59716         getaddrinfo.h.
59717
59718 2005-09-20  Bruno Haible  <bruno@clisp.org>
59719
59720         * gnulib-tool: Remove trailing slashes from the values specified for
59721         --source-base, --m4-base, --tests-base, --aux-dir.
59722         Suggested by Simon Josefsson <jas@extundo.com>.
59723
59724 2005-09-20  Bruno Haible  <bruno@clisp.org>
59725
59726         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59727         func_modules_to_filelist, func_import, func_create_testdir): Make all
59728         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59729         change when gnulib-tool is invoked in a different locale.
59730
59731 2005-09-19  Simon Josefsson  <jas@extundo.com>
59732
59733         * m4/socklen.m4: Fix typo.
59734
59735 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59736
59737         Use a consistent style for including <config.h>.
59738         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59739         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59740         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59741         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59742         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59743         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59744         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59745         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59746         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59747         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59748         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59749         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59750         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59751         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59752         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59753         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59754         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59755         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59756         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59757         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59758         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59759         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59760         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59761         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59762         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59763         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59764         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59765         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59766         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59767         lib/xstrtoumax.c, lib/yesno.c:
59768         Standardize inclusion of config.h.
59769         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59770         lib/inttostr.h:  Removed inclusion of config.h from header files.
59771         * lib/inttostr.c:  Adjusted in-tree users.
59772         * lib/timespec.h: Remove superfluous warning to include config.h.
59773         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59774         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59775         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59776         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59777         config.h with HAVE_CONFIG_H.
59778
59779 2005-09-19  Jim Meyering  <jim@meyering.net>
59780
59781         * modules/pathmax (License): Change to LGPL.
59782
59783 2005-09-19  Derek Price  <derek@ximbiot.com>
59784
59785         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59786
59787 2005-09-19  Bruno Haible  <bruno@clisp.org>
59788
59789         * gnulib-tool (import): Provide default for --tests-base.
59790
59791 2005-09-19  Bruno Haible  <bruno@clisp.org>
59792
59793         * doc/quote.texi: New file, extracted from gnulib.texi.
59794         * doc/ctime.texi: New file, extracted from gnulib.texi.
59795         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59796         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59797         * doc/gnulib.texi: Include them.
59798
59799 2005-09-18  Bruno Haible  <bruno@clisp.org>
59800
59801         Portability fix.
59802         * gnulib-tool (func_readlink): New function.
59803         (func_ln_if_changed): Use it.
59804
59805 2005-09-18  Bruno Haible  <bruno@clisp.org>
59806
59807         * gnulib-tool: Support --with-tests also with --import.
59808         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59809         (func_import): Use variables $testsbase and $inctests. Emit a
59810         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59811         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59812         SUBDIRS += $testsdir.
59813         (func_create_testdir): Update.
59814
59815 2005-09-18  Bruno Haible  <bruno@clisp.org>
59816
59817         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59818         instead of $dry_run.
59819         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59820         (func_ln_if_changed): Don't handle dry-run here.
59821         (func_import): In dry-run mode, detect more precisely which actions
59822         would be performed, and don't use "...ing" verbs.
59823
59824 2005-09-18  Bruno Haible  <bruno@clisp.org>
59825
59826         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59827         (func_import): Use join on two temporary files instead of three nested
59828         loops, in order to determine which files are new or old.
59829
59830 2005-09-18  Bruno Haible  <bruno@clisp.org>
59831
59832         * gnulib-tool (func_import): Comment out code that spits out the
59833         new files with --dry-run.
59834
59835 2005-09-18  Bruno Haible  <bruno@clisp.org>
59836
59837         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59838
59839 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * lib/stat-time.h: New file.
59842         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59843         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59844         in a different way.
59845         (timespec_cmp): New function.
59846         * lib/utimecmp.c: Include stat-time.h.
59847         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59848         members exist, not on the obsolescent ST_MTIM_NSEC.
59849         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59850
59851 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59852
59853         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59854
59855 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * MODULES.html.sh (File system functions): Add stat-time.
59858         * modules/stat-time: New file.
59859         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59860         is now done in a different way, by the stat-time module.
59861         * modules/utimecmp (Depends-on): Add stat-time.
59862
59863 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * m4/st_mtim.m4: Remove.  Superseded by...
59866         * m4/stat-time.m4: New file.
59867         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59868         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59869
59870 2005-09-15  Derek Price  <derek@ximbiot.com>
59871
59872         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59873
59874 2005-09-15  Derek Price  <derek@ximbiot.com>
59875
59876         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59877         * lib/regex_internal.c: Ditto, using this...
59878         (__GNUC_PREREQ): ...new macro.
59879         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59880         using...
59881         (__GNUC_PREREQ): ...this new macro.
59882
59883         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59884
59885 2005-09-15  Derek Price  <derek@ximbiot.com>
59886             Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59889         changes, consolidating in...
59890         * lib/regex_internal.h: ...this file.
59891
59892 2005-09-13  Jim Meyering  <jim@meyering.net>
59893
59894         * lib/canon-host.c: Filter through gnu indent and reword comments
59895         slightly.
59896         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59897
59898 2005-09-13  Derek Price  <derek@ximbiot.com>
59899
59900         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59901         failure.
59902         Reported by Jim Meyering  <jim@meyering.net>.
59903
59904 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59905
59906         * lib/base64.c: Typo.
59907         (base64_encode): Put b64str in initialized data section.
59908
59909 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59910
59911         Merge glibc and coreutils changes into gnulib, plus a few
59912         extra fixes.
59913         * lib/md5.c: Use #error rather than a string.
59914         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59915         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59916         (__attribute__): Define to empty for non recent-GCC.
59917         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59918         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59919         Renamed from their non-__ counterparts, with new macros replacing
59920         them if not _LIBC.  Add __THROW attribute.
59921         (rol): Remove.
59922         (struct md5_ctx): Align buffer if using GCC.
59923         * lib/sha1.h (struct sha1_ctx): Likewise.
59924         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59925         The old name was backwards.
59926         (NOTSWAP): Remove; not used.
59927         (rol): New macro, moved here from md5.h.
59928         (sha1_process_block): Remove a FIXME that doesn't make sense.
59929
59930 2005-09-12  Derek Price  <derek@ximbiot.com>
59931
59932         Return usable errors from canon-host.
59933         * lib/canon-host.h: New file.
59934         * lib/canon-host.c (canon_host): Wrap...
59935         (canon_host_r): ...this new function, which now relies exclusively on
59936         getaddrinfo.
59937         (ch_strerror): New function.
59938         (last_cherror): New global.
59939         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59940         interface.
59941         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59942         void *.
59943         (freeaddrinfo): Free ai->ai_canonname when set.
59944
59945 2005-09-12  Derek Price  <derek@ximbiot.com>
59946
59947         Make canon-host require getaddrinfo.
59948         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59949         AC_LIBSOURCE canon-host.h.  Call...
59950         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59951         gl_GETADDRINFO.
59952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59953
59954 2005-09-12  Derek Price  <derek@ximbiot.com>
59955
59956         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59957         LGPL.
59958         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59959
59960 2005-09-12  Derek Price  <derek@ximbiot.com>
59961
59962         * lib/gai_strerror.c: Include config.h when available.  Include
59963         getaddrinfo.h before other headers to test interface.
59964         Reported by Larry Jones <lawrence.jones@ugs.com>.
59965
59966 2005-09-12  Derek Price  <derek@ximbiot.com>
59967             Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * modules/glob (Files): Add glob-libc.h.
59970
59971 2005-09-12  Derek Price  <derek@ximbiot.com>
59972             Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59975         glob_.h, glob-libc.h.
59976         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59977
59978 2005-09-12  Derek Price  <derek@ximbiot.com>
59979             Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59982         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59983         protecting things that should be done only in gnulib contexts.
59984         * lib/glob_.h: New file, containing only the glob things needed for
59985         gnulib.
59986         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59987         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59988         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59989         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59990         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59991         and to respect the namespace rules better.
59992
59993 2005-09-08  Simon Josefsson  <jas@extundo.com>
59994
59995         * modules/socklen: New file.
59996
59997 2005-09-08  Simon Josefsson  <jas@extundo.com>
59998
59999         * m4/socklen.m4: New file.
60000
60001 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         * modules/utimens (Files): Add m4/utimbuf.m4, since
60004         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60005         Reported by Sergey Poznyakoff.
60006
60007 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60010         definitions, since that's the preferred style in glibc.
60011         Fix a minor spacing issue, and update copyright notice to match
60012         glibc's.
60013
60014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60017
60018 2005-09-06  Simon Josefsson  <jas@extundo.com>
60019
60020         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60021         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60022
60023 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60026         warning.
60027
60028 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60029
60030         * config/srclist.txt: Add glibc bug 1302.
60031
60032 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         Change bitset word type from unsigned int to unsigned long int,
60035         as this has better performance on typical 64-bit hosts.
60036         Port bitset code to hosts with unusual word sizes.
60037         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60038         (build_collating_symbol):
60039         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60040         argument is a bitset.  This is merely a style issue, but it makes
60041         it clearer that an entire array is expected.
60042         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60043         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60044         Port to the case where bitset_word is not the same as unsigned int.
60045         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60046         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60047         Likewise.
60048         * lib/regexec.c (check_dst_limits_calc_pos_1,
60049         check_subexp_matching_top):
60050         (build_trtable, group_nodes_into_DFAstates):
60051         Likewise.
60052         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60053         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60054         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60055         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60056         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60057         * lib/regcomp.c (optimize_subexps, lower_subexp):
60058         Work even if bitset_word has holes in its bitwise representation.
60059         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60060         * lib/regexec.c (check_dst_limits_calc_pos_1,
60061         check_subexp_matching_top):
60062         Likewise.
60063         * lib/regex_internal.c (re_string_reconstruct):
60064         Don't assume UCHAR_MAX == 255.
60065         * lib/regex_internal.h (bitset_set_all): Likewise.
60066         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60067         All uses changed.
60068         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60069         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60070         All uses changed.
60071         (BITSET_WORD_MAX): New macro.
60072         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60073         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60074         (bitset_empty, bitset_copy):
60075         Prefer sizeof (bitset) to multiplying it out ourselves.
60076         (bitset_not_merge): Remove; unused.
60077         (bitset_contain): Return bool, not unsigned int with one bit on.
60078         All callers changed.
60079         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60080         alignment than re_node_set; do this by defining a new internal
60081         type struct dests_alloc and using it to allocate memory.
60082
60083 2005-09-05  Bruno Haible  <bruno@clisp.org>
60084
60085         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60086         links.
60087
60088 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60089
60090         * modules/size_max (Makefile.am): Add size_max.h
60091
60092 2005-09-04  Derek Price  <derek@ximbiot.com>
60093
60094         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60095
60096 2005-09-03  Simon Josefsson  <jas@extundo.com>
60097
60098         * gnulib-tool: Fix typo.
60099
60100 2005-09-03  Simon Josefsson  <jas@extundo.com>
60101
60102         * config/srclist.txt: Add glibc bug 1293.
60103
60104 2005-09-03  Derek Price  <derek@ximbiot.com>
60105
60106         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60107         From Larry Jones <lawrence.jones@ugs.com>.
60108
60109 2005-09-02  Simon Josefsson  <jas@extundo.com>
60110
60111         * modules/socklen: New file.
60112
60113 2005-09-02  Simon Josefsson  <jas@extundo.com>
60114
60115         * modules/havelib: New module.
60116
60117         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60118         Use havelib.
60119
60120 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         Check for arithmetic overflow when calculating sizes, to prevent
60123         some buffer-overflow issues.  These patches are conservative, in the
60124         sense that when I couldn't determine whether an overflow was possible,
60125         I inserted a run-time check.
60126         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60127         macros.
60128         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60129         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60130         (re_xnrealloc, re_x2nrealloc): New inline functions.
60131         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60132         parse_bracket_exp):
60133         (build_equiv_class, build_charclass): Check for arithmetic overflow
60134         in size expression calculations.
60135         * lib/regex_internal.c (re_string_realloc_buffers):
60136         (build_wcs_upper_buffer, re_node_set_add_intersect):
60137         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60138         (re_dfa_add_node, register_state): Likewise.
60139         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60140         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60141         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60142         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60143
60144 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60147         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60148
60149 2005-09-02  Bruno Haible  <bruno@clisp.org>
60150
60151         Support for lib vs. lib64 distinction on biarch platforms.
60152         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60153         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60155
60156 2005-09-02  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (import): In the other first-use case, provide defaults
60159         as well.
60160
60161 2005-09-02  Bruno Haible  <bruno@clisp.org>
60162
60163         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60164         patches not yet found in the latest gettext release.
60165
60166 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60167
60168         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60169         to avoid a collision with bits/local_lim.h in glibc.
60170         All uses changed.  Problem reported by Dmitry V. Levin in
60171         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60172
60173         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60174         bugs in int versus size_t comparisons.
60175         (re_string_context_at): Fix bug where the code assumed that
60176         Idx is signed.
60177
60178         Use bool where appropriate.
60179         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60180         All callers changed.
60181         (calc_eclosure_iter): Likewise, for ROOT arg.
60182         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60183         (build_charclass_op): Likewise, for NON_MATCH arg.
60184         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60185         (re_string_construct_common): Likewise, for ICASE arg.
60186         * lib/regexec.c (re_search_2_stub, re_search_stub):
60187         Likewise, for RET_LEN arg.
60188         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60189         (set_regs): Likewise, for FL_BACKTRACK arg.
60190         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60191         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60192         (calc_eclosure_iter, parse_bracket_exp):
60193         Use bool for internal variables that are booleans.
60194         * lib/regexec.c (re_search_internal, check_matching,
60195         proceed_next_node):
60196         (set_regs, build_sifted_states, sift_states_bkref):
60197         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60198         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60199         (find_collation_sequence_value):
60200         Likewise.
60201         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60202         (re_node_set_compare):
60203         Return bool, not int. All callers changed.
60204         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60205         (build_trtable, check_node_accept): Likewise.
60206         * lib/regex_internal.h: Include stdbool.h.
60207
60208         Fix bugs uncovered when converting to bool.
60209         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60210         failure instead of charging ahead blindly.
60211         * lib/regex_internal.c (register_state): Likewise.
60212         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60213         for freeing internal storage.
60214         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60215         bitset pieces used as boolean, to avoid undefined behavior
60216         on hosts that do int overflow checking.
60217
60218 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * config/srclist.txt: Add glibc bugs 1285-1287.
60221
60222 2005-09-01  Jim Meyering  <jim@meyering.net>
60223
60224         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60225         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60226         Require gl_STAT_MACROS, too.
60227
60228 2005-09-01  Bruno Haible  <bruno@clisp.org>
60229
60230         * gnulib-tool (import): In the first-use case, provide defaults.
60231
60232 2005-09-01  Bruno Haible  <bruno@clisp.org>
60233
60234         * gnulib-tool (func_import): Remove the .tmp files.
60235
60236 2005-09-01  Bruno Haible  <bruno@clisp.org>
60237
60238         * gnulib-tool (func_import): Fix handling of symbolic links.
60239
60240 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60243         old glibc regex code mishandles strings longer than 2**31 bytes.
60244         This patch fixes this when the regex code is used in gnulib
60245         (i.e., outside glibc).
60246
60247         This patch should not affect the use of the regex code inside
60248         glibc.  No doubt this problem also needs to be handled for glibc
60249         as well, but the result will be an incompatible change to the
60250         glibc ABI, and the old ABI will have to be supported too.  That
60251         can be the the subject for another patch.
60252
60253         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60254         governing whether the rest of this patch is active.  By default,
60255         the macro is disabled and the patch has no effect.
60256         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60257         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60258         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60259         (re_match_2, re_set_registers): Use the new types.
60260         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60261         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60262         New macros.
60263         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60264         (re_string_context_at, bin_tree_t, re_dfastate_t):
60265         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60266         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60267         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60268         (re_string_char_size_at, re_string_wchar_at):
60269         (re_string_elem_size_at):
60270         Use the new types and macros to port to 64-bit hosts.
60271         Use unsigned types for internal values, so that the code
60272         mostly works even for arrays larger than SSIZE_MAX.
60273         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60274         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60275         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60276         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60277         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60278         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60279         (calc_inveclosure, parse_dup_op, build_range_exp):
60280         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60281         (fetch_number, create_token_tree, mark_opt_subexp):
60282         Likewise.
60283         * lib/regex_internal.c (re_string_construct_common,
60284         create_ci_newstate):
60285         (create_cd_newstate, re_string_allocate, re_string_construct):
60286         (re_string_realloc_buffers, build_wcs_upper_buffer):
60287         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60288         (re_string_reconstruct, re_string_peek_byte_case):
60289         (re_string_fetch_byte_case, re_string_context_at):
60290         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60291         (re_node_set_init_copy, re_node_set_add_intersect):
60292         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60293         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60294         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60295         (re_acquire_state, re_acquire_state_context, register_state):
60296         Likewise.
60297         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60298         search_cur_bkref_entry):
60299         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60300         (re_search_internal, re_search_2_stub, re_search_stub)
60301         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60302         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60303         (update_cur_sifted_state, check_dst_limits):
60304         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60305         (check_subexp_limits, sift_states_bkref, merge_state_array):
60306         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60307         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60308         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60309         (expand_bkref_cache, check_node_accept_bytes):
60310         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60311         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60312         (acquire_init_state_context, check_halt_node_context):
60313         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60314         (sift_states_backward, clean_state_log_if_needed):
60315         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60316         (find_recover_state, transit_state_sb, transit_state_mb):
60317         (transit_state_bkref, build_trtable, match_ctx_clean):
60318         Likewise.
60319         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60320         to work around an assumption that REG_MISSING is negative.
60321
60322         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60323         (seek_collating_symbol_entry) [defined _LIBC]:
60324         (lookup_collation_sequence_value) [defined _LIBC]:
60325         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60326         Use prototypes rather than old-style function definitions.
60327         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60328         (transit_state_sb) [0]:
60329         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60330
60331         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60332         rm_eo.
60333
60334         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60335         (optimize_subexps, lower_subexp):
60336         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60337         since the signed shift might overflow.  Use 1u<<31 instead.
60338         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60339         Likewise.
60340         * lib/regexec.c (check_dst_limits_calc_pos_1,
60341         check_subexp_matching_top): Likewise.
60342
60343         * lib/regcomp.c (optimize_subexps, lower_subexp):
60344         Use CHAR_BIT rather than 8, for clarity.
60345         * lib/regexec.c (check_dst_limits_calc_pos_1):
60346         (check_subexp_matching_top): Likewise.
60347         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60348         have to worry about portability issues when shifting it left.
60349         Remove no-longer-needed test for table_size > 0.
60350         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60351         in a word, as the resulting behavior is undefined.
60352         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60353         in one case, a <= should have been an <, and in another case the
60354         whole test was missing.
60355         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60356         the standard name CHAR_BIT.
60357         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60358         this is not true on one's complement and signed-magnitude hosts.
60359
60360         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60361         next_last_offset.
60362         (struct re_dfa_t): Remove unused member states_alloc.
60363         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60364
60365 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60368         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60369         and large-file glibc and in 32-bit large-file Solaris.
60370
60371 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60372
60373         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60374         lengths fit in regoff_t; this isn't true if regoff_t is the same
60375         width as size_t.
60376         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60377         (= START + RANGE) instead of RANGE.  This avoids overflow
60378         problems when regoff_t is the same width as size_t.
60379         All callers changed.
60380         (re_search_2_stub): Check for overflow when adding the
60381         sizes of the two strings.
60382         (re_search_stub): Check for overflow when adding START
60383         to RANGE; if it occurs, substitute the extreme value.
60384
60385 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60388
60389 2005-08-31  Jim Meyering  <jim@meyering.net>
60390
60391         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60392         a pointer-to-const.
60393         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60394         (register_state): Likewise.
60395         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60396         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60397         (group_nodes_into_DFAstates): Likewise.
60398
60399 2005-08-31  Jim Meyering  <jim@meyering.net>
60400
60401         * check-module: Add a FIXME comment.
60402
60403 2005-08-31  Eric Blake  <ebb9@byu.net>
60404
60405         * modules/unistd-safer (Files): Add unistd--.h.
60406         * modules/stdio-safer (Files): Add stdio--.h.
60407
60408 2005-08-31  Derek Price  <derek@ximbiot.com>
60409
60410         * lib/getdelim.c (getdelim): Return EOF on EOF.
60411         Reported by Larry Jones <lawrence.jones@ugs.com>.
60412
60413 2005-08-31  Bruno Haible  <bruno@clisp.org>
60414
60415         Avoid unnecessary diffs in the generated lib/Makefile.am.
60416         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60417         the generated files.
60418         (func_import): Don't set cmd.
60419
60420 2005-08-31  Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/strstr.c: Include <stddef.h>, for NULL.
60423         * lib/strcasestr.c: Likewise.
60424         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60425
60426 2005-08-31  Bruno Haible  <bruno@clisp.org>
60427
60428         * gnulib-tool: New option --macro-prefix.
60429         (func_import): Use macro_prefix.
60430         (import): Handle option --macro-prefix.
60431
60432 2005-08-31  Bruno Haible  <bruno@clisp.org>
60433
60434         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60435         Also use new variables cached_lgpl, cached_libtool.
60436
60437 2005-08-31  Bruno Haible  <bruno@clisp.org>
60438
60439         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60440         always instantiating them.
60441
60442 2005-08-31  Bruno Haible  <bruno@clisp.org>
60443
60444         * gnulib-tool (func_import): Read the previous cached settings
60445         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60446         earlier added by gnulib but are now dropped. Warn when a gnulib file
60447         overwrites a non-gnulib file.
60448
60449 2005-08-31  Bruno Haible  <bruno@clisp.org>
60450
60451         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60452         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60453         projects that don't keep autogenerated files in CVS. Put into
60454         actioncmd only the specified modules, not the transitive closure.
60455
60456 2005-08-31  Bruno Haible  <bruno@clisp.org>
60457
60458         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60459         Create directories that shall be filled.
60460         (import): Don't look for gl_* macros in configure.ac. Recurse across
60461         all directories containing a gnulib-cache.m4 files, if meaningful.
60462
60463 2005-08-31  Bruno Haible  <bruno@clisp.org>
60464
60465         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60466         (import): Set seen_libtool when we see gl_LIBTOOL.
60467
60468 2005-08-31  Bruno Haible  <bruno@clisp.org>
60469
60470         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60471         declaration macro definitions from generated gnulib.m4.
60472
60473 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60474
60475         * lib/iconvme.h: Add prototype for iconv_alloc.
60476
60477 2005-08-29  Simon Josefsson  <jas@extundo.com>
60478
60479         * lib/iconvme.c: Fix errno.
60480
60481 2005-08-29  Bruno Haible  <bruno@clisp.org>
60482
60483         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60484         that it works when the directory contains spaces.
60485
60486 2005-08-29  Bruno Haible  <bruno@clisp.org>
60487
60488         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60489
60490 2005-08-29  Bruno Haible  <bruno@clisp.org>
60491
60492         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60493         Emit more advice.
60494
60495 2005-08-29  Bruno Haible  <bruno@clisp.org>
60496         and Stepan Kasal  <kasal@ucw.cz>
60497
60498         * check-module: If more parameters are given, check each of them
60499         separately; add more exceptions, as noted by Jim Meyering.
60500         (check_module): New procedure.
60501         (%exempt_header): Now contains all exceptions.
60502
60503 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60504
60505         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60506
60507 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60508
60509         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60510
60511 2005-08-28  Bruno Haible  <bruno@clisp.org>
60512
60513         * m4/gnulib-tool.m4: New file.
60514
60515 2005-08-27  Jim Meyering  <jim@meyering.net>
60516
60517         * modules/unistd-safer (Files): Add pipe-safer.c.
60518         * modules/fcntl-safer (Files): Add creat-safer.c.
60519
60520 2005-08-27  Jim Meyering  <jim@meyering.net>
60521
60522         * m4/stdlib-safer.m4: New file.  From coreutils.
60523         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60524         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60525         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60526         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60527         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60528
60529 2005-08-27  Jim Meyering  <jim@meyering.net>
60530
60531         * lib/fopen-safer.c: Merge minor changes from coreutils.
60532         * lib/dup-safer.c: Likewise.
60533         * lib/fd-safer.c: Likewise.
60534
60535         Merge from coreutils.
60536         * lib/stdio--.h: New file.
60537         * lib/stdlib--.h: New file.
60538         * lib/mkstemp-safer.c: New file.
60539
60540         GNU tar needs these.
60541         * lib/pipe-safer.c: New file.
60542         * lib/creat-safer.c: New file.
60543         * lib/fcntl--.h (creat): Define to creat_safer.
60544         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60545         * lib/unistd--.h (pipe): Define to pipe_safer.
60546         * lib/unistd-safer.h: Declare pipe_safer.
60547
60548 2005-08-26  Simon Josefsson  <jas@extundo.com>
60549
60550         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60551         Haible <bruno@clisp.org>.
60552
60553 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60554
60555         * lib/regex_internal.h: Remove all references to
60556         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60557         or better.
60558         (bitset_not, bitset_merge, bitset_not_merge):
60559         (bitset_mask, re_string_allocate, re_string_construct):
60560         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60561         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60562         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60563         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60564         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60565         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60566         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60567         (re_acquire_state_context):
60568         Remove unnecessary forward decls.
60569         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60570         Put __attribute at function definition,
60571         now that the function decl has been removed.
60572         * lib/regex_internal.c (re_string_peek_byte_case):
60573         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60574         Likewise.
60575
60576 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60577
60578         * m4/regex.m4: Add AC_PREREQ(2.50).
60579         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60580
60581 2005-08-25  Simon Josefsson  <jas@extundo.com>
60582
60583         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60584         __fsetlocking.
60585
60586 2005-08-25  Simon Josefsson  <jas@extundo.com>
60587
60588         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60589         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60590         GLIBC specific code.
60591
60592 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         Make regex safe for g++.  This fixes one real bug (an "err"
60595         that should have been "*err").  g++ problem reported by
60596         Sam Steingold.
60597         * lib/regex_internal.h (re_calloc): New macro, consistent with
60598         re_malloc etc.  All callers of calloc changed to use re_calloc.
60599         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60600         not int.  All callers changed.
60601         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60602         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60603         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60604         (find_recover_state): Change "err" to "*err"; this fixes what
60605         appears to be a real bug.
60606         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60607         versus int.
60608
60609 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60610
60611         * modules/regex (Depends-on): Add malloc, since the code
60612         assumes that !malloc(0) means failure.
60613
60614 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60617
60618         alloca modernization/simplification for regex.
60619         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60620         needs to be at the start of the file, and can be moved into
60621         regex_internal.h and simplified.
60622         * lib/regex_internal.h: Include <alloca.h>.
60623         (__libc_use_alloca) [!defined _LIBC]: New macro.
60624         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60625         now works outside glibc.
60626
60627 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * config/srclist.txt: Add glibc bugs 1241, 1245.
60630
60631 2005-08-25  Jim Meyering  <jim@meyering.net>
60632
60633         * lib/open-safer.c: Include <config.h>.
60634         Otherwise, we'd lose LARGEFILE support in any file using
60635         e.g. "fcntl--.h"
60636
60637 2005-08-25  Bruno Haible  <bruno@clisp.org>
60638
60639         * m4/minmax.m4: Require autoconf 2.52.
60640         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60641         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60642         alternatives of translit over the alphabet.
60643         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60644
60645 2005-08-24  Simon Josefsson  <jas@extundo.com>
60646
60647         * tests/test-getpass.c: New file.
60648
60649 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60650
60651         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60652         for GNU regex features.
60653
60654 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60657         * lib/regex.h (regerror): Likewise.
60658
60659         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60660         requires this.  (The code never needed it.)
60661
60662         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60663         All uses of recently-renamed identifiers changed to use the new,
60664         POSIX-compliant names.  The code will build and run just fine
60665         without these changes, but it's better to eat our own dog food
60666         and use the standard-conforming names.
60667
60668         * lib/regex.h: Fix a multitude of POSIX name space violations.
60669         These changes have an effect only for programs that define
60670         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60671         do not change anything for programs compiled in the normal way.
60672         Also, there is no effect on the ABI.
60673
60674         (_REGEX_SOURCE): New macro.
60675         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60676         defined and _GNU_SOURCE is not; this fixes a name space violation.
60677
60678         Rename the following macros to obey POSIX requirements.
60679         The old names are still visible as macros if _REGEX_SOURCE is defined.
60680         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60681         RE_BACKSLASH_ESCAPE_IN_LISTS.
60682         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60683         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60684         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60685         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60686         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60687         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60688         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60689         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60690         (REG_INTERVALS): renamed from RE_INTERVALS.
60691         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60692         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60693         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60694         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60695         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60696         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60697         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60698         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60699         RE_UNMATCHED_RIGHT_PAREN_ORD.
60700         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60701         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60702         (REG_DEBUG): renamed from RE_DEBUG.
60703         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60704         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60705         unusual, since we can't clash with the POSIX REG_ICASE.
60706         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60707         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60708         (REG_NO_SUB): renamed from RE_NO_SUB.
60709         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60710         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60711         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60712         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60713         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60714         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60715         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60716         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60717         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60718         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60719         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60720         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60721         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60722         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60723         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60724         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60725         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60726         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60727         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60728         (REG_FIXED): Renamed from REGS_FIXED.
60729         (REG_NREGS): Renamed from RE_NREGS.
60730
60731         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60732         of other REG_* macros, since POSIX says the user is allowed to
60733         #undef these macros selectively.
60734
60735         (reg_errcode_t): Update comment stating what other tables need
60736         to be consistent.
60737
60738         Rename the following enum values to obey POSIX requirements.
60739         The old names are still visible as macros.
60740         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60741         is not defined, since GNU is supposed to be a superset of POSIX as
60742         much as possible, and since we want reg_errcode_t to be a signed
60743         type for implementation consistency.
60744         (_REG_NOERROR): Renamed from REG_NOERROR.
60745         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60746         (_REG_BADPAT): Renamed from REG_BADPAT.
60747         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60748         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60749         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60750         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60751         (_REG_EBRACK): Renamed from REG_EBRACK.
60752         (_REG_EPAREN): Renamed from REG_EPAREN.
60753         (_REG_EBRACE): Renamed from REG_EBRACE.
60754         (_REG_BADBR): Renamed from REG_BADBR.
60755         (_REG_ERANGE): Renamed from REG_ERANGE.
60756         (_REG_ESPACE): Renamed from REG_ESPACE.
60757         (_REG_BADRPT): Renamed from REG_BADRPT.
60758         (_REG_EEND): Renamed from REG_EEND.
60759         (_REG_ESIZE): Renamed from REG_ESIZE.
60760         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60761         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60762         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60763         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60764         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60765
60766         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60767         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60768         changed.  But support the old name if the new one is not defined
60769         and if _REGEX_SOURCE.
60770
60771         Change the following member names in struct re_pattern_buffer.
60772         The old names are still supported if !_REGEX_SOURCE.
60773         The new names are always supported, regardless of _REGEX_SOURCE.
60774         (re_buffer): Renamed from buffer.
60775         (re_allocated): Renamed from allocated.
60776         (re_used): Renamed from used.
60777         (re_syntax): Renamed from syntax.
60778         (re_fastmap): Renamed from fastmap.
60779         (re_translate): Renamed from translate.
60780         (re_can_be_null): Renamed from can_be_null.
60781         (re_regs_allocated): Renamed from regs_allocated.
60782         (re_fastmap_accurate): Renamed from fastmap_accurate.
60783         (re_no_sub): Renamed from no_sub.
60784         (re_not_bol): Renamed from not_bol.
60785         (re_not_eol): Renamed from not_eol.
60786         (re_newline_anchor): Renamed from newline_anchor.
60787
60788         Change the following member names in struct re_registers.
60789         The old names are still supported if !_REGEX_SOURCE.
60790         The new names are always supported, regardless of _REGEX_SOURCE.
60791         (rm_num_regs): Renamed from num_regs.
60792         (rm_start): Renamed from start.
60793         (rm_end): Renamed from end.
60794
60795         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60796         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60797         Prepend __ to parameter names.
60798
60799         Undo yesterday's changes.
60800
60801 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60802
60803         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60804         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60805         lib/regex.c.
60806
60807 2005-08-24  Jim Meyering  <jim@meyering.net>
60808
60809         Sync from coreutils.
60810         * m4/fcntl-safer.m4: New file.
60811
60812         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60813         and object files for this module.
60814
60815 2005-08-24  Jim Meyering  <jim@meyering.net>
60816
60817         Sync from coreutils.
60818         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60819
60820 2005-08-24  Jim Meyering  <jim@meyering.net>
60821
60822         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60823         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60824
60825 2005-08-24  Jim Meyering  <jim@meyering.net>
60826
60827         * modules/fcntl-safer: New module.
60828         * modules/fts (Depends-on): Add fcntl-safer.
60829         * MODULES.html.sh (File descriptor based Input/Output):
60830         Add fcntl-safer.
60831
60832 2005-08-24  Bruno Haible  <bruno@clisp.org>
60833
60834         Support for unit test modules.
60835         * modules/README: Mention tests modules.
60836         * modules/TEMPLATE-TESTS: New file.
60837         * gnulib-tool: New options --extract-tests-module, --with-tests and
60838         --tests-base (unused for the moment).
60839         (testsbase, inctests): New variables.
60840         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60841         (func_verify_module): Exclude TEMPLATE-TESTS.
60842         (func_verify_nontests_module, func_verify_tests_module): New functions.
60843         (func_get_dependencies): Add implicit dependency for tests modules.
60844         (func_get_tests_module): New function.
60845         (func_modules_transitive_closure): When --with-tests was specified,
60846         include the unit tests as well, unless explicitly avoided.
60847         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60848         (func_emit_tests_Makefile_am): New function.
60849         (func_create_testdir): When --with-tests was specified, emit a
60850         tests/ directory.
60851         * MODULES.html.sh (Future developments): Update.
60852
60853 2005-08-24  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/tls-tests: New file.
60856         * tests/test-tls.c: New file, from GNU gettext.
60857
60858 2005-08-24  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/lock-tests: New file.
60861         * tests/test-lock.c: New file, from GNU gettext.
60862
60863 2005-08-24  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/lock.h: Add multiple inclusion guard.
60866         * lib/tls.h: Add multiple inclusion guard.
60867
60868 2005-08-24  Bruno Haible  <bruno@clisp.org>
60869
60870         * gnulib-tool: Add support for the --aux-dir option to
60871         --create-testdir, --create-megatestdir, --test, --megatest.
60872         (func_create_testdir, func_create_megatestdir): Optionally emit a
60873         AC_CONFIG_AUX_DIR directive.
60874         (create-testdir, create-megatestdir, test, megatest): Provide a
60875         default value for $auxdir.
60876
60877 2005-08-24  Bruno Haible  <bruno@clisp.org>
60878
60879         * gnulib-tool (import): Use compound statement instead of subshell
60880         where possible.
60881
60882 2005-08-24  Bruno Haible  <bruno@clisp.org>
60883
60884         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60885
60886 2005-08-24  Bruno Haible  <bruno@clisp.org>
60887
60888         * gnulib-tool (func_version): Update.
60889
60890 2005-08-24  Bruno Haible  <bruno@clisp.org>
60891
60892         * gnulib-tool (func_import, func_create_testdir,
60893         func_create_megatestdir): Quote all autoconf macro arguments.
60894
60895 2005-08-24  Bruno Haible  <bruno@clisp.org>
60896
60897         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60898         option --force, because --force causes the aclocal.m4 of each
60899         subdirectory to be newer than the corresponding config.h.in.
60900
60901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60904         All contents moved to gl_REGEX.
60905         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60906         assume that it does.
60907
60908 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * lib/regex.h (REG_NOSYS)
60911         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60912         Define, since POSIX requires it as of 2001.
60913         (_REG_ENOSYS)
60914         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60915         New private symbol, used to keep the enum signed in all cases.
60916         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60917         Youngman in
60918         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60919
60920         * lib/regex_internal.c (re_string_skip_chars, register_state):
60921         (calc_state_hash):
60922         Remove forward decls; no longer needed now that we use prototypes.
60923         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60924         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60925         (clean_state_log_if_needed): Likewise.
60926
60927 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * config/srclist.txt: Add glibc bugs 1231-1233.
60930
60931 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         Fix problems reported by Sam Steingold in
60934         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60935         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60936         assumed that reg_errcode_t is a signed type, which is not
60937         necessarily true if _XOPEN_SOURCE is not defined.
60938         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60939         since some compilers warn about it otherwise.
60940
60941 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60944         (init_word_char, create_initial_state, duplicate_node_closure):
60945         (fetch_token, peek_token_bracket, build_range_exp):
60946         (build_collating_symbol): Remove forward decls; no longer needed
60947         now that we use prototypes.
60948
60949         * lib/regcomp.c:
60950         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60951         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60952         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60953         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60954         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60955         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60956         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60957         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60958         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60959         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60960         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60961         (build_charclass, build_charclass_op, fetch_number, create_tree):
60962         (create_token_tree, mark_opt_subexp, duplicate_tree):
60963         Use prototypes rather than old-style definitions.
60964
60965         * lib/regex_internal.c:
60966         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60967         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60968         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60969         (re_string_reconstruct, re_string_peek_byte_case):
60970         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60971         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60972         (re_node_set_init_copy, re_node_set_add_intersect):
60973         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60974         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60975         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60976         (re_acquire_state, re_acquire_state_context, register_state):
60977         (create_ci_newstate, create_cd_newstate, free_state):
60978         Likewise.
60979         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60980         re_search_2):
60981         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60982         (re_search_internal, prune_impossible_nodes):
60983         (acquire_init_state_context, check_matching, static):
60984         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60985         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60986         (update_regs, sift_states_backward, build_sifted_states):
60987         (clean_state_log_if_needed, merge_state_array):
60988         (update_cur_sifted_state, add_epsilon_src_nodes):
60989         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60990         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60991         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60992         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60993         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60994         (check_arrival, check_arrival_add_next_nodes):
60995         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60996         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60997         (check_node_accept_bytes, check_node_accept, extend_buffers):
60998         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60999         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61000         (sift_ctx_init):
61001         Likewise.
61002
61003         * lib/regex_internal.h:
61004         (re_string_allocate, re_string_construct, re_string_reconstruct):
61005         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61006         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61007         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61008         (re_string_context_at, re_string_peek_byte_case):
61009         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61010         is defined, since we now use prototypes always.
61011
61012         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61013         C89 or better.  All uses removed.
61014
61015 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * config/srclist.txt: Add glibc bugs 1220-1227.
61018
61019 2005-08-20  Jim Meyering  <jim@meyering.net>
61020
61021         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61022         of unused local, dfa.
61023
61024 2005-08-20  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61027
61028 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61031         (re_node_set_insert_last, re_dfa_add_node):
61032         Rename local variables to avoid GCC shadowing warnings.
61033
61034 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61037         [defined lint]: Suppress bogus uninitialized-variable warnings.
61038
61039         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61040         and let the caller return REG_ESPACE if out of space.  This
61041         removes an uninitialied-variable warning with GCC 4.0.1, and also
61042         avoids taking the address of a local variable.  All callers
61043         changed.
61044
61045 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61048         $LIBCSRC/posix/regexec.c.
61049         Add glibc bug 1217 for regcomp.c.
61050
61051 2005-08-19  Jim Meyering  <jim@meyering.net>
61052
61053         * lib/regexec.c (proceed_next_node): Redo local variables to
61054         avoid GCC shadowing warnings.
61055
61056 2005-08-18  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/strstr.c (strstr): Fix return value in multibyte case.
61059         * lib/strcasestr.c (strcasestr): Likewise.
61060
61061 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61062
61063         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61064
61065 2005-08-17  Jim Meyering  <jim@meyering.net>
61066
61067         Make the %s format (seconds since the epoch) work for a negative
61068         number and when used with a zero-padded field width, e.g. %015s.
61069
61070         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61071         label so that it precedes the code to set `digits'.  Otherwise,
61072         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61073         print `00-22'.  Now, it prints `-0022', as it should.
61074
61075 2005-08-17  Bruno Haible  <bruno@clisp.org>
61076
61077         * modules/strstr (Files): Add m4/mbrtowc.m4.
61078         (Depends-on): Add mbuiter.
61079
61080 2005-08-17  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/strcasestr: New file.
61083         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61084         strcasestr.
61085
61086 2005-08-17  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61089
61090 2005-08-17  Bruno Haible  <bruno@clisp.org>
61091
61092         * modules/mbuiter: New file.
61093         * MODULES.html.sh (Extended multibyte and wide character utilities):
61094         Add mbuiter.
61095
61096 2005-08-17  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61099         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61100
61101 2005-08-17  Bruno Haible  <bruno@clisp.org>
61102
61103         * m4/strcasestr.m4: New file.
61104
61105 2005-08-17  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61108         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61109
61110 2005-08-17  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/strcasestr.h: New file.
61113         * lib/strcasestr.c: New file.
61114
61115 2005-08-17  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/strcasecmp.c: Use mbuiter.h.
61118
61119 2005-08-17  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/mbuiter.h: New file.
61122
61123 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61126         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61127         and gl_GETOPT are both invoked via different paths (as happens
61128         with GNU tar CVS because it uses both argp and getopt), the former
61129         wins.
61130
61131 2005-08-16  Bruno Haible  <bruno@clisp.org>
61132
61133         * modules/tls: New file.
61134         * MODULES.html.sh (Multithreading): Add tls.
61135
61136 2005-08-16  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/strnlen1: New file.
61139         * MODULES.html.sh (String handling): Add strnlen1.
61140
61141 2005-08-16  Bruno Haible  <bruno@clisp.org>
61142
61143         * modules/strcase (Files): Add m4/mbrtowc.m4.
61144         (Depends-on): Add strnlen1, mbchar.
61145
61146 2005-08-16  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/mbiter: New file.
61149         * MODULES.html.sh (Extended multibyte and wide character utilities):
61150         Add mbiter.
61151
61152 2005-08-16  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/mbfile: New file.
61155         * MODULES.html.sh (Extended multibyte and wide character utilities):
61156         Add mbfile.
61157
61158 2005-08-16  Bruno Haible  <bruno@clisp.org>
61159
61160         * modules/mbchar: New file.
61161         * MODULES.html.sh (Extended multibyte and wide character utilities):
61162         New section.
61163
61164 2005-08-16  Bruno Haible  <bruno@clisp.org>
61165
61166         * m4/tls.m4: New file, from GNU gettext.
61167
61168 2005-08-16  Bruno Haible  <bruno@clisp.org>
61169
61170         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61171         always.
61172         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61173
61174 2005-08-16  Bruno Haible  <bruno@clisp.org>
61175
61176         * m4/mbiter.m4: New file.
61177
61178 2005-08-16  Bruno Haible  <bruno@clisp.org>
61179
61180         * m4/mbfile.m4: New file.
61181
61182 2005-08-16  Bruno Haible  <bruno@clisp.org>
61183
61184         * m4/mbchar.m4: New file.
61185
61186 2005-08-16  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/tls.h: New file, from GNU gettext.
61189         * lib/tls.c: New file, from GNU gettext.
61190
61191 2005-08-16  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/strnlen1.h: New file.
61194         * lib/strnlen1.c: New file.
61195
61196 2005-08-16  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61199         (mbi_init): Update.
61200         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61201         NUL byte, not after it.
61202
61203 2005-08-16  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/strcase.h (strcasecmp): Add note in comments.
61206         * lib/strncasecmp.c: Use code from strcasecmp.c.
61207         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61208         (strcasecmp): Work correctly in multibyte locales.
61209
61210 2005-08-16  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/mbiter.h: New file.
61213
61214 2005-08-16  Bruno Haible  <bruno@clisp.org>
61215
61216         * lib/mbfile.h: New file.
61217
61218 2005-08-16  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/mbchar.h: New file.
61221         * lib/mbchar.c: New file.
61222
61223 2005-08-16  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61226         the valid ones. Makes the comparison operations transitive:
61227         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61228         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61229
61230 2005-08-15  Simon Josefsson  <jas@extundo.com>
61231
61232         * modules/ssize_t (License): Change to 'unlimited'.
61233
61234         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61235
61236 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61237
61238         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61239         Add comments for each pending glibc patch.
61240
61241 2005-08-15  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61244         __cplusplus is defined.
61245
61246 2005-08-14  Jim Meyering  <jim@meyering.net>
61247
61248         Sync from coreutils.
61249
61250         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61251         Use the hash-table-based cycle-detection code not just when
61252         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61253         Reported by James Youngman in
61254         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61255         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61256         FTS_TIGHT_CYCLE_CHECK.
61257         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61258         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61259         once again.
61260         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61261         * lib/fts.c (fd_safer): Remove decl.
61262         Include fcntl--.h rather than unistd-safer.h
61263         (fts_safe_changedir): Don't call fd_safer; no longer needed
61264         now that we include fcntl--.h.
61265
61266 2005-08-12  Simon Josefsson  <jas@extundo.com>
61267
61268         * modules/getndelim2: Use ssize_t module.
61269         * modules/getnline: Likewise.
61270         * modules/safe-read: Likewise.
61271         * modules/xreadlink: Likewise.
61272
61273         * modules/ssize_t: New file.
61274
61275 2005-08-12  Simon Josefsson  <jas@extundo.com>
61276
61277         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61278
61279 2005-08-12  Simon Josefsson  <jas@extundo.com>
61280
61281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61282         ssize_t.
61283
61284 2005-08-12  Simon Josefsson  <jas@extundo.com>
61285
61286         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61287         readline, getdelim and check_version.
61288         (Support for systems lacking ISO C 99: Sizes of integer types):
61289         Add size_max.
61290
61291 2005-08-12  Bruno Haible  <bruno@clisp.org>
61292
61293         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61294
61295 2005-08-11  Simon Josefsson  <jas@extundo.com>
61296
61297         * modules/readline: New file.
61298
61299         * modules/strnlen (Files): Add strnlen.h.
61300
61301 2005-08-11  Simon Josefsson  <jas@extundo.com>
61302
61303         * m4/readline.m4: New file.
61304
61305 2005-08-11  Simon Josefsson  <jas@extundo.com>
61306
61307         * lib/readline.h, readline.c: New file.
61308
61309 2005-08-11  Simon Josefsson  <jas@extundo.com>
61310
61311         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61312         gl_AVOID.
61313
61314 2005-08-11  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61317
61318 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61319
61320         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61321
61322 2005-08-10  Simon Josefsson  <jas@extundo.com>
61323
61324         * tests/test-iconvme.c: New file.
61325
61326 2005-08-10  Simon Josefsson  <jas@extundo.com>
61327
61328         * m4/strnlen.m4: New file.
61329
61330         * m4/strndup.m4: Don't check for strnlen declaration, done in
61331         strnlen.m4.
61332
61333 2005-08-10  Simon Josefsson  <jas@extundo.com>
61334
61335         * lib/strndup.c: Use strnlen.h.
61336
61337         * lib/strnlen.h: New file.
61338
61339 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61340
61341         * README: Typos.
61342
61343 2005-08-02  Simon Josefsson  <jas@extundo.com>
61344
61345         * modules/readline: New file.
61346
61347 2005-08-02  Simon Josefsson  <jas@extundo.com>
61348
61349         * modules/getdelim: New file.
61350
61351         * modules/getline: Rewrite, don't use getndelim2.
61352
61353 2005-08-02  Simon Josefsson  <jas@extundo.com>
61354
61355         * m4/getline.m4: Separate out getdelim stuff into separate module.
61356
61357         * m4/getdelim.m4: New file.
61358
61359 2005-08-02  Simon Josefsson  <jas@extundo.com>
61360
61361         * lib/getline.h, getline.c: Rewrite.
61362
61363         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61364
61365 2005-07-31  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/lock.h (gl_lock_initializer): New macro.
61368         (gl_lock_define_initialized): Use it.
61369         (gl_rwlock_initializer): New macro.
61370         (gl_rwlock_define_initialized): Use it.
61371         (gl_recursive_lock_initializer): New macro.
61372         (gl_recursive_lock_define_initialized): Use it.
61373
61374 2005-07-30  Karl Berry  <karl@gnu.org>
61375
61376         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61377         Report from Ben Pfaff, regarding getopt.
61378
61379 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61382         normal way.
61383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61384         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61385         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61386         (gl_GETOPT): Use the new macros.  Most of the implementation
61387         is moved to the new macros.  This is for programs like Emacs
61388         that don't want all the functionality of gl_GETOPT.
61389
61390 2005-07-26  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/lock.m4: Update from GNU gettext.
61393
61394 2005-07-26  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/lock.h: Update from GNU gettext.
61397         * lib/lock.c: Update from GNU gettext.
61398
61399 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61402         obsolescent AC_TRY_RUN.  Include the default includes files, for
61403         'exit'.
61404
61405 2005-07-24  Bruno Haible  <bruno@clisp.org>
61406
61407         * modules/visibility: New file.
61408         * MODULES.html.sh (Misc): Add visibility.
61409
61410 2005-07-24  Bruno Haible  <bruno@clisp.org>
61411
61412         * m4/visibility.m4: New file.
61413
61414 2005-07-24  Bruno Haible  <bruno@clisp.org>
61415
61416         * doc/visibility.texi: New file.
61417
61418 2005-07-22  Bruno Haible  <bruno@clisp.org>
61419
61420         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61421         $(ALLOCA_H), redundant through BUILT_SOURCES.
61422         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61423         redundant through BUILT_SOURCES.
61424         * modules/byteswap (Makefile.am): Remove explicit dependency on
61425         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61426         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61427         $(FNMATCH_H), redundant through BUILT_SOURCES.
61428         * modules/getopt (Makefile.am): Remove explicit dependency on
61429         $(GETOPT_H), redundant through BUILT_SOURCES.
61430         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61431         redundant through BUILT_SOURCES.
61432         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61433         redundant through BUILT_SOURCES.
61434         * modules/stdbool (Makefile.am): Remove explicit dependency on
61435         $(STDBOOL_H), redundant through BUILT_SOURCES.
61436         * modules/stdint (Makefile.am): Remove explicit dependency on
61437         $(STDINT_H), redundant through BUILT_SOURCES.
61438         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61439         Remove explicit dependency on $(SYSEXITS_H).
61440         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61441
61442 2005-07-18  Simon Josefsson  <jas@extundo.com>
61443
61444         * lib/check-version.c (check_version): Accept identical versions too.
61445
61446 2005-07-18  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/lock: New file.
61449         * MODULES.html.sh (Multithreading): New section.
61450
61451 2005-07-18  Bruno Haible  <bruno@clisp.org>
61452
61453         * m4/lock.m4: New file, from GNU gettext.
61454
61455 2005-07-18  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/lock.h: New file, from GNU gettext.
61458         * lib/lock.c: New file, from GNU gettext.
61459
61460 2005-07-18  Bruno Haible  <bruno@clisp.org>
61461
61462         * lib/lock.h (gl_once_t): New type.
61463         (gl_once_define, gl_once): New macros.
61464         * lib/lock.c (fresh_once): New variable.
61465         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61466         functions.
61467
61468 2005-07-16  Simon Josefsson  <jas@extundo.com>
61469
61470         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61471         workaround, suggested by Bruno.
61472
61473 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * modules/xalloc (Depends-on): Add xalloc-die.
61476         * modules/xvasprintf (Depends-on): Add xalloc-die.
61477
61478 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61481         with a minor change.
61482
61483 2005-07-15  Bruno Haible  <bruno@clisp.org>
61484
61485         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61486         When using lib/poll.c, define poll as rpl_poll.
61487
61488 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * modules/argp (Depends-on): Remove unlocked-io.
61491
61492 2005-07-14  Derek Price  <derek@ximbiot.com>
61493
61494         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61495         for glob symlink bug.
61496
61497 2005-07-14  Bruno Haible  <bruno@clisp.org>
61498
61499         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61500         Instead, test for *_unlocked function declarations directly.
61501
61502 2005-07-11  Simon Josefsson  <jas@extundo.com>
61503
61504         * modules/size_max: New file.
61505
61506         * modules/xsize: Depend on size_max module for size_max.m4.
61507
61508 2005-07-11  Simon Josefsson  <jas@extundo.com>
61509
61510         * lib/size_max.h: New file.
61511
61512 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61513
61514         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61515         copyright symbol and the year.
61516         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61517         (version_etc_va): Use parameterized copyright notice.
61518         Reword to conform to the current GNU coding standards.
61519
61520 2005-07-11  Karl Berry  <karl@gnu.org>
61521
61522         * doc/gnulib.texi (Quoting): new node.
61523         (Initial import): more info, from Patrice.
61524
61525 2005-07-11  Bruno Haible  <bruno@clisp.org>
61526
61527         * gnulib-tool (func_usage): Document option --avoid.
61528         (Command line options): Handle --avoid.
61529         (func_acceptable): New function.
61530         (func_modules_transitive_closure): Use it.
61531
61532 2005-07-11  Bruno Haible  <bruno@clisp.org>
61533
61534         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61535         Reported by Jim Meyering.
61536
61537 2005-07-10  Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61540         Needed when size_t is smaller than 'unsigned int'.
61541         Reported by Paul Eggert.
61542
61543 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61544
61545         * modules/argp (Depends-on): Add unlocked-io
61546
61547 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61548
61549         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61550         block of defines.
61551
61552 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61555         fix now.
61556
61557 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61558         and Paul Eggert  <eggert@cs.ucla.edu>
61559
61560         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61561         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61562
61563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         * modules/regex (Files): Add lib/regex_internal.c,
61566         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61567         (Depends-on): Add extensions.
61568         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61569
61570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61573         pathconf.
61574         * m4/same.m4 (gl_SAME): Likewise.
61575         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61576
61577         * m4/regex.m4: Adjust to new libc regex implementation.
61578         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61579         all the .c and .h parts of (the new) regex.
61580         Quote the m4 stuff better.
61581         Check for RE_ICASE bug of old gnulib.
61582         Check for REG_STARTEND of recent libc.
61583         Rename local variables from jm_* to gl_*.
61584         Quote operand of "test -f".
61585         Say "recent enough" version of libc, not "version 2".
61586         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61587         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61588         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61589         Remove check for btowc, isascii.
61590         Require AM_LANGINFO_CODESET.
61591
61592 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61593
61594         * lib/regex.c, regex.h: Sync from libc.
61595         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61596         * lib/regexec.c:
61597         New files, synced from libc, except that regex_internal.h
61598         currently has a small porting fix.
61599
61600 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61603         regex_internal.c, regexec.c.
61604         Add regex_internal.h too, but as a comment, since the libc version
61605         is currently broken in gnulib mode.
61606
61607 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         Support programs like Emacs that use gnulib but not gettext.
61610         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61611         * modules/gettext-h: New file.
61612         * modules/gettext (Files): Remove lib/gettext.h.
61613         (Depends-on): Add gettext-h.
61614         (Makefile.am): Remove lib_SOURCES.
61615         * modules/argmatch, modules/c-stack, modules/closeout:
61616         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61617         * modules/execute, modules/file-type, modules/getaddrinfo:
61618         * modules/getopt, modules/human, modules/javacomp:
61619         * modules/javaexec, modules/mkdir-p, modules/obstack:
61620         * modules/openat, modules/pagealign_alloc, modules/pipe:
61621         * modules/quotearg, modules/regex, modules/rpmatch:
61622         * modules/unicodeio, modules/userspec, modules/version-etc:
61623         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61624         * modules/xsetenv:
61625         Depend on gettext-h, not gettext.
61626
61627 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         * gnulib-tool (func_import): Add support for 'public domain' license.
61630         * modules/alloca, modules/atexit, modules/memmove:
61631         Now public domain, not GPL.
61632         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61633         * modules/realloc, modules/strerror, modules/strtod:
61634         Now LGPL, not GPL.
61635
61636 2005-07-05  Bruno Haible  <bruno@clisp.org>
61637
61638         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61639         autoconf CVS. Needed for mingw.
61640
61641 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61642
61643         Remove the dependency of the strftime module on the tzset module.
61644         * modules/strftime (Depends-on): Remove dependency on tzset.
61645
61646 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         Remove the dependency of the strftime module on the tzset module.
61649         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61650         gl_FUNC_TZSET_CLOBBER.
61651
61652 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61653
61654         Remove the dependency of the strftime module on the tzset module.
61655         * lib/strftime.c (my_strftime)
61656         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61657         Copy the input structure, to work around some of the bug with
61658         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61659         Solaris releases, you should also use the tzset module, but we won't
61660         require it as a dependency any more since we don't want LGPLed code
61661         to depend on GPLed code.
61662
61663 2005-07-02  Jim Meyering  <jim@meyering.net>
61664
61665         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61666         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61667         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61668         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61669
61670 2005-07-02  Jim Meyering  <jim@meyering.net>
61671
61672         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61673
61674 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61675
61676         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61677         declares only 'struct timespec;' (!).
61678
61679 2005-07-01  Jim Meyering  <jim@meyering.net>
61680
61681         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61682         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61683         * lib/save-cwd.c, tempname.c:
61684         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61685         and don't include <sys/file.h>).
61686
61687 2005-06-29  Jim Meyering  <jim@meyering.net>
61688
61689         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61690         type name.  Use the variable name instead.
61691         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61692         Likewise.
61693
61694 2005-06-28  Simon Josefsson  <jas@extundo.com>
61695
61696         * modules/check-version (Files): Add check-version.m4.
61697
61698 2005-06-28  Simon Josefsson  <jas@extundo.com>
61699
61700         * m4/check-version.m4: New file, suggested by Jim Meyering
61701         <jim@meyering.net>.
61702
61703 2005-06-28  Simon Josefsson  <jas@extundo.com>
61704
61705         * lib/check-version.h, lib/check-version.c: New files.
61706
61707 2005-06-28  Simon Josefsson  <jas@extundo.com>
61708
61709         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61710         collision with global variable.  Better indentation.  Don't
61711         increment buffer pointer beyond buffer end.  Based on comments
61712         from Paul Eggert <eggert@cs.ucla.edu>.
61713
61714         * lib/base64.h: Indent.
61715
61716 2005-06-28  Simon Josefsson  <jas@extundo.com>
61717
61718         * doc/gnulib.texi (Library version handling): New section.
61719
61720 2005-06-28  Jim Meyering  <jim@meyering.net>
61721
61722         * check-module (find_included_lib_files): Hard-code another
61723         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61724         but modules/fts-lgpl (correctly) does not list those files.
61725
61726         * modules/canonicalize (Files): Add lib/pathmax.h.
61727
61728 2005-06-25  Simon Josefsson  <jas@extundo.com>
61729
61730         * modules/check-version: New file.
61731
61732 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61735         initializer of struct addrinfo, as an indication that we don't
61736         care how many members the structure has.
61737
61738 2005-06-24  Derek Price  <derek@ximbiot.com>
61739         and Bruno Haible  <bruno@clisp.org>
61740
61741         Remove stat module & update lstat.
61742         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61744         * m4/stat.m4: Remove this file.
61745
61746 2005-06-24  Derek Price  <derek@ximbiot.com>
61747         and Bruno Haible  <bruno@clisp.org>
61748
61749         Remove stat module & update lstat.
61750         * lib/stat.c: Remove this file...
61751         (slash_aware_lstat): ...moving this content and its support...
61752         * lib/lstat.c (rpl_lstat): ...into here.
61753         * lib/lstat.h: New file.
61754
61755 2005-06-24  Derek Price  <derek@ximbiot.com>
61756         and Bruno Haible  <bruno@clisp.org>
61757
61758         Remove stat module & update lstat.
61759         * config/srclist.txt (libc sources): Remove stat.
61760
61761 2005-06-24  Derek Price  <derek@ximbiot.com>
61762         and Bruno Haible  <bruno@clisp.org>
61763
61764         Remove stat module & update lstat.
61765         * MODULES.html.sh (stat): Remove.
61766         * MODULES.html: Regenerated.
61767         * modules/lstat (Description): Correct function name.
61768         (Files): Add "lstat.h".
61769         (Depends-on): Remove stat, add xalloc, stat-macros.
61770         * modules/stat: Remove this file.
61771         (Include): Add "lstat.h", remove <sys/stat.h>.
61772
61773 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61774
61775         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61776         (ranged_convert): Don't save conversion in a temporary struct.
61777         This causes a warning with GCC 4.0.0, and anyway in the typical
61778         case it's not worth the extra 100 bytes or so of code.
61779         (ranged_convert, __mktime_internal): When calling a function via a
61780         pointer P, use P () rather than (*P) (), as we now assume C89 or
61781         better.
61782
61783 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61786         "who -r" failed to give output.  Problem reported by Tim Waugh.
61787
61788         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61789         (xcalloc): Use it to avoid needless tests.
61790         Problem reported by Jim Meyering.
61791
61792 2005-06-20  Derek Price  <derek@ximbiot.com>
61793
61794         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61795         unnecessary for Autoconfs > 2.59c.
61796
61797 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61798
61799         * lib/argp.h (__option_is_short): Check upper limit of
61800         __key. Isprint() requires its argument to have the value
61801         of an unsigned char or EOF.
61802
61803 2005-06-16  Jim Meyering  <jim@meyering.net>
61804
61805         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61806         when either N or S is zero.
61807
61808 2005-06-16  Derek Price  <derek@ximbiot.com>
61809
61810         * m4/bison.m4: Declare YACC & YFLAGS precious.
61811
61812 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61813
61814         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61815         multibyte string or pattern, fall back on unibyte matching.
61816         Problem reported by James Youngman.
61817
61818 2005-06-08  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/csharpcomp: New file.
61821         * MODULES.html.sh (C#): Add csharpcomp.
61822
61823 2005-06-08  Bruno Haible  <bruno@clisp.org>
61824
61825         * m4/csharpcomp.m4: New file, from GNU gettext.
61826
61827 2005-06-08  Bruno Haible  <bruno@clisp.org>
61828
61829         * lib/csharpcomp.h: New file, from GNU gettext.
61830         * lib/csharpcomp.c: New file, from GNU gettext.
61831         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61832
61833 2005-06-08  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61836         warning on mingw.
61837
61838 2005-06-07  Derek Price  <derek@ximbiot.com>
61839
61840         Sync from CVS.
61841         * lib/glob_.h: Indent nested #ifdef.
61842
61843 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         Sync from coreutils.
61846         Use "file name" when talking about file names, instead of "filename"
61847         or "path", as per the GNU coding standards.
61848         * lib/mkdir-p.c: Renamed from makepath.c.
61849         (make_dir_parents): Renamed from make_path.  All callers changed.
61850         * lib/mkdir-p.h: Likewise.  All includers changed.
61851         * lib/filenamecat.c: Renamed from path-concat.c.
61852         (file_name_concat): Renamed from path_concat.  All callers changed.
61853         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61854         * lib/filenamecat.h: Likewise.  All includers changed.
61855         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61856         in comments or local variable names.
61857         * lib/basename.c: Likewise.
61858         * lib/canonicalize.c, canonicalize.h: Likewise.
61859         * lib/dirname.c, dirname.h: Likewise.
61860         * lib/euidaccess.c: Likewise.
61861         * lib/exclude.c: Likewise
61862         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61863         * lib/fsusage.c, fsuage.h: Likewise.
61864         * lib/fts.c, fts_.h: Likewise.
61865         * lib/getcwd.c: Likewise.
61866         * lib/getloadavg.c: Likewise.
61867         * lib/mkstemp.c: Likewise.
61868         * lib/mountlist.c, mountlist.h: Likewise.
61869         * lib/openat.c, openat.h: Likewise.
61870         * lib/readlink-stub.c: Likewise.
61871         * lib/readutmp.c, readutmp.h: Likewise.
61872         * lib/rename.c: Likewise.
61873         * lib/rmdir.c: Likewise.
61874         * lib/same.c: Likewise.
61875         * lib/savedir.c: Likewise.
61876         * lib/stripslash.c: Likewise.
61877         * lib/tempname.c: Likewise.
61878         * lib/xreadlink.c: Likewise.
61879         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61880         All uses changed.
61881         * lib/exclude.h: Likewise.
61882
61883         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61884         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61885         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61886         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61887         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61888         files have been getting away with it for years (MORE/BSD 4.3
61889         is extinct now).
61890         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61891         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61892
61893         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61894         Define to 256, not 255, as per modern POSIX.
61895
61896 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         Sync from coreutils.
61899         Use "file name" when talking about file names, instead of "filename"
61900         or "path", as per the GNU coding standards.
61901         * MODULES.html.sh: mkdir-p renamed from makepath.
61902         filenamecat renamed from path-concat.
61903         * modules/filenamecat: Renamed from modules/path-concat.
61904         (Files): filenamecat.h and filenamecat.c renamed from
61905         path-concat.h and path-concat.c.
61906         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61907         (Include): filenamecat.h, not path-concat.h.
61908         * modules/mkdir-p: Renamed from modules/makepath.
61909         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61910         makepath.c.
61911         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61912         (Include): mkdir-p.h, not makepath.h.
61913
61914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         Sync from coreutils.
61917         * m4/mkdir-p.m4: Renamed from makepath.m4.
61918         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61919         Rename files from makepath.c to mkdir-p.c, and from
61920         makepath.h to mkdir-p.h.
61921         * m4/filenamecat.m4: Renamed from path-concat.m4.
61922         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61923         Rename files from path-concat.c to filenamecat.c,
61924         and from path-concat.h to filenamecat.h.
61925         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61926         "file name" in local variables or comments.
61927         * m4/rename.m4: Likewise.
61928
61929 2005-06-01  Bruno Haible  <bruno@clisp.org>
61930
61931         * modules/csharpexec: New file.
61932         * MODULES.html.sh (C#): New section.
61933
61934 2005-06-01  Bruno Haible  <bruno@clisp.org>
61935
61936         * m4/csharp.m4: New file, from GNU gettext.
61937         * m4/csharpexec.m4: New file, from GNU gettext.
61938
61939 2005-06-01  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/csharpexec.h: New file, from GNU gettext.
61942         * lib/csharpexec.c: New file, from GNU gettext.
61943         * lib/csharpexec.sh.in: New file, from GNU gettext.
61944
61945 2005-05-31  Derek Price  <derek@ximbiot.com>
61946             Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         Sync from cvs.
61949         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61950
61951 2005-05-31  Derek Price  <derek@ximbiot.com>
61952             Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         Sync from cvs.
61955         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61956
61957 2005-05-29  Derek Price  <derek@ximbiot.com>
61958
61959         * config/srclist.txt (glob_.h, glob.c): Add these files.
61960
61961 2005-05-29  Derek Price  <derek@ximbiot.com>
61962
61963         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61964         * modules/glob: New file.
61965         * modules/getlogin_r: Add link to POSIX spec in description.
61966
61967 2005-05-29  Derek Price  <derek@ximbiot.com>
61968             Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * m4/glob.m4: New file.
61971
61972 2005-05-29  Derek Price  <derek@ximbiot.com>
61973             Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         * lib/glob_.h, lib/glob.c: New files.
61976
61977 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61980         * modules/fts-lgpl (Depends-on): Remove gettext.
61981
61982 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61985         and don't require gt_INTTYPES_PRI.
61986
61987 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61990
61991         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61992         the configuration hassle isn't worth it.
61993         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61994         (LONGEST_MODIFIER, PRIuMAX): Remove.
61995
61996 2005-05-27  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61999
62000 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62003         _POSIX_PTHREAD_SEMANTICS for Solaris.
62004
62005 2005-05-25  Derek Price  <derek@ximbiot.com>
62006
62007         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62008
62009 2005-05-25  Derek Price  <derek@ximbiot.com>
62010             Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62013         * lib/getlogin_r.c, getlogin_r.h: New files.
62014
62015 2005-05-25  Bruno Haible  <bruno@clisp.org>
62016             Derek Price  <derek@ximbiot.com>
62017
62018         * lib/getlogin_r.h: Simplify API documentation.
62019
62020 2005-05-23  Derek Price  <derek@ximbiot.com>
62021
62022         * modules/minmax (Files): Add m4/minmax.m4.
62023         (configure.ac): Add gl_MINMAX.
62024
62025 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62028         so that unistd-safer.h (GPL'ed code) need not be included.
62029
62030 2005-05-22  Bruno Haible  <bruno@clisp.org>
62031
62032         * m4/minmax.m4: New file.
62033         Based on a patch by Derek Price <derek@ximbiot.com>.
62034
62035 2005-05-22  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62038         (INT64_MIN): Fix definition.
62039         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62040
62041         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62042         NEED_SIGNED_INT_TYPES.
62043
62044         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62045         HAVE_SYSTEM_INTTYPES.
62046
62047 2005-05-22  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62050         Also include <sys/param.h> if it defines MIN, MAX.
62051         Based on a patch by Derek Price <derek@ximbiot.com>.
62052
62053 2005-05-21  Jim Meyering  <jim@meyering.net>
62054
62055         * modules/fts (Files): Add m4/inttypes-pri.m4.
62056         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62057
62058 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         New fts module.
62061         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62062         (setup_dir, free_dir): New functions.
62063         (enter_dir, leave_dir): Define trivial
62064         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62065         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62066         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62067         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62068         Move to fts-cycle.c.
62069         (fts_open): Use setup_dir.
62070         (fts_close): Use free_dir.
62071         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62072         This adds a label and some gotos, but the alternatives were messier.
62073         Check for memory allocation failure when entering a dir.
62074         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62075         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62076         (FTS): New member fts_cycle, that is a union that contains the
62077         old active_dir_ht and cycle_state.  All uses changed to mention
62078         fts_cycle.ht and fts_cycle.state.
62079         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62080         fts.c, with the following changes:
62081         (setup_dir, free_dir): New functions.
62082         (enter_dir): Now returns bool.  Return true if successful, false
62083         if memory exhausted.  All callers changed.
62084         Do not bother partly cleaning up on
62085         memory allocation failure; that is free_dir's job.
62086         However, free ad if hash_insert fails, to avoid memory leak.
62087         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62088         fts->fts_options to see which union member to use.
62089
62090 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62093         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62094
62095 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62098
62099 2005-05-20  Jim Meyering  <jim@meyering.net>
62100
62101         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62102         Now a macro, to pacify GCC.
62103
62104 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62105
62106         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62107         of -1.
62108
62109 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62110
62111         * lib/chown.c (rpl_chown): Return -1 on failure.
62112
62113 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62116         Don't check for stddef.h.
62117         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62118         don't use its results.
62119         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62120         since we include them unconditionally.  Don't require
62121         AM_STDBOOL_H, since stdbool is a prerequisite.
62122         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62123         since we assume C89 or better.
62124         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62125         as we don't use their results.
62126         Don't check for fchdir, memmove, memset, strrchr, as we use
62127         them unconditionally.
62128         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62129         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62130
62131 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62134         Include <stddef.h> unconditionally, since we assume C89 now.
62135         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62136         * lib/fts.c: Include fts_.h first, to check interface.
62137         Do not include intprops.h; no longer needed.
62138         Include cycle-check.h and hash.h, since fts_.h no longer does.
62139         Remove unnecessary casts of closedir to void.
62140         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62141         decide whether to decrement nlinks.
62142         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62143         (FTS): Use struct hash_table * instead of Hash_table, so that
62144         we no longer need to include hash.h here.
62145
62146 2005-05-18  Jim Meyering  <jim@meyering.net>
62147
62148         * modules/dirfd (License): Change to LGPL.  Most of the code
62149         is already in the public domain.
62150
62151 2005-05-18  Jim Meyering  <jim@meyering.net>
62152
62153         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62154         Reported by Yoann Vandoorselaere.
62155
62156 2005-05-17  Jim Meyering  <jim@meyering.net>
62157
62158         * m4/fts.m4: New file, from coreutils.
62159
62160 2005-05-17  Jim Meyering  <jim@meyering.net>
62161
62162         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62163
62164 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         Sync from coreutils.
62167         * m4/unlinkdir.m4: New file.
62168
62169 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         Sync from coreutils.
62172         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62173         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62174         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62175         White space changes only.
62176         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62177         special.
62178         * lib/yesno.c: Include getline.h, not ctype.h.
62179         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62180         Use getline to remove arbitrary restriction on response length.
62181
62182 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * config/srclist-update: Spell out "Street" in FSF postal
62185         mail address; this is the style the FSF seems to prefer.
62186
62187         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62188         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62189         this updates FSF postal mail address.
62190
62191         Sync from coreutils.
62192         * modules/unlinkdir: New file.
62193         * modules/yesno (Depends-on): Add getline.
62194         * MODULES.html.sh (File system functions): Add unlinkdir.
62195
62196 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62197
62198         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62199         lib/strsep.h:
62200         Change the initial comment to refer to GPL, not LGPL.
62201         gnulib-tool will change it to LGPL as needed.
62202
62203         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62204         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62205         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62206         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62207         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62208         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62209         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62210         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62211         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62212         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62213         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62214         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62215         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62216         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62217         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62218         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62219         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62220         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62221         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62222         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62223         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62224         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62225         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62226         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62227         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62228         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62229         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62230         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62231         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62232         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62233         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62234         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62235         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62236         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62237         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62238         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62239         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62240         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62241         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62242         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62243         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62244         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62245         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62246         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62247         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62248         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62249         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62250         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62251         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62252         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62253         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62254         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62255         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62256         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62257         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62258         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62259         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62260         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62261         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62262         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62263         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62264         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62265         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62266         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62267         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62268         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62269         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62270         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62271         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62272         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62273         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62274         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62275         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62276         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62277         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62278         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62279         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62280         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62281         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62282         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62283         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62284         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62285         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62286         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62287         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62288         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62289         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62290         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62291         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62292         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62293         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62294         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62295         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62296         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62297         lib/yesno.c, lib/yesno.h:
62298         Update FSF postal mail address.
62299
62300 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62303         tests/test-memmem.c, tests/test-stpncpy.c:
62304         Update FSF postal mail address.
62305
62306 2005-05-13  Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62309         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62310         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62311         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62312         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62313         Add support for 64-bit integers in the MSVC compiler.
62314
62315 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62316
62317         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62318
62319 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62320
62321         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62322
62323 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         * doc/getdate.texi (General date syntax): Don't say that date
62326         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62327         Problem reported by Nic Ferrier.
62328
62329 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62330
62331         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62332         specified in ai_socktype. Fix invalid ai_protocol
62333         check. ai_protocol is usually set to 0 or depending on
62334         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62335         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62336         ai_socktype / ai_protocol in the returned addrinfo structure.
62337
62338 2005-05-10  Simon Josefsson  <jas@extundo.com>
62339
62340         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62341         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62342
62343 2005-05-10  Karl Berry  <karl@gnu.org>
62344
62345         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62346         (from http://www.gnu.org/licenses).
62347         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62348         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62349         fdl.texi suffices.
62350
62351 2005-05-10  Karl Berry  <karl@gnu.org>
62352
62353         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62354         (COPYING.DOC): remove.
62355
62356         * config/srclist-update: new FSF address.
62357
62358 2005-05-10  Derek Price  <derek@ximbiot.com>
62359
62360         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62361         possible.
62362
62363 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62364             Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/inet_ntop: New file.
62367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62368         inet_ntop.
62369
62370 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62371             Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/inet_ntop.m4: New file.
62374
62375 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62376             Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/inet_ntop.h: New file.
62379         * lib/inet_ntop.c: New file, from glibc with modifications.
62380
62381 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62382
62383         * modules/time_r (License): Change to LGPL.
62384         * modules/extensions (License): Change to LGPL.  Actually,
62385         the license is more permissive than that, but currently gnulib-tool
62386         doesn't know how to handle more-permissive licenses.
62387
62388         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62389         Problem reported by Dave Love.
62390
62391 2005-05-08  Jim Meyering  <jim@meyering.net>
62392
62393         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62394         blank.
62395
62396 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62397
62398         * modules/argmatch (Depends-on): Add stdbool.
62399         * modules/backupfile (Depends-on): Likewise.
62400         * modules/chdir-long (Depends-on): Likewise.
62401         * modules/closeout (Depends-on): Likewise.
62402         * modules/cycle-check (Depends-on): Likewise.
62403         * modules/dirname (Depends-on): Likewise.
62404         * modules/fnmatch (Depends-on): Likewise.
62405         * modules/fsusage (Depends-on): Likewise.
62406         * modules/fwriteerror (Depends-on): Likewise.
62407         * modules/getcwd (Depends-on): Likewise.
62408         * modules/getloadavg (Depends-on): Likewise.
62409         * modules/hard-locale (Depends-on): Likewise.
62410         * modules/makepath (Depends-on): Likewise.
62411         * modules/mountlist (Depends-on): Likewise.
62412         * modules/nanosleep (Depends-on): Likewise.
62413         * modules/posixtm (Depends-on): Likewise.
62414         * modules/quotearg (Depends-on): Likewise.
62415         * modules/readtokens (Depends-on): Likewise.
62416         * modules/readtokens0 (Depends-on): Likewise.
62417         * modules/readutmp (Depends-on): Likewise.
62418         * modules/save-cwd (Depends-on): Likewise.
62419         * modules/strftime (Depends-on): Likewise.
62420         * modules/userspec (Depends-on): Likewise.
62421         * modules/utimecmp (Depends-on): Likewise.
62422         * modules/xgetcwd (Depends-on): Likewise.
62423         * modules/xnanosleep (Depends-on): Likewise.
62424         * modules/xstrtod (Depends-on): Likewise.
62425         * modules/yesno (Depends-on): Likewise.
62426
62427 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62430         needless checks.
62431
62432 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         Merge from coreutils.  Among other things,
62435         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62436         * lib/fd-safer.c: New file.
62437         * lib/fcntl-safer.h, open-safer.c: Remove.
62438         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62439         * lib/dup-safer.c: Include unistd-safer.h first.
62440         Don't include errno.h.
62441         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62442         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62443         * lib/file-type.c: Rely on file-type.h change.
62444         * lib/getloadavg.c: Include unistd-safer.h.
62445         (getloadavg): Use safer open.
62446         * lib/getusershell.c: Include "stdio-safer.h".
62447         (getusershell): Use safer fopen.
62448         * lib/long-options.c (long_options): Use NULL rather than 0.
62449         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62450         'free'.
62451         * lib/modechange.c: Likewise.
62452         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62453         (MODE_DONE): New constant.
62454         (struct mode_change): Remove 'next' member.
62455         (make_node_op_equals): New function; like the old one of the
62456         same name, except it allocates an array.
62457         (mode_compile, mode_create_from_ref): Use it.
62458         (mode_compile): Allocate result as an array, not a linked list.
62459         Parse octal string ourself, so that we catch mistakes like "+0".
62460         (mode_adjust): Arg is an array, not a linked list.
62461         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62462         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62463         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62464         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62465         Remove.  This is now stat-macros.h's job.
62466         (talloc): Remove.  All callers replaced by xalloc, so that
62467         our invokers don't have to worry about reporting memory failures.
62468         (make_node_op_equals): Remove.
62469         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62470         New constants.
62471         (struct mode_change): Moved here from modechange.h.
62472         (mode_append_entry): Remove.
62473         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62474         apps to have incorrect behavior.  Use simpler algorithm for head
62475         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62476         Detect more invalid usages rather than having somewhat-random behavior.
62477         Don't insert an "a=" action, as that leads to incorrect behavior.
62478         (mode_compile, mode_create_from_ref): Return NULL on error instead
62479         of an enum, since now there's only one way to have an error.  All
62480         callers changed.
62481         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62482         at the correct time.  Simplify calculation of "+u" and its ilk.
62483         Don't mishandle "+X".
62484         (mode_free): Remove "register" and localize decls.
62485         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62486         (struct mode_change): Move to modechange.c; callers don't
62487         need to see this stuff.
62488         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62489         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62490         (mode_change, mode_adjust): Reflect the new signatures noted above.
62491         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62492         that might redefine system include files.
62493         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62494         (my_usleep): Use NULL rather than (void *) 0.
62495         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62496         Use siginterrupt to specify that system calls should be interrupted.
62497         (rpl_nanosleep): Move initialization of suspended closer to call of
62498         my_usleep.
62499         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62500         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62501         (desirable_utmp_entry): New function.
62502         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62503         using x2nrealloc, to simplify logic.
62504         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62505         size calculation.  Do not assume utmp file is a regular file.
62506         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62507         (READ_UTMP_CHECK_PIDS): New constant.
62508         * lib/save-cwd.c: Include unistd-safer.h.
62509         (save_cwd): Use fd_safer.
62510         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62511         [!_LIBC] Include "stat-macros.h" instead.
62512         * lib/unistd-safer.h (fd_safer): New decl.
62513
62514 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * modules/getloadavg (Depends-on): Add unistd-safer.
62517         * modules/getusershell (Depends-on): Add stdio-safer.
62518         * modules/lstat (Depends-on): Remove xalloc.
62519         * modules/mkstemp (Depends-on): Add stat-macros.
62520         * modules/modechange (Depends-on): Remove xstrtol.
62521         Add stat-macros, xalloc.
62522         * modules/save-cwd (Depends-on): Add unistd-safer.
62523         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62524         * modules/unistd-safer (Files): Add lib/fd-safer.c
62525         (Makefile.am): Remove lib_SOURCES.
62526
62527         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62528         Remove fcntl-safer; unistd-safer supersedes it.
62529
62530 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62533         AC_HEADER_STAT.
62534         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62535         (gl_PREREQ_CHOWN): Remove.
62536         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62537         it.  Don't require AC_HEADER_STAT.
62538         (gl_PREREQ_LSTAT): Remove.
62539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62540         Don't require AC_HEADER_STAT.
62541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62542         (gl_PREREQ_RMDIR): Remove.
62543         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62544         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62545         the stat-macros module a prerequisite.
62546         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62547         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62548         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62549         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62550         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62551         variable names.
62552         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62553         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62554         variable prefixes.
62555         * m4/fcntl-safer.m4: Remove.
62556         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62557         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62558         Invoke gl_PREREQ_FD_SAFER.
62559         (gl_PREREQ_FD_SAFER): New macro.
62560         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62561         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62562         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62563         Remove duplicate call to AC_LIBOBJ(readutmp).
62564         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62565
62566         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62567         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62568
62569 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62570
62571         * MODULES.html.sh (Misc): Add byteswap.
62572
62573 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62574
62575         * modules/getcwd (Depends-on): Add extensions.
62576         * modules/openat (Depends-on): Likewise.
62577
62578 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62579
62580         * modules/byteswap: New file.
62581
62582 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62583
62584         * m4/byteswap.m4: New file.
62585
62586 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62587
62588         * lib/byteswap_.h: New file.
62589
62590 2005-04-25  Karl Berry  <karl@gnu.org>
62591
62592         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62593
62594 2005-04-25  Albert Chin  <china@thewrittenword.com>
62595
62596         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62597         Toolkit C bug.
62598
62599 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62600
62601         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62602         (func_ln_if_changed) Remove forcibly for no error message
62603         in case file does not exist.
62604
62605 2005-04-19  Simon Josefsson  <jas@extundo.com>
62606
62607         * gnulib-tool (Options): Make --symlink mean --symbolic.
62608
62609 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62610
62611         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62612
62613 2005-04-16  Simon Josefsson  <jas@extundo.com>
62614
62615         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62616
62617 2005-04-15  Simon Josefsson  <jas@extundo.com>
62618
62619         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62620
62621 2005-04-15  Simon Josefsson  <jas@extundo.com>
62622
62623         * gnulib-tool: Rename --symlink to --symbolic.
62624
62625 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62626
62627         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62628         symbolic links to files instead of copying/moving.  Add --aux-dir,
62629         specifying directory relative --dir where auxiliary build tools
62630         are placed.
62631
62632 2005-04-14  Bruno Haible  <bruno@clisp.org>
62633
62634         * modules/allocsa (License): Change to LGPL.
62635         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62636
62637 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62640         that "UTC +1 second" continues to work.  Problem reported
62641         by Dmitry V. Levin.
62642         (relunit_snumber): New rule.
62643         (relunit): Use it.
62644
62645 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * lib/getdate.y (universal_time_zone_table): New constant.
62648         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62649         universal_time_zone_table.
62650         (lookup_zone): Prefer universal_time_zone_table to
62651         local_time_zone_table, so that "GMT" time stamps are allowed in
62652         London during the summer.  Problem reported by Ian Abbott.
62653
62654 2005-04-12  Jim Meyering  <jim@meyering.net>
62655
62656         * lib/human.c (humblock): Set *options even when returning due to
62657         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62658         warning from gcc-4.
62659
62660 2005-04-09  Jim Meyering  <jim@meyering.net>
62661
62662         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62663         -Wuninitialized: initialize tm0.tm_year.
62664
62665 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62668         count, since there's no maximum.  All uses changed.
62669         Add member dsts_seen.
62670         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62671         not being INT_MAX.
62672         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62673         Use pc_rels_seen to decide whther a date is absolute.
62674
62675         * lib/getdate.y (number): Don't overwrite year.
62676         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62677         check.
62678
62679 2005-04-02  Simon Josefsson  <jas@extundo.com>
62680
62681         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62682         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62683
62684 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62685
62686         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62687         where no absolute path name can be longer than PATH_MAX.
62688
62689 2005-03-27  Jim Meyering  <jim@meyering.net>
62690
62691         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62692
62693 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62696         "one's complement" -> "ones' complement" in comment, as per Knuth.
62697         "value of type" -> "type or expression" in comment.
62698         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62699
62700 2005-03-26  Jim Meyering  <jim@meyering.net>
62701
62702         Comment nits.
62703         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62704         Correct typos: s/or/of/.
62705
62706 2005-03-26  Jim Meyering  <jim@meyering.net>
62707
62708         * modules/check-include-files: Move to ../ and rename to...
62709         * check-module: ...this.
62710
62711 2005-03-25  Jim Meyering  <jim@meyering.net>
62712
62713         * modules/xvasprintf (Files): Add xalloc.h.
62714
62715 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * modules/gettext (Files): config/config.rpath ->
62718         build-aux/config.rpath
62719         * modules/iconv (Files): Likewise.
62720         Problem reported by Oskar Liljeblad.
62721
62722 2005-03-23  Jim Meyering  <jim@meyering.net>
62723
62724         * modules/check-include-files: New script to check for
62725         missing dependencies, multiple includes, etc.
62726
62727         * modules/c-strtold (Depends-on): Add xalloc.
62728         * modules/c-strtod (Depends-on): Add xalloc.
62729         * modules/hash (Depends-on): Add xalloc.
62730         (Files): Remove lib/xalloc.h.
62731
62732         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62733         * modules/userspec (Files): Add lib/inttostr.h.
62734
62735 2005-03-23  Jim Meyering  <jim@meyering.net>
62736
62737         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62738
62739 2005-03-22  Jim Meyering  <jim@meyering.net>
62740
62741         * modules/stat-macros: New module.
62742         * modules/canonicalize, modules/euidaccess, modules/file-type,
62743         * modules/filemode, modules/lchown, modules/makepath,
62744         * modules/rmdir, modules/stat: Depend on new stat-macros module
62745         rather than listing lib/stat-macros.h manually.
62746         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62747
62748 2005-03-22  Jim Meyering  <jim@meyering.net>
62749
62750         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62751
62752 2005-03-22  Bruno Haible  <bruno@clisp.org>
62753
62754         * config/srclist.txt: Replace target directory 'config' with
62755         'build-aux'.
62756         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62757         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62758         ../build-aux/.
62759
62760 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * modules/chdir-long (Depends-on): Add mempcpy.
62763
62764         * modules/acl, modules/backupfile, modules/c-strtod,
62765         modules/c-strtold, modules/canon-host, modules/canonicalize,
62766         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62767         modules/exclude, modules/exitfail, modules/file-type,
62768         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62769         modules/getdate, modules/getline, modules/getpagesize,
62770         modules/getpass, modules/getugroups, modules/group-member,
62771         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62772         modules/inttostr, modules/long-options, modules/makepath,
62773         modules/md5, modules/memcasecmp, modules/memcoll,
62774         modules/modechange, modules/mountlist, modules/path-concat,
62775         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62776         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62777         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62778         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62779         modules/strftime, modules/strndup, modules/strverscmp,
62780         modules/timespec, modules/unlocked-io, modules/userspec,
62781         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62782         modules/yesno:
62783         Remove lib_SOURCES line from Makefile.am section, as this is now
62784         done automatically by the corresponding Autoconf macro.
62785
62786 2005-03-21  Jim Meyering  <jim@meyering.net>
62787
62788         Changes imported from coreutils.
62789
62790         * lib/cycle-check.c: Don't include xalloc.h.
62791
62792         * lib/path-concat.c: Don't include assert.h.
62793         (path_concat): Remove assertion that would have triggered
62794         for ABASE starting with more than one slash.
62795         Reported by Andreas Schwab.
62796
62797         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62798         properly when ABASE is an absolute file name.
62799         Correct the description of this function.
62800         Include <assert.h>.
62801         Add an assertion and a test driver.
62802         This fixes a bug introduced on 2004-07-02.
62803         Andreas Schwab reported the resulting failure of cp --parents:
62804         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62805
62806 2005-03-21  Jim Meyering  <jim@meyering.net>
62807
62808         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62810
62811 2005-03-21  Jim Meyering  <jim@meyering.net>
62812         and  Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62815         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62816         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62817         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62818         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62819         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62820         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62821         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62822         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62823         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62824         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62825         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62826         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62827         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62828         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62829         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62830         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62831         for these modules.
62832
62833 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62836         (which shouldn't happen), generate nothing instead of returning 0
62837         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62838
62839 2005-03-16  Bruno Haible  <bruno@clisp.org>
62840
62841         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62842         HAVE_LONGLONG_64BIT.
62843
62844 2005-03-16  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62847         HAVE_LONGLONG_64BIT.
62848
62849 2005-03-16  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62852         HAVE_LONGLONG_64BIT.
62853
62854 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62857         reliably distinguish strftime failure from empty output on POSIX
62858         hosts.
62859
62860 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62863         (iconv_string): Don't guess a size-zero buffer, as that might cause
62864         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62865         result would be 'too large', where 'too large' is (heuristically)
62866         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62867         overflow concerns.  This will prevent some unwanted malloc failures
62868         when the inputs are very large.
62869
62870 2005-03-15  Karl Berry  <karl@gnu.org>
62871
62872         * config/srclist.txt (config.rpath): from gettext.
62873         * config/config.rpath: update.
62874
62875 2005-03-15  Bruno Haible  <bruno@clisp.org>
62876
62877         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62878         to 'negate'.
62879
62880         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62881         variable.
62882
62883         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62884         results.
62885
62886 2005-03-14  Simon Josefsson  <jas@extundo.com>
62887
62888         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62889         <fx@gnu.org>.
62890
62891 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62894         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62895         intprops.h.
62896         * lib/strtol.c: Likewise.
62897
62898 2005-03-14  Jim Meyering  <jim@meyering.net>
62899
62900         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62901         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62902         to be nonzero so that we (and caller) can detect the difference
62903         between a valid zero-length expansion and an error return, even
62904         when the underlying strftime fails before writing anything into
62905         that location.
62906
62907 2005-03-14  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62910         Update from GNU gettext 0.14.3.
62911
62912 2005-03-10  Jim Meyering  <jim@meyering.net>
62913
62914         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62915
62916 2005-03-10  Jim Meyering  <jim@meyering.net>
62917
62918         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62919         so that this module works on systems without fchdir.
62920
62921 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         Factor int-properties macros into a single file, except for
62924         glibc-related files.
62925         * lib/intprops.h: New file.
62926         * lib/getloadavg.c: Include it instead of limits.h.
62927         (INT_STRLEN_BOUND): Remove.
62928         * lib/human.c: Include intprops.h.
62929         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62930         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62931         302/1000.
62932         * lib/inttostr.h: Include intprops.h instead of limits.h.
62933         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62934         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62935         for consistency with intprops.h.
62936         (time_t_is_integer, twos_complement_arithmetic): Use them.
62937         * lib/sig2str.h: Include <signal.h>, intprops.h.
62938         (INT_STRLEN_BOUND): Remove.
62939         * lib/strftime.c (TYPE_SIGNED): Remove.
62940         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62941         * lib/strtol.c: Adjust comments to match intprops.h.
62942         * lib/userspec.c: Include intprops.h.
62943         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62944         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62945         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62946         instead of rolling our own expressions.
62947         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62948
62949         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62950         instead of int.
62951         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62952         the right thing even if adding 1900 would overflow.  Similarly
62953         for tm_mon + 1 and tm_yday + 1.
62954         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62955         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62956         (DO_SIGNED_NUMBER): New macro.
62957         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62958
62959 2005-03-07  Bruno Haible  <bruno@clisp.org>
62960
62961         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62962
62963 2005-03-07  Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62966
62967 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62968
62969         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62970         (func_import): Only replace files via --import when they have actually
62971         changed.
62972
62973 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62974
62975         * m4/mmap-anon.m4: New file.
62976         * m4/pagealign_alloc.m4: New file.
62977
62978 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62979             Bruno Haible  <bruno@clisp.org>
62980
62981         * modules/pagealign_alloc: New file.
62982         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62983
62984 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62985             Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/pagealign_alloc.h: New file.
62988         * lib/pagealign_alloc.c: New file.
62989
62990 2005-03-03  Bruno Haible  <bruno@clisp.org>
62991
62992         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62993         Use an all-permissive copyright notice, recommended by RMS.
62994
62995 2005-03-02  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62998         of AIX, the replacement has to be done only after <string.h> is
62999         included, therefore not in config.h. stpncpy.h does the replacement,
63000         and stpncpy.c uses it.
63001
63002 2005-03-02  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63005         stpncpy.c uses it.
63006
63007 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63010         The workaround isn't strictly needed for POSIX conformance, and
63011         it's too much of a pain to configure and maintain.  We'll ask
63012         people to fix their kernels instead.
63013         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63014         (NANOSLEEP_BUG_WORKAROUND): Remove.
63015         (xnanosleep): Remove the workaround.
63016
63017 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63020         Reported by Derek Price.
63021         (Include): Add "timespec.h".
63022
63023         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63024
63025 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63028         to detect nanosleep bug.
63029
63030 2005-03-01  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63033
63034 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63035
63036         * modules/gethrxtime: New file.
63037         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63038         (Depends-on): Add gethrxtime.
63039         (configure.ac): Add gl_XNANOSLEEP.
63040         (Makefile.am): Remove lib_SOURCES line.
63041
63042 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63045         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63046
63047 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63050         * lib/timespec.h (gettime): Return void, since it always
63051         succeeds now.  All uses changed.
63052         * lib/gettime.c (gettime) Likewise.
63053         [HAVE_NANOTIME]: Prefer nanotime.
63054         Assume gettimeofday succeeds, as POSIX requires.
63055         Assime time () succeeds, since other code already does.
63056         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63057         (timespec_subtract): Remove.
63058         (NANOSLEEP_BUG_WORKAROUND): New constant.
63059         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63060         things considerably.  Use it only on GNU/Linux hosts, since the
63061         workaround shouldn't be needed elsewhere.
63062
63063 2005-02-24  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/gettext (Files): Add m4/glibc2.m4.
63066
63067 2005-02-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63070         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63071         * m4/progtest.m4:
63072         Update from GNU gettext 0.14.2.
63073         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63074
63075 2005-02-24  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63078         * lib/config.charset: Update from GNU gettext 0.14.2.
63079
63080 2005-02-24  Bruno Haible  <bruno@clisp.org>
63081
63082         * lib/gettext.h: Update from GNU gettext 0.14.2.
63083
63084 2005-02-23  Simon Josefsson  <jas@extundo.com>
63085
63086         * m4/iconvme.m4: New file.
63087
63088 2005-02-23  Jim Meyering  <jim@meyering.net>
63089
63090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63091         change.
63092         Thanks to Bruno Haible for catching it.
63093
63094 2005-02-22  Simon Josefsson  <jas@extundo.com>
63095
63096         * modules/iconvme: New file.
63097
63098         * MODULES.html.sh: Add iconvme.
63099
63100 2005-02-22  Simon Josefsson  <jas@extundo.com>
63101
63102         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63103
63104 2005-02-22  Simon Josefsson  <jas@extundo.com>
63105
63106         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63107
63108 2005-02-22  Jim Meyering  <jim@meyering.net>
63109
63110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63111         s/ifndef/ifdef/.
63112
63113 2005-02-20  Neil Conway  <neilc@samurai.com>
63114
63115         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63116         returned by OSX/Darwin if the specified buffer is not large
63117         enough for the hostname.
63118
63119 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63120
63121         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63122         pass it to _help, otherwise the latter coredumps trying to
63123         dereference state.root_argp.
63124
63125 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * modules/chdir-long (Depends-on): Add memrchr.
63128         * modules/memrchr (Files): Add lib/memrchr.h.
63129         (Include): "memrchr.h".
63130
63131 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63134
63135 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * lib/memrchr.h: New file.
63138         * lib/chdir-long.c: Include it.
63139         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63140         Don't bother including stddef.h.
63141
63142 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63145         inclusion.
63146         Include <sys/types.h>, for dev_t.
63147         (ME_DUMMY, ME_REMOTE): Move from here....
63148         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63149         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63150         Dmitry V. Levin.
63151         Include mountlist.h first, to test the interface.
63152
63153 2005-01-29  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/progname.c (program_name): Initialize.
63156         Needed when linking statically on MacOS X.
63157
63158 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         Sync from coreutils.
63161         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63162         (Depends-on): Add c-strtod.
63163         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63164
63165 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         Sync from coreutils.
63168         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63169
63170         Remove files that are specific to coreutils.
63171         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63172
63173 2005-01-28  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/javacomp: New file.
63176         * MODULES.html.sh (Java): Add javacomp.
63177
63178 2005-01-28  Bruno Haible  <bruno@clisp.org>
63179
63180         * m4/javacomp.m4: New file, from GNU gettext.
63181
63182 2005-01-28  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/javacomp.sh.in: New file, from GNU gettext.
63185         * lib/javacomp.h: New file, from GNU gettext.
63186         * lib/javacomp.c: New file, from GNU gettext.
63187
63188 2005-01-26  Simon Josefsson  <jas@extundo.com>
63189
63190         * lib/gai_strerror.c: Use GPL in header.
63191
63192 2005-01-26  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/javaexec: New file.
63195         * MODULES.html.sh (Java): Add javaexec.
63196
63197 2005-01-26  Bruno Haible  <bruno@clisp.org>
63198
63199         * m4/javaexec.m4: New file, from GNU gettext.
63200
63201 2005-01-26  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/javaexec.sh.in: New file, from GNU gettext.
63204         * lib/javaexec.h: New file, from GNU gettext.
63205         * lib/javaexec.c: New file, from GNU gettext.
63206
63207 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63208
63209         * modules/lchown (Depends-on): Remove lchown.h
63210
63211 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63212
63213         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63214         must be defined if the header file was not found, in order
63215         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63216
63217 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63218
63219         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63220         initializers for struct pentry_state.
63221         (__argp_error): Check return value of __asprintf
63222         (__argp_failure): Translate error message
63223
63224         * lib/argp-parse.c: Removed braces around the expansion of N_()
63225
63226 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63229         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63230         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63231         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63232         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63233         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63234         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63235         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63236         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63237         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63238         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63239         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63240         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63241         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63242         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63243         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63244         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63245         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63246         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63247         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63248         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63249         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63250         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63251         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63252         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63253         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63254         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63255         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63256         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63257         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63258         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63259         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63260         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63261         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63262         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63263         Use an all-permissive copyright notice, recommended by RMS.
63264
63265 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63266
63267         * modules/chdir-long (Depends-on): Remove mempcpy.
63268
63269 2005-01-21  Jim Meyering  <jim@meyering.net>
63270
63271         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63272         same value as for Solaris 9.
63273
63274         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63275         component length.  This included changing the parameter to be
63276         of type `char *' rather than `char const *'.
63277         * lib/chdir-long.h (chdir_long): Update prototype.
63278
63279         * lib/openat.c (fdopendir, fstatat): New functions.
63280         * lib/openat.h: Include headers required for use of DIR and struct
63281         stat.
63282         [AT_SYMLINK_NOFOLLOW]: Define.
63283         (fdopendir, fstatat): Add prototypes.
63284
63285 2005-01-21  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/classpath: New file.
63288         * MODULES.html.sh (Java): Add classpath.
63289
63290 2005-01-21  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/classpath.h: New file, from GNU gettext.
63293         * lib/classpath.c: New file, from GNU gettext.
63294
63295 2005-01-20  Simon Josefsson  <jas@extundo.com>
63296
63297         * modules/version-etc-fsf: New file.
63298
63299 2005-01-20  Simon Josefsson  <jas@extundo.com>
63300
63301         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63302         * lib/version-etc.c: Remove version_etc_copyright.
63303         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63304         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63305
63306 2005-01-20  Simon Josefsson  <jas@extundo.com>
63307
63308         * lib/base64.h (isbase64): Add.
63309
63310         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63311         using a unsigned prototype, don't inline.
63312         (base64_decode): Use it.
63313
63314 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63315
63316         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63317         it.
63318
63319 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * lib/save-cwd.c (save_cwd): Remove code to support the case
63322         where fchdir is missing or flaky.
63323
63324 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63327
63328 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63329
63330         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63331         AC_LIBSOURCES now does this.
63332         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63333         with new ullong_max module.
63334
63335 2005-01-19  Bruno Haible  <bruno@clisp.org>
63336
63337         * modules/sh-quote: New file.
63338         * MODULES.html.sh (Executing programs): Add sh-quote.
63339
63340 2005-01-19  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/sh-quote.h: New file, from GNU gettext.
63343         * lib/sh-quote.c: New file, from GNU gettext.
63344
63345 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63346
63347         Merge from coreutils.
63348         * m4/ullong_max.m4: New file.
63349         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63350         (gl_MACROS): Assume localeconv exists.
63351
63352 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         Merge changes from coreutils, as described below in several
63355         changelogs dated today.
63356
63357         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63358         (O_DIRECTORY): Remove; not needed here, since "." must be
63359         a directory.  All uses removed.
63360         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63361         universal on Suns, and we also need to test for IRIX.
63362         Revamp code to use 'if' rather than '#if'.
63363         Avoid unnecessary comparison of cwd->desc to 0.
63364
63365         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63366         for known valid error numbers rather than observed invalid ones.
63367
63368 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * modules/ullong_max: New file.
63371
63372         * modules/chdir-long, modules/openat: New files.
63373         * modules/save-cwd (Depends-on): Depend on chdir-long.
63374         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63375
63376 2005-01-18  Jim Meyering  <jim@meyering.net>
63377
63378         Merge from coreutils.
63379         * m4/chdir-long.m4, m4/openat.m4: New files.
63380         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63381         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63382         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63383         is sane and DOES follow symlinks.  Besides, testing 20 different
63384         systems found no broken chown implementations.
63385         Prompted by a change in rsync's copy of this macro.
63386         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63387
63388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63389
63390         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63391         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63392         NULL-means-set-to-current-time semantics.
63393         Remove temporary file immediately, rather than waiting
63394         for configure's at-exit trap code to do it.
63395
63396 2005-01-18  Jim Meyering  <jim@meyering.net>
63397
63398         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63399
63400         * lib/utimens.c (futimens): Account for the fact that futimes
63401         can also fail with errno == ENOSYS or errno == ENOENT.
63402         Patch from Dmitry V. Levin.
63403
63404         Change the name of the robust chdir function from chdir to chdir_long.
63405         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63406         (restore_cwd): Use chdir_long, not chdir.
63407         * lib/chdir-long.c: Renamed from chdir.c.
63408         * lib/chdir-long.h: Renamed from chdir.h.
63409         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63410         Hurd.
63411
63412 2005-01-18  Bruno Haible  <bruno@clisp.org>
63413
63414         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63415         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63416         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63417         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63418         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63419         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63420         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63421         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63422         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63423         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63424         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63425         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63426         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63427         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63428         Use an all-permissive copyright notice, recommended by RMS.
63429
63430 2005-01-18  Bob Proulx  <bob@proulx.com>
63431
63432         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63433         simplify offsetof() macro construct to avoid compile failure with
63434         native HP-UX 11.0 ANSI C compiler.
63435
63436 2005-01-17  Bruno Haible  <bruno@clisp.org>
63437
63438         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63439         redundant because stpncpy.m4 takes care of it.
63440
63441 2005-01-17  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63444
63445 2005-01-17  Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63448         used.
63449
63450 2005-01-17  Bruno Haible  <bruno@clisp.org>
63451
63452         * lib/fwriteerror.h (fwriteerror): Change specification to include
63453         fclose.
63454         * lib/fwriteerror.c: Include <stdbool.h>.
63455         (fwriteerror): At the end, close the file stream. Record whether
63456         stdout was already closed.
63457
63458 2005-01-17  Bruno Haible  <bruno@clisp.org>
63459
63460         * lib/execute.c (environ): Declare if needed.
63461         * lib/pipe.c (environ): Likewise.
63462         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63463
63464 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63465
63466         * modules/argp: Depend on vsnprintf
63467
63468 2005-01-10  Jim Meyering  <jim@meyering.net>
63469
63470         * modules/closeout (Depends-on): Add atexit.
63471
63472 2005-01-06  Bruno Haible  <bruno@clisp.org>
63473
63474         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63475
63476 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63479         definitions to be after all include files, to avoid collisions.
63480         Problem reported by Bob Proulx.
63481
63482 2005-01-04  Jim Meyering  <jim@meyering.net>
63483
63484         Changes imported from coreutils.
63485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63486         as the mkstemp template, use a temporary directory and an
63487         8.3-friendly template to avoid trouble on systems like DJGPP.
63488         Reported by Juan M. Guerrero via Stepan Kasal.
63489         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63490         close. Remove the temporary directory right away, rather than waiting
63491         for configure's at-exit trap code to do it.
63492         Suggestion from Stepan Kasal.
63493
63494 2005-01-01  Simon Josefsson  <jas@extundo.com>
63495
63496         * gnulib-tool: Print #include directives when --import'ing.
63497
63498 2004-12-28  Simon Josefsson  <jas@extundo.com>
63499
63500         * tests/test-base64.c: Include required header files.  Remove
63501         unused variables.
63502
63503 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * modules/error (Depends-on): Remove gettext.
63506
63507 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63510         not needed.  This removes a dependency on the gettext module.
63511         [defined _LIBC]: Do not include <libintl.h>; not needed.
63512
63513 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63516         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63517
63518 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63521         HAVE_DECL_STRTOLD.
63522
63523 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * modules/getdate (Depends-on): Remove alloca-opt.
63526
63527 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63530
63531 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/argp-parse.c: Include <stddef.h>.
63534         (alignof, alignto): New macros.
63535         (parser_init): Don't assume that void * is aligned sufficiently
63536         for struct option.
63537
63538         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63539         need to extend the stack.
63540         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63541         large.
63542
63543 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63544
63545         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63546
63547 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63550         (2004-10-24) change.  Apparently this was a false alarm.
63551
63552         * modules/getdate: Depend on alloca-opt, not alloca.
63553
63554 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63557         Remove now-obsolete comment about AIX.
63558         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63559         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63560         (YYMAXDEPTH): New macro.
63561
63562 2004-12-18  Simon Josefsson  <jas@extundo.com>
63563
63564         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63565
63566 2004-12-18  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63569
63570 2004-12-18  Bruno Haible  <bruno@clisp.org>
63571
63572         * lib/fatal-signal.c (fatal_signals): Make non-const.
63573         (init_fatal_signals): New function.
63574         (uninstall_handlers, install_handlers): Ignore signals that were set to
63575         SIG_IGN.
63576         (at_fatal_signal): Call init_fatal_signals.
63577         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63578         SIG_IGN.
63579         Reported by Paul Eggert.
63580
63581 2004-12-18  Bruno Haible  <bruno@clisp.org>
63582
63583         * doc/alloca.texi: New file.
63584         * doc/alloca-opt.texi: New file.
63585
63586 2004-12-17  Jim Meyering  <jim@meyering.net>
63587
63588         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63589         Otherwise, install-sh could exit with improper exit status when
63590         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63591
63592 2004-12-16  Simon Josefsson  <jas@extundo.com>
63593
63594         * tests/test-base64.c: Add license.
63595
63596 2004-12-15  Stepan Kasal  <address@hidden>
63597
63598         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63599
63600 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * modules/getcwd (Files): Add m4/d-ino.m4.
63603         Suggested by Mark D. Baushke.
63604
63605 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * lib/getdate.y (textint): New member "negative".
63608         (time_zone_hhmm): New function.
63609         Expect 14 shift-reduce conflicts, not 13.
63610         (o_colon_minutes): New rule.
63611         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63612         (yylex): Set the "negative" member of signed numbers.
63613
63614 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * doc/getdate.texi (Time of day items, Time zone items):
63617         Describe new formats +00:00, UTC+00:00.
63618
63619 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63620
63621         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63622         spurious "-l"s.  Problem reported by Stepan Kasal.
63623
63624 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63627         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63628
63629 2004-12-04  Simon Josefsson  <jas@extundo.com>
63630
63631         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63632         Vandoorselaere <yoann@prelude-ids.org>.
63633
63634 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         Changes imported from coreutils.
63637         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63638         exist.
63639         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63640
63641 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         Changes imported from coreutils.
63644         * lib/hard-locale.c: Assume <locale.h> exists.
63645         Include "strdup.h".
63646         (GLIBC_VERSION): New macro.
63647         (hard_locale): Assume setlocale exists.
63648         Rewrite to avoid #ifdef.
63649         Use strdup rather than malloc + strcpy.
63650         * lib/human.c: Assume <locale.h> exists.
63651         (human_readable): Assume localeconv exists.
63652
63653 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * modules/hard-locale (Depends-on): Add strdup.
63656
63657 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63658
63659         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63660         convert T2, not T.  (Imported from libc.)
63661
63662 2004-11-30  Simon Josefsson  <jas@extundo.com>
63663
63664         * modules/restrict (License): Change to LGPL.
63665
63666 2004-11-30  Simon Josefsson  <jas@extundo.com>
63667
63668         * m4/restrict.m4: Add copyright and copying conditions.
63669
63670 2004-11-30  Simon Josefsson  <jas@extundo.com>
63671
63672         * m4/base64.m4: New file.
63673
63674 2004-11-30  Simon Josefsson  <jas@extundo.com>
63675
63676         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63677         base64.
63678
63679         * tests/test-base64.c: New file.
63680
63681         * modules/base64: New file.
63682
63683 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63686         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63687
63688         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63689
63690 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63693         (__getcwd.c): Don't restore errno; glibc doesn't.
63694         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63695         first, falling back to our code only if its results look suspicious.
63696         Ensure that the resulting buffer is only as large as necessary.
63697
63698         * lib/readutmp.c: Include readutmp.h first.
63699         Include <errno.h>, since readutmp.h no longer does that.
63700         * lib/readutmp.h: Don't include <errno.h>,
63701         <sys/param.h>, <time.h>; not needed to establish interface.
63702         (errno): Remove decl.
63703         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63704         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63705         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63706
63707 2004-11-28  Simon Josefsson  <jas@extundo.com>
63708
63709         * lib/base64.h, base64.c: New file.
63710
63711 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63714
63715 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63718         (Depends-on): Remove pathmax, same.  Add mempcpy.
63719         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63720         (Makefile.am): Append getcwd.h to lib_SOURCES.
63721         (Include): Add getcwd.h.
63722         (Maintainer): Change from Jim Meyering to "all, glibc",
63723         since getdate now uses intended-for-glibc code.
63724         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63725         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63726
63727 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63730         HP's ANSI C compiler.
63731         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63732         Declaring int functions causes warnings on some modern systems and
63733         shouldn't be needed to compile on ancient ones.
63734         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63735         defined.
63736
63737         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63738         with the following changes.
63739         (__set_errno): Parenthesize properly.
63740         Include <stdbool.h>.
63741         (MIN, MAX, MATCHING_INO): New macros.
63742         (__getcwd): Define with prototype, not K&R form.
63743         Use heuristics to allocate default buffer on stack if possible.
63744         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63745         behavior, and to avoid the PATH_MAX limit when computing
63746         ../../../../...
63747         Use MATCHING_INO to compare inode number to file.
63748         Check for arithmetic overflow in size calculations.
63749         Fix bug in reallocation of dot array that caused getcwd to fail
63750         on directories nested deeper than 75.
63751         Be more careful about saving errno on error.
63752         Do not use realloc; use only free+malloc, as this is a bit
63753         more flexible and avoids a needless copy operation.
63754         Do not inspect st_dev and st_ino for symbolic links; POSIX
63755         doesn't specify the latter.
63756         Check for closedir errors.
63757         Avoid needless casts.
63758         Use "#ifdef weak_alias" around weak_alias, to be like other
63759         glibc code.
63760         The following changes to getcwd.c have effect only when used in
63761         gnulib; they have no effect inside glibc proper.
63762         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63763         as alloca isn't used.
63764         (alloca, __alloca): Likewise.
63765         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63766         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63767         unconditionally, as gnulib assumes C89 or better.
63768         Do not include <sys/param.h>.
63769         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63770         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63771         better.
63772         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63773         Include <dirent.h> in a way that is compatible with modern Autoconf.
63774         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63775         New macros, if not already defined.
63776         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63777         Use "_LIBC", not "defined _LIBC", for consistency.
63778         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63779         a mempcpy module.
63780         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63781         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63782         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63783         credit only to Jim Meyering and adjust the copyright dates.
63784         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63785         <stdlib.h>, <unistd.h>, "pathmax.h".
63786         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63787         (INITIAL_BUFFER_SIZE): Remove.
63788         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63789
63790 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63793         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63794         Use the _ONCE methods, for efficiency.
63795         Check for fcntl.h.  In test program, include <errno.h>
63796         and <fcntl.h> if available.  Remove old K&R cruft from
63797         test program.  Check for common errors in GNU/Linux,
63798         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63799         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63800         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63801         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63802         name accordingly.
63803         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63804         accommodate new getcwd.c.
63805         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63806         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63807         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63808         that's all we need now.
63809
63810 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63811
63812         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63813         argp-parse.c depends on getopt internals, that means we should
63814         always use our getopt, to be on the safe side.
63815         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63816         order not to spoil the result of an eventual previous invocation
63817         of gl_GETOPT_SUBSTITUTE.
63818
63819 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63820
63821         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63822         redefinition warnings. To avoid them, include the defines
63823         in `#if !defined __need_getopt ... #endif'. The only place
63824         where __getopt_argv_const is used is in definitions
63825         of getopt_long and getopt_long_only below, which are as well
63826         protected by `#ifndef __need_getopt'.
63827         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63828         __need_getopt after including <stdio.h> and <unistd.h> These
63829         headers might have defined it.
63830
63831 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63834
63835 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63838         (futimens): New function, which uses futimes if available.
63839         (futimens, utimens): Support timespec==NULL, with same semantics
63840         as utime and utimens.
63841         * lib/utimens.h (futimens): New decl.
63842
63843 2004-11-23  Jim Meyering  <jim@meyering.net>
63844
63845         * lib/getopt_.h: Remove trailing blanks.
63846
63847 2004-11-23  Jim Meyering  <jim@meyering.net>
63848
63849         * lib/__fpending.c: Add comment.
63850
63851 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63852
63853         * modules/canonicalize (Depends-on): Add xreadlink.
63854         Problem reported by James Youngman.
63855
63856 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63859         New macros.
63860         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63861         optopt): Use them instead of invoking ## directly; otherwise, the
63862         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63863
63864 2004-11-19  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/strtok_r.c: Move comments from here...
63867         * lib/strtok_r.h: ... to here.
63868
63869 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63870
63871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63872         implementations that mishandle size_t overflow.
63873
63874 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63877         might fail.  Problem reported by Yoann Vandoorselaere.
63878         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63879         implementations that mishandle size_t overflow.
63880
63881 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * modules/canon-host (Depends-on): Add strdup.
63884
63885 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63886
63887         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63888
63889 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         * lib/canon-host.c: Include "strdup.h".
63892         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63893         Use strdup instead of malloc/strcpy to duplicate strings.
63894
63895         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63896         (human_space_before_unit): New constant.
63897         * lib/human.c (human_readable): Support it.
63898
63899         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63900         (xgetcwd): Set errno correctly when failing.
63901         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63902         the failure is actually due to a PATH_MAX problem.
63903
63904         Further getopt changes to make it more likely that glibc will
63905         buy the changes back.
63906         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63907         (getopt): Use it, so to preserve glibc semantic
63908         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63909         when compiling for libc.
63910         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63911         (getopt_long, getopt_long_only): Use it.
63912
63913         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63914         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63915         (getopt): Argv is now char * const *, as per standard.
63916         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63917         not char *__getopt_argv_const *.
63918         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63919         _getopt_long_only_r): Likewise.
63920         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63921         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63922         _getopt_long_r, _getopt_long_only_r): Likewise.
63923         * lib/getopt_.h (__getopt_argv_const): Remove.
63924         (getopt): Argv is now char * const *, as per standard.
63925
63926         * lib/getdate.y (tORDINAL): New token.
63927         (day, relunit): Allow it for relative times.
63928         (relative_time_table): Use tORDINAL for ordinals.
63929
63930 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63931
63932         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63933         Document that "second" isn't allowed as an ordinal number.
63934
63935 2004-11-16  Jim Meyering  <jim@meyering.net>
63936
63937         * modules/closeout (Depends-on): Add fpending.
63938
63939 2004-11-15  Jim Meyering  <jim@meyering.net>
63940
63941         * lib/closeout.c: Include "__fpending.h" once again.
63942         Include <stdbool.h>.
63943         (close_stdout): Don't fail just because stdout was closed initially,
63944         since some programs don't write to stdout in the normal course of
63945         operation (other than --version and --help), and we don't want this
63946         function to make e.g. `touch file >&-' fail.
63947         But do fail if it was closed and someone has tried to write to it.
63948         E.g., `printf foo >&-' must fail.
63949
63950 2004-11-13  Jim Meyering  <jim@meyering.net>
63951
63952         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63953
63954 2004-11-12  Simon Josefsson  <jas@extundo.com>
63955
63956         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63957         small doc fix is still pending.
63958
63959 2004-11-11  Simon Josefsson  <jas@extundo.com>
63960
63961         * modules/strtok_r: New file.
63962
63963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63964         strtok_r.
63965
63966 2004-11-11  Simon Josefsson  <jas@extundo.com>
63967
63968         * m4/strtok_r.m4: New file.
63969
63970         * m4/getopt.m4: Replace opterr.
63971
63972 2004-11-11  Simon Josefsson  <jas@extundo.com>
63973
63974         * lib/strtok_r.h, strtok_r.c: New file.
63975
63976 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63979         of replacing opterr, getopt, etc.  This should handle the
63980         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63981
63982 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63985         we can stop lying to compilers about the constness of argv when we
63986         are compiled outside glibc.
63987         (getopt, getopt_long, getopt_long_only): Use it.
63988         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63989         _getopt_internal, getopt): Likewise.
63990         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63991         _getopt_long_only_r): Likewise.
63992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63993         _getopt_long_r, _getopt_long_only_r): Likewise.
63994
63995         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63996         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63997         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63998         the other external symbols.
63999         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64000         declaration, since the above renaming now works around collisions.
64001
64002 2004-11-11  Jim Meyering  <jim@meyering.net>
64003
64004         * lib/linebreak.c: Remove trailing blanks.
64005         * lib/alloca_.h: Likewise.
64006         * lib/acosl.c: Likewise.
64007         * lib/euidaccess.c: Likewise.
64008         * lib/allocsa.h: Likewise.
64009
64010 2004-11-10  Simon Josefsson  <jas@extundo.com>
64011
64012         * m4/getaddrinfo.m4: New file.
64013
64014 2004-11-10  Simon Josefsson  <jas@extundo.com>
64015
64016         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64017
64018 2004-11-10  Simon Josefsson  <jas@extundo.com>
64019
64020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64021         getaddrinfo.
64022
64023         * modules/getaddrinfo: New file.
64024
64025 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64028
64029 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * lib/mktime.c (SHR): New macro, which is a portable
64032         substitute for >> that should work even on Crays.
64033         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64034         Problem reported by Mark D. Baushke in
64035         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64036         * lib/getdate.y (SHR): Likewise.
64037         (tm_diff): Use it.
64038         * lib/strftime.c (SHR): Likewise.
64039         (tm_diff): Use it.
64040         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64041         quote_these_too, so that right shifts are well defined.  All uses
64042         changed.
64043
64044 2004-11-10  Jim Meyering  <jim@meyering.net>
64045
64046         Ensure that no close failure goes unreported.
64047         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64048         return early when it seems there's nothing to flush.
64049         Don't include __fpending.h.
64050
64051 2004-11-10  Jim Meyering  <jim@meyering.net>
64052
64053         * modules/closeout (Depends-on): Remove fpending.
64054
64055 2004-11-10  Jim Meyering  <jim@meyering.net>
64056
64057         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64058
64059 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64062         gl_FUNC_STRFTIME.
64063         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64064         and AC_REQUIRE when possible, to avoid duplicate checks.
64065         Check for <wchar.h>.
64066
64067 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64070
64071 2004-11-09  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/sockpfaf.m4: New file.
64074
64075 2004-11-05  Bruno Haible  <bruno@clisp.org>
64076
64077         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64078         Reported by Mark D. Baushke <mdb@cvshome.org>.
64079
64080 2004-11-04  Bruno Haible  <bruno@clisp.org>
64081
64082         2004-09-11  Bruno Haible  <bruno@clisp.org>
64083                 * allocsa.valgrind: New file.
64084         2004-02-06  Bruno Haible  <bruno@clisp.org>
64085                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64086                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64087                 Reported by Christopher Seip <chris.seip@hp.com>.
64088
64089 2004-11-04  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64092         (Makefile.am): Distribute it.
64093
64094 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64095
64096         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64097         with errno == ERANGE if the buffer is too small.
64098         Problem reported by Mark D. Baushke.
64099
64100 2004-11-03  Albert Chin  <china@thewrittenword.com>
64101             Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64104         equivalent, substitute $ac_type for equivalent type rather than
64105         blindly using uint32_t *always* which won't work if uint32_t is not
64106         available.  Define _UINT32_T to work around typedef of uint32_t if
64107         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64108         2.5.1.
64109
64110 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         * m4/jm-macros.m4: Sync from coreutils.
64113         (gl_MACROS): Check for mbrlen, for pathchk.
64114         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64115
64116 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * lib/xreadlink.c (MAXSIZE): New macro.
64119         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64120         size does not exceed MAXSIZE.  Avoid cast.
64121         As suggested by Mark D. Baushke in
64122         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64123         if readlink fails with buffer size just under MAXSIZE, try again
64124         with MAXSIZE.
64125
64126 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64129
64130 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64131         and  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64134         (get_date): Overparenthesize to avoid GCC warning.
64135
64136 2004-11-02  Bruno Haible  <bruno@clisp.org>
64137
64138         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64139         returns void.
64140
64141 2004-11-02  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64144         function returns void.
64145
64146 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64147
64148         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64149         fflush_unlocked, flockfile, funlockfile, funlockfile,
64150         fputs_unlocked, putc_unlocked.
64151
64152 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64155         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64156         already declared.
64157
64158 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64159
64160         * modules/getdate (Files): Add doc/getdate.texi.
64161         (Depends-on): Add setenv, xalloc.
64162
64163 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * lib/getdate.y: Add support for TZ="foo" within a date string.
64166         Fix some bugs near time_t boundaries.  Reject dates with
64167         out-of-range components, e.g., "Sept 31".
64168         Include <stdlib.h>, "setenv.h", "xalloc.h".
64169         (ISDIGIT_LOCALE): Remove; unused.
64170         Note that the TZ and time functions used here are not reentrant.
64171         (mktime_ok, get_tz): New functions.
64172         (TZBUFSIZE): New constant.
64173         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64174         This requires that we sometimes generate our own TZ="XXX..." setting.
64175
64176 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * doc/getdate.texi: New file, from coreutils with modifications for
64179         the new TZ parsing.
64180
64181 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64182
64183         * lib/mktime.c (not_equal_tm): Remove redundant check.
64184
64185 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64186
64187         * modules/regex (lib_SOURCES): Add regex.c.
64188         Reported by James Youngman in
64189         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64190
64191 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * lib/getdate.y: Use Bison 1.875 features, and some minor
64194         code cleanups.  This change does not affect semantics.
64195         Don't include <stdlib.h>; no longer needed.
64196         Don't include unlocked-io.h; only the "#if TEST" code uses
64197         stdio, and performance isn't crucial there.
64198         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64199         Bison 1.875 features as described below.
64200         All uses of "PC." replaced by "pc->".
64201         (YYSTYPE): Add a forward declaration.
64202         (yylex, yyerror): Use full prototypes in forward decls.
64203         Use "%pure-parser" rather than obsolescent "%pure_parser".
64204         Use %parse-param and %lex-param instead of obsolescent
64205         YYPARSE_PARAM and YYLEX_PARAM.
64206         (meridian_table, month_and_day_table, time_units_table,
64207         relative_time_table, time_zone_table, military_table,
64208         lookup_zone, lookup_word, get_date):
64209         Use NULL instead of 0 where appropriate.
64210         (to_hour): Avoid abort (), to avoid a dependency on
64211         stdlib.h.
64212         (yyerror, yylex): Now accepts parser_control * arg.
64213         (main) [TEST]: Use '\0' rather than 0 for char.
64214
64215 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64218
64219 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64222         It's now the caller's responsibility to handle the case where
64223         !HAVE_GETPAGESIZE && !defined getpagesize.
64224
64225         * lib/mktime.c (leapyear): Arg is long int, not int.
64226
64227 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64230
64231 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64234         missing.  Problem reported by James Youngman.
64235
64236 2004-10-16  Simon Josefsson  <jas@extundo.com>
64237
64238         * gnulib-tool: Fix comments.  Fix parse problem.
64239         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64240
64241 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64244         implementation of getopt_long.  Problem reported by Alexander Taler in:
64245         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64246
64247 2004-10-15  Bruno Haible  <bruno@clisp.org>
64248
64249         * gnulib-tool: Untabify. Initialize supplied_libname.
64250         (func_usage): More homogenous output.
64251         (func_modules_transitive_closure, func_modules_to_filelist,
64252         func_emit_lib_Makefile_am): New functions.
64253         (func_import): New function, extracted from big case statement. Use
64254         func_get_license, func_modules_transitive_closure,
64255         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64256         opt_lgpl. Don't use test -a, as it's not portable.
64257         (func_create_testdir): Use func_modules_transitive_closure,
64258         func_modules_to_filelist, func_emit_lib_Makefile_am.
64259
64260 2004-10-15  Bruno Haible  <bruno@clisp.org>
64261
64262         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64263
64264 2004-10-15  Bruno Haible  <bruno@clisp.org>
64265
64266         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64267         the portions belonging to each module.
64268         Suggested by Derek Robert Price <derek@ximbiot.com>.
64269
64270 2004-10-12  Simon Josefsson  <jas@extundo.com>
64271
64272         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64273         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64274         to real functions.
64275
64276 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64277
64278         * modules/vsnprintf: New file.
64279
64280 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64281
64282         * m4/vsnprintf.m4: New file.
64283
64284 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64285
64286         * lib/vsnprintf.h: New file.
64287         * lib/vsnprintf.c: New file.
64288
64289 2004-10-11  Bruno Haible  <bruno@clisp.org>
64290
64291         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64292         vsnprintf.
64293
64294 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64297
64298 2004-10-07  Bruno Haible  <bruno@clisp.org>
64299
64300         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64301         fits into the provided buffer.
64302
64303 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64304
64305         * lib/diacrit.c, diacrit.h: Add GPL notice.
64306
64307         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64308         notice.
64309         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64310         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64311         This avoids a potential constant-folding bug.
64312
64313 2004-10-05  Bruno Haible  <bruno@clisp.org>
64314
64315         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64316         for the declaration of strsep.
64317
64318 2004-10-05  Bruno Haible  <bruno@clisp.org>
64319
64320         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64321
64322 2004-10-04  Simon Josefsson  <jas@extundo.com>
64323
64324         * modules/memmem: New file.
64325         * tests/test-memmem.c: New file.
64326         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64327
64328 2004-10-04  Simon Josefsson  <jas@extundo.com>
64329
64330         * m4/memmem.m4: New file.
64331
64332 2004-10-04  Simon Josefsson  <jas@extundo.com>
64333
64334         * lib/memmem.h: New file.
64335         * lib/memmem.c: New file, taken from glibc.
64336
64337 2004-10-04  Simon Josefsson  <jas@extundo.com>
64338
64339         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64340         '#ifdef USE_UNLOCKED_IO'.
64341
64342 2004-10-04  Simon Josefsson  <jas@extundo.com>
64343
64344         * config/srclist.txt: Add memmem from glibc.
64345
64346 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64349
64350         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64351         modules/exclude, modules/getdate, modules/getline,
64352         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64353         modules/getusershell, modules/linebuffer, modules/md5,
64354         modules/mountlist, modules/posixtm, modules/readtokens,
64355         modules/readutmp, modules/regex, modules/sha1,
64356         modules/version-etc, modules/yesno:
64357         Remove dependency on unlocked-io.
64358
64359 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64360
64361         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64362
64363         * m4/unlocked-io.m4: Add copyright notice.
64364         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64365
64366 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64367
64368         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64369         * lib/xmalloc.c (xmemdup): Likewise.
64370         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64371         XFREE): Remove these long-obsolescent macros.
64372         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64373         * lib/xstrdup.c: Remove.
64374
64375         * lib/regex.c (re_comp): Cast gettext return value to char *,
64376         Problem reported by Martin Neitzel via Mark D. Baushke.
64377
64378 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64381         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64382         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64383         regex.c, sha1.c, version-etc.c, yesno.c:
64384         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64385         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64386         the includer's responsibility.
64387
64388         Sync from coreutils.
64389
64390         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64391         points to the start of a string, as the C Standard says the
64392         resulting behavior is undefined.
64393
64394         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64395         simple -> simple_backups, numbered_existing ->
64396         numbered_existing_backups, numbered -> numbered_backups
64397         to avoid shadowing problems.  All uses changed.
64398         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64399         * lib/backupfile.c (check_extension, numbered_backup):
64400         Rename locals to avoid shadowing 'basename'.
64401         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64402         once.
64403
64404         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64405         * lib/.cvsignore: Add getopt.h.
64406
64407 2004-10-04  Bruno Haible  <bruno@clisp.org>
64408
64409         * modules/README: New file.
64410         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64411         not a module.
64412
64413 2004-10-02  Jim Meyering  <jim@meyering.net>
64414
64415         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64416
64417 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64418
64419         * modules/strsep: New file.
64420
64421 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64422
64423         * m4/strsep.m4: New file.
64424
64425 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64426
64427         * lib/strsep.h: New file.
64428         * lib/strsep.c: New file.
64429
64430 2004-10-01  Simon Josefsson  <jas@extundo.com>
64431
64432         * lib/snprintf.c (snprintf): Handle size==0.
64433
64434 2004-10-01  Simon Josefsson  <jas@extundo.com>
64435             Bruno Haible  <bruno@clisp.org>
64436
64437         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64438         (snprintf): Declare 'args'.
64439
64440 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64441
64442         * lib/snprintf.c: Remove comments as to why each header is needed.
64443
64444 2004-10-01  Bruno Haible  <bruno@clisp.org>
64445
64446         * MODULES.html.sh: Add strsep.
64447
64448 2004-09-30  Simon Josefsson  <jas@extundo.com>
64449
64450         * modules/snprintf: New file.
64451
64452 2004-09-30  Simon Josefsson  <jas@extundo.com>
64453
64454         * m4/snprintf.m4: New file.
64455
64456 2004-09-30  Simon Josefsson  <jas@extundo.com>
64457
64458         * lib/snprintf.h, lib/snprintf.c: New files.
64459
64460 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64461
64462         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64463         (hol_entry_help): Never translate an empty string.
64464         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64465         * lib/argp.h (OPTION_NO_TRANS): New option.
64466
64467 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         * modules/argp (Maintainer): Replace Simon Josefsson
64470         by Sergey Poznyakoff.
64471
64472 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64475         changes merged back into glibc.
64476
64477 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64480
64481 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64482
64483         * lib/xvasprintf.c: Include xalloc.h.
64484         (xvasprintf): Use xalloc_die, not xmalloc_die.
64485
64486 2004-09-29  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/alloca-opt: New file, derived from modules/alloca.
64489         * modules/allocsa: Depend on alloca-opt instead of alloca.
64490         * modules/setenv: Likewise.
64491         * modules/vasnprintf: Likewise.
64492         * MODULES.html.sh: Add alloca-opt.
64493
64494 2004-09-28  Simon Josefsson  <jas@extundo.com>
64495
64496         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64497         LGPL, and to replace license template from GPL to LGPL.
64498
64499 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * modules/dummy: Change license to LGPL.
64502
64503 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64506
64507 2004-09-24  Simon Josefsson  <jas@extundo.com>
64508
64509         * modules/minmax (License): Change from GPL to LGPL.
64510
64511 2004-09-23  Simon Josefsson  <jas@extundo.com>
64512
64513         * gnulib-tool (--import): Typo.
64514
64515 2004-09-23  Simon Josefsson  <jas@extundo.com>
64516
64517         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64518
64519 2004-09-22  Bruno Haible  <bruno@clisp.org>
64520
64521         * modules/*: Add 'License' field.
64522         * gnulib-tool: Accept --extract-license option.
64523         (func_get_license): New function.
64524
64525 2004-09-21  Bruno Haible  <bruno@clisp.org>
64526
64527         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64528         Reported by Simon Josefsson.
64529
64530 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64531
64532         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64533         gl_AC_TYPE_LONG_LONG.
64534
64535 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64536
64537         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64538
64539 2004-09-18  Simon Josefsson  <jas@extundo.com>
64540         and  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64543         calls with autoreconf.  Define GL_LIB.
64544
64545 2004-09-14  Karl Berry  <karl@gnu.org>
64546
64547         * config/srclist.txt: unsync setenv.c, sigh.
64548
64549 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64552         Problem reported by Bruno Haible in:
64553         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64554
64555 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * config/srclist.txt: Comment out argp-pvh.c.
64558
64559 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64562         in case some system header has #define'd it.  Problem reported by
64563         Soeren D. Schulze in
64564         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64565
64566 2004-09-09  Karl Berry  <karl@gnu.org>
64567
64568         * regex.[ch]: delete from the root.  These were supposed to be
64569                 synced with emacs cvs, but this has not happened for about
64570                 a year, and anyway nothing else uses emacs regex.[ch].
64571                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64572                 lib/regex[.ch] is untouched.
64573
64574 2004-09-09  Bruno Haible  <bruno@clisp.org>
64575
64576         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64577
64578 2004-09-09  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64581         modifications.
64582         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64583
64584 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64585
64586         * modules/xvasprintf: New file.
64587         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64588
64589 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64590
64591         * lib/xvasprintf.h: New file.
64592         * lib/xvasprintf.c: New file.
64593         * lib/xasprintf.c: New file.
64594
64595 2004-09-08  Bruno Haible  <bruno@clisp.org>
64596
64597         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64598
64599 2004-09-08  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64602         length is > INT_MAX.
64603         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64604         more.
64605
64606 2004-09-08  Bruno Haible  <bruno@clisp.org>
64607
64608         * lib/stdint_.h: New file, taken from GNU clisp.
64609
64610 2004-09-08  Bruno Haible  <bruno@clisp.org>
64611             Oskar Liljeblad  <oskar@osk.mine.nu>
64612
64613         * modules/stdint: New file.
64614         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64615
64616 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         Import from coreutils.
64619         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64620         strings on unbounded length.  alloca's performance benefits aren't
64621         that important here.
64622         (V_STRDUP): Remove.
64623         (parse_with_separator): New function, with most of the internals
64624         of the old parse_user_spec.  Allow user to omit both user and group,
64625         for compatibility with FreeBSD.
64626         Clone only the user name, not the entire spec.
64627         Do not set *uid, *gid unless entirely successful.
64628         Avoid memory leak in some failing cases.
64629         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64630         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64631         (parse_user_spec): Rewrite to use parse_with_separator.
64632
64633 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64634
64635         * modules/userspec: Don't depend on alloca.
64636
64637 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64640
64641 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64642
64643         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64644         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64645         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64646
64647 2004-08-16  Simon Josefsson  <jas@extundo.com>
64648
64649         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64650         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64651         Add --dry-run for --import.
64652         Let user provided command line parameters override configure.ac
64653         settings.
64654
64655 2004-08-12  Simon Josefsson  <jas@extundo.com>
64656
64657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64658         as discussed with Paul Eggert in threads rooted at
64659         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64660         and
64661         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64662         Before, the test was empty, and relied on ELIDE_CODE in source
64663         code.)
64664         (gl_PREREQ_GETOPT): New macro.
64665         (gl_GETOPT): Use them.
64666
64667 2004-08-12  Simon Josefsson  <jas@extundo.com>
64668
64669         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64670         * lib/getopt_.h: Renamed from getopt.h.
64671
64672 2004-08-12  Simon Josefsson  <jas@extundo.com>
64673
64674         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64675         Change default library name from libfoo to libgnu.
64676         Now, if you have a configure.ac that says:
64677                 gl_SOURCE_BASE(gl)
64678                 gl_M4_BASE(gl/m4)
64679                 gl_MODULES(error getopt etcetera)
64680                 gl_INIT
64681         you can import all you need by running:
64682                 ../gnulib/gnulib-tool --import
64683
64684         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64685         (Makefile.am): Rewrite, use logic from argz.
64686         (Include): Use <getopt.h> instead of "getopt.h".
64687
64688 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * modules/argp (Files): Add m4/unlocked-io.m4.
64691         (Depends-on): Add extensions.
64692
64693 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64694
64695         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64696         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64697         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64698         Check for program_invocation_name, program_invocation_short_name,
64699         flockfile, funlockfile, features.h, _getopt_long_only_r.
64700
64701 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64704         its complicated substitute.
64705         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64706         and program_invocation_name.
64707         (__argp_basename) [!_LIBC]: Remove; the only use was
64708         replaced by its body.
64709         (__argp_short_program_name): Change condition from
64710         !defined __argp_short_program_name to
64711         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64712         to match argp-namefrob.h.
64713         (__argp_failure): Don't assume strerror_r returns char *.
64714         * lib/argp-parse.c (N_): Define unconditionally.
64715         (argp_default_options): Fill out initializers with 0 to avoid
64716         gcc warnings.
64717
64718 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64721         getopt1.c.
64722
64723 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64724
64725         Merge from coreutils.
64726
64727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64728
64729         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64730         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64731
64732 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         Merge from coreutils.
64735
64736         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64737         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64738         for Reliant Unix 5.43.
64739
64740         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64741         (union fooround): Use uintmax_t, not long int.
64742         The rest is a merge from libc:
64743         [defined _LIBC]: Include <shlib-compat.h>.
64744         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64745
64746         * lib/settime.c (settime): Recode to avoid warning with
64747         Sun Forte C 6U2.
64748
64749         * lib/strverscmp.c: Convert to UTF-8.
64750
64751 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64754         m4/uintmax_t.m4.
64755
64756 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         * modules/xalloc-die: New file.
64759         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64760
64761         * modules/md5 (Files): Add m4/uint32_t.m4.
64762         * modules/sha1: Renamed from modules/sha.
64763         (Files):
64764         Rename lib/sha.h to lib/sha1.h.
64765         Rename lib/sha.c to lib/sha1.c.
64766         Rename m4/sha.m4 to m4/sha1.m4.
64767         (lib_SOURCES): Likewise.
64768         (configure.ac): Rename gl_SHA to gl_SHA1.
64769         (Include): sha.h -> sha1.h.
64770
64771 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64772
64773         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64774         * m4/sha1.m4: Renamed from sha.m4.
64775         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64776
64777 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * lib/obstack.h (obstack_empty_p):
64780         Don't assume that chunk->contents is suitably aligned.
64781         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64782         Likewise. Problem reported by Benno in
64783         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64784
64785         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64786         readable.  This could be improved further but it'd take some work.
64787
64788 2004-08-08  Simon Josefsson  <jas@extundo.com>
64789
64790         * modules/xgethostname (Depends-on): Remove exit and error (not
64791         used).
64792
64793         * modules/getpass-gnu: Add getpass.h.
64794         (Depends-on): Add stdbool.
64795         * modules/getpass: Add getpass.h.
64796
64797 2004-08-08  Simon Josefsson  <jas@extundo.com>
64798
64799         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64800         Check getpass declaration.
64801
64802 2004-08-08  Simon Josefsson  <jas@extundo.com>
64803
64804         * lib/xgethostname.c: Don't include error.h (not used).
64805
64806         * lib/getpass.h: Add.
64807         * lib/getpass.c: Include getpass.h first.
64808
64809 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * lib/xalloc-die.c: New file.
64812         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64813         All uses removed.
64814         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64815         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64816         xalloc-die.c.
64817         (_, N_, xalloc_die): Move to xalloc-die.c.
64818         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64819         so that we needn't mess with xalloc_msg_memory_exhausted.
64820
64821         * lib/sha1.h: Renamed from sha.h.
64822         (SHA1_H): Renamed from _SHA_H.
64823         (sha1_ctx): Renamed from sha_ctx.
64824         (sha1_init_ctx): Renamed from sha_init_ctx.
64825         (sha1_process_block): Renamed from sha_process_block.
64826         (sha1_process_bytes): Renamed from sha_process_bytes.
64827         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64828         (sha1_read_ctx): Renamed from sha_read_ctx.
64829         (sha1_stream): Renamed from sha_stream.
64830         (sha1_buffer): Renamed from sha_buffer.
64831         * lib/sha1.c: Likewise; renamed from sha.c.
64832         Do not include <sys/types.h>.
64833         Include <stddef.h> rather than <stdlib.h>.
64834
64835 2004-08-08  Bruno Haible  <bruno@clisp.org>
64836
64837         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64838         FILESYSTEM_PREFIX_LEN.
64839         * lib/progreloc.c: Likewise.
64840         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64841
64842 2004-08-06  Simon Josefsson  <jas@extundo.com>
64843
64844         * modules/progname (Depends-on): Don't depend on stdbool.
64845
64846 2004-08-06  Simon Josefsson  <jas@extundo.com>
64847
64848         * modules/getsubopt: New file.
64849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64850         getsubopt.
64851
64852 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         More merge from coreutils.
64855
64856         * m4/utimens.m4, m4/utimecmp.m4: New files.
64857         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64858         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64859         prereq.m4, sha.m4: Import changes from coreutils.
64860
64861 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         More merge from coreutils.
64864         * modules/raise, modules/readtokens0, modules/utimens:
64865         * modules/utimecmp, module/xnanosleep: New files.
64866         * modules/strftime: Add lib/strftime.h.
64867         Change include from <time.h> to "strftime.h".
64868         * modules/yesno: Add lib/yesno.h.
64869         * modules/backupfile: Remove lib/addext.c.
64870         * modules/euidaccess: Add stat-macros.h.
64871         * modules/canonicalize, modules/euidaccess,
64872         modules/filemode, modules/lchown, modules/makepath,
64873         modules/rmdir, modules/stat: Likewise.
64874
64875 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64876
64877         Merge from tar.
64878         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64879         SIZE_MAX is a valid preprocessor constant.
64880         (__argp_basename): Change from "#ifndef _LIBC"
64881         to "#ifndef __argp_short_program_name", so that
64882         we don't compile these functions for tar.
64883
64884         More merges from coreutils.
64885         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64886         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64887         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64888         * lib/addext.c: Remove; no longer needed.
64889         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64890         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64891         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64892         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64893         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64894         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64895         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64896         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64897         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64898         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64899         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64900         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64901         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64902         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64903         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64904         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64905         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64906         Import changes from coreutils.
64907
64908 2004-08-05  Simon Josefsson  <jas@extundo.com>
64909
64910         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64911
64912 2004-08-05  Simon Josefsson  <jas@extundo.com>
64913
64914         * m4/getsubopt.m4: New file.
64915
64916 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         Merge from coreutils.
64919
64920         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64921         * m4/getcwd-path-max.m4: New files.
64922
64923         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64924         FILESYSTEM_PREFIX_LEN ->
64925         FILE_SYSTEM_PREFIX_LEN.
64926         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64927         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64928         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64929         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64930
64931         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64932         prerequisite modules now handle the DOS stuff.
64933         Don't check for unistd.h.
64934
64935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         Merge from coreutils.
64938
64939         * lib/.gdb-history: Remove; this doesn't belong here.
64940
64941         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64942         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64943         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64944         * lib/getcwd.c: New files.
64945
64946         * lib/dirname.h: Include <stdbool.h>.
64947         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64948         for consistency with POSIX terminology.  All uses changed.
64949         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64950         (strip_trailing_slashes): Use bool for booleans.
64951         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64952
64953         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64954         sometimes returns a positive errno value even when it succeeds.
64955         (print_errno_message) [!LIBC]: Fall back on strerror if
64956         __strerror_r fails.
64957
64958         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64959         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64960         (longest_relative_suffix): New function.
64961         (path_concat): Use it.  Assume first argument is not NULL.
64962         Port to DOS.  Omit redundant separators.
64963         Report an error instead of returning NULL.
64964         Use mempcpy instead of memcpy.
64965         (xpath_concat): Remove: not declared or used.
64966
64967         * lib/same.h: Include <stdbool.h>
64968         (same_name): Return bool, not int.
64969         * lib/same.c (same_name): Likewise.
64970         (errno): Don't declare; we assume C89 or better now.
64971
64972         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64973         if not already defined.
64974
64975         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64976         * lib/dup-safer.c (errno): Likewise.
64977
64978 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         Merge from coreutils.
64981         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64982         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64983         * modules/path-concat: Don't depend on strdup.
64984
64985 2004-08-03  Simon Josefsson  <jas@extundo.com>
64986
64987         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64988         * lib/progname.h: Don't include stdbool.h.
64989
64990 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64991
64992         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64993         * MODULES.html.sh (func_all_modules): Remove fatal.
64994
64995 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64996
64997         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64998
64999 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65002         working.
65003
65004 2004-08-02  Simon Josefsson  <jas@extundo.com>
65005
65006         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65007         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65008         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65009
65010 2004-08-01  Simon Josefsson  <jas@extundo.com>
65011
65012         * lib/xgetdomainname.c: Include stdlib.h, for free().
65013
65014 2004-07-19  Bruno Haible  <bruno@clisp.org>
65015
65016         * MODULES.html.sh (func_all_modules): Add dummy.
65017
65018 2004-07-16  Simon Josefsson  <jas@extundo.com>
65019
65020         * modules/dummy: New file.
65021
65022 2004-07-16  Simon Josefsson  <jas@extundo.com>
65023
65024         * lib/dummy.c: New file.
65025
65026 2004-07-16  Bruno Haible  <bruno@clisp.org>
65027
65028         * lib/backupfile.h: Add extern "C" for C++.
65029         * lib/closeout.h: Likewise.
65030         * lib/copy-file.h: Likewise.
65031         * lib/findprog.h: Likewise.
65032         * lib/full-write.h: Likewise.
65033         * lib/pathname.h: Likewise.
65034         * lib/progname.h: Likewise.
65035         * lib/stpcpy.h: Likewise.
65036         * lib/stpncpy.h: Likewise.
65037         * lib/strcase.h: Likewise.
65038         * lib/strstr.h: Likewise.
65039         * lib/xalloc.h: Likewise.
65040
65041         * lib/mbswidth.h: Add extern "C" for C++.
65042         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65043
65044 2004-07-13  Robert Millan  <robertmh@gnu.org>
65045
65046         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65047
65048 2004-07-09  Simon Josefsson  <jas@extundo.com>
65049
65050         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65051         failed without this.)
65052
65053 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * modules/chown (Files): Add lib/fchown-stub.c, since
65056         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65057
65058 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * lib/fchown-stub.c: New file.
65061
65062 2004-06-24  Jim Meyering  <jim@meyering.net>
65063
65064         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65065
65066 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         * modules/argz: Omit "#include".
65069
65070         * MODULES.html.sh (func_all_modules): Add calloc, to match
65071         2004-06-01 addition of calloc module.
65072
65073 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * m4/argz.m4: New file, which is autoupdated from libtool.
65076
65077 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65080         libtool.
65081
65082 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * config/srclist-update: Don't insist on "USA." before the
65085         close-comment, as libtool omits the period and puts the */ on a
65086         separate line.
65087         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65088         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65089
65090 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65091
65092         * modules/argz: New file.
65093         * MODULES.html.sh (func_all_modules): Add argz.
65094
65095 2004-06-12  Jim Meyering  <jim@meyering.net>
65096         and  Paul Eggert  <eggert@cs.ucla.edu>
65097
65098         * modules/hash (Files): Add lib/xalloc.h.
65099         * modules/pipe (Depends-on): Add wait-process.
65100         * modules/stat (Depends-on): Add xalloc.
65101         * modules/userspec (Files): Add lib/userspec.h.
65102         * modules/xstrto
65103
65104         Upgrade from gettext-0.13.
65105         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65106         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65107         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65108
65109 2004-06-10  Jim Meyering  <jim@meyering.net>
65110
65111         * lib/calloc.c: New file.
65112
65113 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * lib/getdate.y (yylex): Allow space between sign and number.
65116         Problem reported by Dan Jacobson.
65117
65118 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         Merge from coreutils CVS.
65121
65122         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65123         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65124         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65125         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65126         xstrtol.m4: Fix copyright date and/or serial number.
65127
65128         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65129         See if we need an fchown replacement.
65130         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65131         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65132         and use the replacement function if we detect either defect.
65133
65134         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65135         gl_UTIMECMP.
65136
65137 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65138         and  Jim Meyering  <jim@meyering.net>
65139
65140         Merge from coreutils CVS.
65141
65142         * lib/stat-macros.h: New file, with contents from file-type.h
65143         and coreutils' system.h.
65144         * lib/file-type.c: Include "stat-macros.h".
65145         * lib/file-type.h (file_type): Move all macro definitions to new file,
65146         stat-macros.h.
65147
65148         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65149         Wrap old code with this conditional.
65150         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65151         function that does not dereference symlinks.
65152         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65153
65154         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65155         dependency problems.
65156         (xreadlink): Accept new arg SIZE, for efficiency.
65157         All decls and uses changed.
65158         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65159
65160         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65161         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65162
65163         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65164         sysexits.h.
65165
65166 2004-06-01  Jim Meyering  <jim@meyering.net>
65167
65168         * m4/calloc.m4: New file.
65169
65170 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65173         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65174         Also, fix a typo in a diagnostic.
65175
65176 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65179         or AC_FUNC_REALLOC.
65180
65181 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65184         macros to be defined.
65185         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65186         the allocator returns NULL because the requested size is zero.
65187
65188 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65191         var.  Add comment explaining why libc still defines it.  This
65192         merges the following patch from glibc:
65193         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65194
65195 2004-05-20  Andreas Schwab  <schwab@suse.de>
65196
65197         * m4/free.m4: Replace free if it not known to work, not the other
65198         way round.
65199
65200 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65203         present in glibc since revision 1.1 of this file.
65204         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65205         obstack_alignment_mask, obstack_alloc, obstack_base,
65206         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65207         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65208         obstack_grow0, obstack_init, obstack_int_grow,
65209         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65210         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65211         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65212         nonexistent functions.
65213
65214 2004-05-18  Karl Berry  <karl@gnu.org>
65215
65216         * config/srclist.txt: break link for vasnprintf.c.
65217
65218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         Port obstack to the AS/400, where pointers are 16 bytes wide and
65221         you cannot cast an integer to a valid pointer.  This patch is
65222         currently waiting to be integrated into glibc; see
65223         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65224
65225         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65226         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65227         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65228         (struct obstack): temp member is now a union of a pointer and
65229         an integer, instead of an integer.  All integer uses changed.
65230         This does not affect the physical layout of struct obstack,
65231         except on hosts (like the AS/400) where the size or alignment of
65232         void * is greater than that of ptrdiff_t.
65233         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65234         __STDC__)]: Store temporary in pointer member of union, not
65235         integer member.
65236         * lib/obstack.c: Include <stddef.h>, for offsetof.
65237         (struct fooalign): Remove; it doesn't need a name.
65238         (union fooround): Change double to long double, and add void *.
65239         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65240         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65241         not a macro.  Hence the values are always int; so remove all
65242         casts-to-int in uses.
65243
65244 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65245
65246         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65247         we can get this patch merged into glibc.
65248
65249 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65250             Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * m4/argp: Depend on alloca.
65253
65254 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65255             Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65258         freecoding.
65259
65260 2004-05-17  Bruno Haible  <bruno@clisp.org>
65261
65262         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65263         precision that consists of a '.' followed by an empty digit string.
65264         Patch by Tor Lillqvist <tml@iki.fi>.
65265
65266 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65267
65268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65269         for backward compatibility with older code.  We need our own
65270         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65271         it under some other name, and our alloca.h will define it.
65272
65273 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65274             Derek Price  <derek@ximbiot.com>
65275
65276         * lib/alloca.c: Include <alloca.h>, to get our interface.
65277         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65278         include <alloca.h> first.  Use C89 prototype for alloca; this
65279         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65280         Use #elif for simplicity, since we can assume C89 now.
65281         Don't try to source the system alloca.h since it will not be found
65282         and to prevent recursively including its replacement.
65283         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65284         * lib/regex.c: Likewise.
65285
65286 2004-05-16  Derek Price  <derek@ximbiot.com>
65287             Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         getline cleanup.  This changes the getndelim2 API: both order of
65290         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65291         no delimiter).
65292
65293         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65294         interface does that.
65295         (getline): Always use getdelim, so that we don't have two
65296         copies of this code.
65297         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65298         if available.
65299         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65300         (GETNDELIM2_MAXIMUM): New macro.
65301         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65302         instead of the old practice of delim2==0.  All callers changed.
65303         Return -1 on overflow, instead of returning junk.
65304         Do not set *linesize unless allocation succeeds.
65305         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65306         that we include sys/types.h.
65307         * lib/getnline.h: Likewise.
65308         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65309         (getndelim2): Reorder arguments.
65310         * lib/getnline.c (getnline, getndelim):
65311         Don't discard the NMAX argument.
65312         (getnline): Invoke getndelim, to avoid code duplication.
65313         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65314         of (size_t) -1 by callers of the getnline family.
65315
65316 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65319         Check for gettimeofday.
65320         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65321         Check for settimeofday, stime.
65322
65323 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * lib/nanosleep.c (suspended): Change its type from int to
65326         sig_atomic_t volatile.
65327         (first_call): Make it private to rpl_nanosleep, and have it
65328         be zero initially as that's a bit faster.
65329         (my_usleep): Round up fractional times instead of truncating them,
65330         as this is the usual meaning for 'sleep'.
65331
65332         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65333         doesn't work.
65334         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65335         (ENOSYS): Define if not defined.
65336         (settime): Fall back on stime if it exists and settimeofday fails.
65337         But don't bother with fallbacks if a method fails with errno == EPERM.
65338
65339 2004-05-11  Jim Meyering  <jim@meyering.net>
65340
65341         Prior to this change, the save_cwd caller required read access to the
65342         current directory on most systems (ones with the fchdir function).
65343
65344         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65345         fails, try write-only, and finally, resort to using xgetcwd.
65346
65347 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * lib/obstack.c, obstack.h: Import changes from libc.
65350
65351 2004-04-28  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65354         also implicitly appends .exe to executables.
65355         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65356         accepts Windows pathnames.
65357         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65358         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65359         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65360         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65361         Reported by Derek Robert Price <derek@ximbiot.com>.
65362
65363 2004-04-21  Karl Berry  <karl@gnu.org>
65364
65365         * config/srclist.txt (localcharset.c): break sync.
65366
65367 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65368
65369         * m4/host-os.m4: Add a copyright notice.
65370
65371 2004-04-20  Jim Meyering  <jim@meyering.net>
65372
65373         Change UTILS_ to gl_ in AC_DEFINE'd names.
65374         Change utils_- and jm_-prefixed variables, too.
65375         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65376         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65377         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65378
65379         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65380         Don't emit trailing blanks.
65381         Also rename jm_-prefixed variables to have gl_ prefix.
65382
65383         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65384         Also rename jm_-prefixed variables to have gl_ prefix.
65385
65386         * m4/jm-macros.m4: Reflect the renamings.
65387         * m4/prereq.m4: Likewise.
65388
65389 2004-04-20  Jim Meyering  <jim@meyering.net>
65390
65391         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65392         memory.
65393
65394 2004-04-20  Jim Meyering  <jim@meyering.net>
65395             Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65398         memory when realloc fails.
65399
65400 2004-04-19  Jim Meyering  <jim@meyering.net>
65401
65402         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65403         now that readutmp.c may call `free (0)'.
65404
65405 2004-04-19  Bruno Haible  <bruno@clisp.org>
65406
65407         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65408         * m4/inttypes_h.m4: Likewise.
65409         * m4/stdint_h.m4: Likewise.
65410         * m4/intmax_t.m4: Likewise.
65411         * m4/uintmax_t.m4: Likewise.
65412
65413 2004-04-18  Jim Meyering  <jim@meyering.net>
65414
65415         * m4/prereq.m4: Don't forbid jm_ prefix.
65416
65417         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65418         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65419         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65420         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65421         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65422         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65423         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65424         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65425         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65426         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65427         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65428         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65429         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65430         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65431         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65432         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65433         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65434         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65435         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65436
65437 2004-04-18  Jim Meyering  <jim@meyering.net>
65438
65439         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65440         failure, don't leak memory and do call END_UTMP_ENT.
65441
65442 2004-04-16  Jim Meyering  <jim@meyering.net>
65443
65444         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65445         coreutils' stat program.
65446         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65447
65448 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65449
65450         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65451         C89.
65452         (CHAR_BIT): Remove, since we assume C89.
65453         Include <stdint.h> if available, as per current Autoconf CVS advice.
65454
65455 2004-03-31  Jim Meyering  <jim@meyering.net>
65456
65457         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65458         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65459         * m4/xalloc.m4: Likewise.
65460
65461 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65462
65463         Merge from coreutils.
65464
65465         * m4/inttostr.m4: New file.
65466         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65467         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65468         Require gl_CLOCK_TIME.
65469         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65470
65471 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65472
65473         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65474         not bool, to be more consistent with Unix conventions.
65475         Suggested by Bruno Haible.
65476
65477         Merge from coreutils.
65478
65479         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65480         * lib/umaxtostr.c: New files.
65481
65482         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65483         the usual <time.h> dance.
65484         (get_date): Change signature to support fractional time stamps.
65485         All callers changed.
65486         * lib/getdate.y: Include "getdate.h" first, as we can now
65487         assume C89 and don't need to worry about 'const'.
65488         Similarly, include "unlocked-io.h" near start, not in middle.
65489         Include <limits.h>.
65490         (textint.value): Use long int rather than int.
65491         (textint.digits): Use size_t rather than int.
65492         (BILLION, LOG10_BILLION): New constants.
65493         (parser_control): New member rel_ns.  Members day_ordinal,
65494         time_zone, month, day, hour, minutes, rel_year, rel_month,
65495         rel_day, rel_hour, rel_minutes, rel_seconds
65496         are now long int, not int.  Member seconds is now struct timespec,
65497         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65498         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65499         not int.
65500         (%union.intval): Now long int, not int.
65501         New member timespec.
65502         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65503         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65504         (spec): Now is a timespec or an item list.
65505         (timespec, items): New nonterminals.
65506         (time, rel, relunit, number, get_date):
65507         Add support for fractional seconds.
65508         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65509         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65510         (to_hour): First arg is now long int, not int.
65511         (to_year): Returns long int, not int.
65512         Don't treat year -70 like 70.
65513         (tm_diff): Returns long int, not int.
65514         (lookup_word): Use bool instead of int when appropriate.
65515         (yylex): Use size_t for count, not int.
65516         Detect overflow when parsing large integer constants.
65517         Add support for fractions.
65518         (get_date): Make pointers 'const' if possible.
65519         Use more-portable code to detect integer overflow.
65520         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65521         Don't use ctime; it's not reliable if the year has >4 digits.
65522
65523         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65524         This is for compatibility with BSD.
65525
65526         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65527         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65528         From coreutils' system.h.
65529
65530         * lib/userspec.c: Don't include "posixver.h".
65531         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65532         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65533         compatible extension.  Simplify code by removing a boolean int
65534         that was always nonzero if a string was nonnull.
65535
65536 2004-03-30  Jim Meyering  <jim@meyering.net>
65537
65538         Merge from coreutils.
65539
65540         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65541         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65542         on some systems one must include <grp.h> before it.
65543         Reported by Christian Krackowizer.
65544
65545 2004-03-30  Jim Meyering  <jim@meyering.net>
65546
65547         Merge from coreutils.
65548
65549         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65550
65551         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65552         an empty input stream.
65553
65554         * lib/readtokens.c: Include <stdbool.h>.
65555         (readtoken): Use `size_t' rather than int/long.
65556         All callers adjusted.
65557         Use `bool' rather than `int' where appropriate.
65558         Use memset rather than an explicit loop.
65559         Use x2nrealloc rather than xrealloc.
65560         Allow the use of `\0' as a delimiter.
65561         (readtokens): Likewise.
65562         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65563
65564 2004-03-30  Jim Meyering  <jim@meyering.net>
65565
65566         * m4/realloc.m4: Remove file, since now it does no more than
65567         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65568         the `configure.ac' section of module/realloc.
65569         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65570
65571 2004-03-30  Bruno Haible  <bruno@clisp.org>
65572
65573         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65574         nonnull.
65575
65576 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65577
65578         Merge changes to getloadavg.c from coreutils and Emacs.
65579
65580         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65581         Define to an expression, not to the empty string.
65582         Include cloexec.h and xalloc.h.
65583         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65584         Use set_cloexec_flag rather than rolling our own.
65585         * lib/cloexec.c, lib/cloexec.h: New files.
65586
65587 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65588
65589         * m4/cloexec.m4: New file.
65590
65591 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65592
65593         * lib/getopt.h: Sync with libc CVS.
65594
65595 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65596             Bruno Haible  <bruno@clisp.org>
65597
65598         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65599         mbswidth.
65600
65601 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65602             Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/mbswidth.h: Include <wchar.h> only if
65605         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65606         <wchar.h>.
65607         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65608
65609 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65610
65611         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65612         Sync with libc CVS.
65613         * lib/getopt_int.h: New file, also synced from libc.
65614
65615 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65616
65617         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65618         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65619         Bring back getopt.c, getopt.h, getopt1.c.
65620
65621 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65622
65623         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65624         All uses changed.  Check for sa_sigaction member; this fixes
65625         a bug first reported by Jason Andrade in
65626         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65627
65628 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65629
65630         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65631         '#if' expressions.  Unlike the code it replaces, it does not
65632         depend on (defined _SC_PAGESIZE).  However, it does depend on
65633         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65634         first reported by Jason Andrade in
65635         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65636
65637 2004-02-25  Simon Josefsson  <jas@extundo.com>
65638
65639         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65640
65641 2004-02-25  Simon Josefsson  <jas@extundo.com>
65642
65643         * lib/strdup.h: New file.
65644         * lib/strdup.c: Include it.
65645         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65646         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65647
65648 2004-02-23  Karl Berry  <karl@gnu.org>
65649
65650         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65651         (from fencepost.gnu.org:/gd/gnuorg).
65652
65653 2004-02-23  Karl Berry  <karl@gnu.org>
65654
65655         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65656         * config/srclist.txt: add maintain/standards documents.
65657
65658 2004-02-18  Bruno Haible  <bruno@clisp.org>
65659
65660         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65661         Reported by Derek Robert Price <derek@ximbiot.com>.
65662
65663 2004-02-16  Karl Berry  <karl@gnu.org>
65664
65665         * config/mkinstalldirs, install-sh: update from automake.
65666
65667 2004-02-06  Karl Berry  <karl@gnu.org>
65668
65669         * m4/po.m4: update from gettext 0.14.1.
65670
65671 2004-02-06  Karl Berry  <karl@gnu.org>
65672
65673         * lib/config.charset: update from gettext 0.14.1.
65674
65675 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65676
65677         Add comments and code, prompted by suggestions from Bruno Haible
65678         for sh-quote.
65679         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65680         describing the enum quoting_style values.
65681         * lib/quotearg.c (quotearg_alloc): New function.
65682         (quotearg_buffer_restyled): Treat lone { and } as special.
65683         Treat = as special.  Work around bug with older shells
65684         that "see" a '\' that is really the 2nd byte of a multibyte char.
65685         Quote empty string with shell_quoting_style.
65686
65687 2004-02-03  Bruno Haible  <bruno@clisp.org>
65688
65689         * m4/pipe.m4: New file, from GNU gettext.
65690
65691 2004-02-03  Bruno Haible  <bruno@clisp.org>
65692
65693         * lib/pipe.h: New file, from GNU gettext.
65694         * lib/pipe.c: New file, from GNU gettext.
65695
65696 2004-01-27  Bruno Haible  <bruno@clisp.org>
65697
65698         * m4/execute.m4: New file, from GNU gettext.
65699
65700 2004-01-27  Bruno Haible  <bruno@clisp.org>
65701
65702         * lib/execute.h: New file, from GNU gettext.
65703         * lib/execute.c: New file, from GNU gettext.
65704         * lib/w32spawn.h: New file, from GNU gettext.
65705
65706 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65707
65708         Merge from diffutils.
65709
65710         * lib/file-type.c (file_type): Add typed memory objects.
65711         * lib/file-type.h (S_TYPEISTMO): New macro.
65712
65713         * lib/c-stack.h (c_stack_action): Remove argv argument.
65714         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65715         (die): Don't calculate message unless segv_action returns.
65716         (get_stack_location, min_address_from_argv, max_address_from_argv,
65717         volatile stack_base, volatile_stack_size): Remove.
65718         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65719         that every segmentation violation is a stack overflow.  (Ouch!)
65720         See Debian bug 136249 (still outstanding) for more info about why
65721         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65722
65723 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65724
65725         Exit-status fix from coreutils.
65726
65727         Use exit_failure consistently in place of EXIT_FAILURE,
65728         so that program exit statuses are consistent on failure.
65729
65730         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65731         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65732         * lib/argmatch.h: Comment fix to match the above.
65733         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65734         Now a macro referring to exit_failure, instead of a separate
65735         variable.  Include "exitfail.h" to get it.
65736         * lib/xstrtol.h: Include "exitfail.h".
65737         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65738
65739         * lib/long-options.c (parse_long_options): Use prototype
65740         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65741         for clarity.
65742
65743 2004-01-21  Jim Meyering  <jim@meyering.net>
65744
65745         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65746         so as not to conflict with a different-sized __mktime_internal
65747         function in GNU libc.
65748         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65749         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65750
65751 2004-01-20  Karl Berry  <karl@gnu.org>
65752
65753         * config/config.guess: update from config.
65754
65755         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65756
65757 2004-01-20  Bruno Haible  <bruno@clisp.org>
65758
65759         Safer stack allocation.
65760         * lib/setenv.c: Include allocsa.h.
65761         (alloca): Remove fallback definition.
65762         (freea): Remove macro.
65763         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65764         instead of freea.
65765
65766 2004-01-20  Bruno Haible  <bruno@clisp.org>
65767
65768         * m4/eealloc.m4: New file, from GNU gettext.
65769
65770 2004-01-20  Bruno Haible  <bruno@clisp.org>
65771
65772         * m4/allocsa.m4: New file, from GNU gettext.
65773
65774 2004-01-20  Bruno Haible  <bruno@clisp.org>
65775
65776         * lib/xallocsa.h: New file, from GNU gettext.
65777         * lib/xallocsa.c: New file, from GNU gettext.
65778
65779 2004-01-20  Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65782
65783 2004-01-20  Bruno Haible  <bruno@clisp.org>
65784
65785         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65786         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65787         specially.
65788
65789 2004-01-20  Bruno Haible  <bruno@clisp.org>
65790
65791         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65792         patch.
65793
65794 2004-01-20  Bruno Haible  <bruno@clisp.org>
65795
65796         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65797
65798 2004-01-20  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/eealloc.h: New file.
65801
65802 2004-01-20  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/binary-io.h: Avoid warnings on Cygwin.
65805
65806 2004-01-20  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/allocsa.h: New file, from GNU gettext.
65809         * lib/allocsa.c: New file, from GNU gettext.
65810
65811 2004-01-18  Karl Berry  <karl@gnu.org>
65812
65813         * doc/gpl.texi, doc/lgpl.texi: new files.
65814
65815 2004-01-18  Karl Berry  <karl@gnu.org>
65816
65817         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65818         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65819
65820 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65821
65822         Merge from coreutils.
65823
65824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65825         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65826         (gl_DEFAULT_POSIX2_VERSION): Move
65827         the documentation from 'configure' into 'config.hin',
65828         so that 'configure --help' isn't burdened by it and
65829         we don't have to worry about its formatting there.
65830         Reword the documentation so that it's more succinct
65831         and can be run together into a single paragraph.
65832         * m4/same.m4 (gl_SAME): Check for pathconf.
65833
65834 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65835
65836         Merge from coreutils.
65837
65838         * lib/posixver.c: Include posixver.h.
65839
65840         * lib/same.c: Include <stdbool.h>, <limits.h>.
65841         (_POSIX_NAME_MAX): Define if not defined.
65842         (MIN): New macro.
65843         (same_name): If file names are silently truncated, report
65844         that the file names are the same if they are the same after
65845         the silent truncation.
65846
65847         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65848         conversion function.
65849         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65850         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65851         longer needed.
65852
65853 2004-01-15  Jim Meyering  <jim@meyering.net>
65854
65855         Merge from coreutils.
65856
65857         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65858         if no library is required.
65859         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65860         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65861         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65862         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65863         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65864         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65865         value, $ac_cv_search_crypt, if it's "none required".
65866         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65867         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65868         not gl_FUNC_GETLOADAVG.
65869         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65870         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65871
65872 2004-01-15  Jim Meyering  <jim@meyering.net>
65873
65874         Merge from coreutils.
65875
65876         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65877         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65878         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65879
65880         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65881         optional configure-time default.
65882
65883         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65884
65885         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65886
65887 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65888
65889         Merge from coreutils.
65890
65891         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65892         value, $ac_cv_search_nanosleep, if it's "none required".
65893
65894 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65895
65896         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65897         with like-named macro in fnmatch.c.
65898         (EXT): Use an internal constant instead.
65899
65900         Merge fnmatch patches from glibc.
65901         * lib/fnmatch.c (mbsinit): Remove define.
65902         Add libc_hidden_ver (__fnmatch, fnmatch).
65903         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65904         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65905
65906 2004-01-14  Karl Berry  <karl@gnu.org>
65907
65908         * config/install-sh: update from automake.
65909
65910 2004-01-13  Karl Berry  <karl@gnu.org>
65911
65912         * config/install-sh: update from automake.
65913
65914 2004-01-09  Karl Berry  <karl@gnu.org>
65915
65916         * config/install-sh: update from automake.
65917
65918 2004-01-05  Karl Berry  <karl@gnu.org>
65919
65920         * config/config.{sub,guess}: update from config.
65921
65922 2003-12-31  Karl Berry  <karl@gnu.org>
65923
65924         * config/depcomp: update from automake.
65925
65926 2003-12-14  Karl Berry  <karl@gnu.org>
65927
65928         * lib/config.charset: update from gettext-runtime.
65929
65930 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65931
65932         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65933         Bug reported by Alfred M. Szmidt.
65934
65935 2003-12-03  Bruno Haible  <bruno@clisp.org>
65936
65937         * m4/gettext.m4: Upgrade from gettext-0.13.
65938         * m4/po.m4: Upgrade from gettext-0.13.
65939         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65940         * m4/intmax.m4: New file, from gettext-0.13.
65941         * m4/printf-posix.m4: New file, from gettext-0.13.
65942
65943 2003-11-29  Karl Berry  <karl@gnu.org>
65944
65945         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65946
65947 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65948             Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/printf-parse.h: Don't include sys/types.h.
65951         (ARG_NONE): New macro.
65952         (char_directive): Change type of *arg_index fields to size_t.
65953         * lib/printf-parse.c: Don't include sys/types.h.
65954         (SSIZE_MAX): Remove macro.
65955         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65956         Remove unnecessary overflow check.
65957         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65958         fields.
65959
65960 2003-11-25  Bruno Haible  <bruno@clisp.org>
65961
65962         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65963
65964 2003-11-25  Bruno Haible  <bruno@clisp.org>
65965
65966         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65967         gt_TYPE_SSIZE_T.
65968
65969 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65970
65971         * modules/alloca: Remove dependency on xalloc.
65972
65973 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65974
65975         * lib/alloca.c: Remove dependency on xalloc module.
65976         (xalloc_die): Remove.
65977         (memory_full) [!defined emacs]: New macro.
65978         [!defined emacs]: Don't include xalloc.h.
65979         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65980         address arithmetic overflows.  Change datatypes a bit to avoid
65981         unnecessary casts.
65982
65983 2003-11-22  Jim Meyering  <jim@meyering.net>
65984
65985         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65986         s/size/size_t/.
65987
65988 2003-11-21  Karl Berry  <karl@gnu.org>
65989
65990         * config/config.{sub,guess}: update from config.
65991
65992 2003-11-18  Karl Berry  <karl@gnu.org>
65993
65994         * config/config.{sub,guess}: update from config.
65995
65996         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65997
65998 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65999
66000         * README: Mention that S+T cannot overflow if S is the size of
66001         an existing object and T is sufficiently small.
66002
66003 2003-11-17  Jim Meyering  <jim@meyering.net>
66004
66005         On systems without utime and without a utimes function capable of
66006         dealing with a NULL struct utimbuf* argument, this utime replacement
66007         could -- in unusual circumstances -- leak a file descriptor.
66008         * lib/utime.c: Include <unistd.h> and <errno.h>.
66009         (utime_null): Be sure to close `fd' and to preserve errno.
66010         Reported by Geoff Collyer via Arnold Robbins.
66011
66012 2003-11-17  Bruno Haible  <bruno@clisp.org>
66013
66014         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66015         (Depends-on): Add xsize.
66016
66017 2003-11-17  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66020
66021 2003-11-17  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/vasnprintf.c (alloca): Remove fallback definition.
66024         (freea): Remove definition.
66025         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66026         Reported by Paul Eggert.
66027
66028 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66029             Bruno Haible  <bruno@clisp.org>
66030
66031         Protect against address arithmetic overflow.
66032         * lib/printf-args.h: Include stddef.h.
66033         (arguments): Change type of field 'count' to size_t.
66034         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66035         'unsigned int' where appropriate.
66036         * lib/printf-parse.h: Include sys/types.h.
66037         (char_directive): Change type of *arg_index fields to ssize_t.
66038         (char_directives): Change type of fields 'count', max_*_length to
66039         size_t.
66040         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66041         (SSIZE_MAX): Define fallback value.
66042         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66043         instead of 'int' where appropriate. Check a_allocated, d_allocated
66044         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66045         * lib/vasnprintf.c: Include xsize.h.
66046         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66047         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66048         overflow. Avoid wraparound when converting a width or precision from
66049         decimal to binary.
66050
66051 2003-11-16  Bruno Haible  <bruno@clisp.org>
66052
66053         Update from GNU gettext.
66054         * lib/printf-parse.c: Generalize to it can be compiled for wide
66055         strings.
66056         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66057         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66058         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66059         SNPRINTF): New macros.
66060         Don't include <alloca.h> if the file is used inside libintl.
66061         (local_wcslen): New function, for Solaris 2.5.1.
66062         (VASNPRINTF): Use it instead of wcslen.
66063
66064 2003-11-16  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/xsize.h (xmax): New function.
66067         (xsum, xsum3, xsum4): Declare as "pure" functions.
66068
66069 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66070
66071         * modules/xalloc (Files): Undo latest change, since xalloc.h
66072         no longer needs SIZE_MAX or PTRDIFF_MAX.
66073
66074 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66075
66076         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66077         gl_PTRDIFF_MAX.
66078
66079 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66080
66081         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66082         "return", to pacify some unknown compiler.  Problem reported
66083         by Joerg Schilling.
66084
66085 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66086
66087         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66088         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66089         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66090         heuristic is just as accurate as far as we know, and it removes a
66091         dependency on size_max.m4 and ptrdiff_max.m4.
66092
66093 2003-11-11  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/xsize (Files): Add m4/size_max.m4.
66096         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66097
66098 2003-11-11  Bruno Haible  <bruno@clisp.org>
66099
66100         * m4/size_max.m4: New file.
66101         * m4/ptrdiff_max.m4: New file.
66102         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66103         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66104         (gl_XALLOC): Invoke it.
66105
66106 2003-11-11  Bruno Haible  <bruno@clisp.org>
66107
66108         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66109         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66110         defined.
66111
66112 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66113
66114         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66115         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66116         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66117         From Bruno Haible.
66118         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66119         not (size_t) -1, since it's defined here.
66120
66121 2003-11-09  Karl Berry  <karl@gnu.org>
66122
66123         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66124
66125 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66126
66127         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66128         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66129         Reject sizes of exactly SIZE_MAX bytes.
66130         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66131         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66132
66133 2003-11-05  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66136         SIZE_MAX defined in <limits.h> on Solaris.
66137
66138 2003-11-04  Jim Meyering  <jim@meyering.net>
66139
66140         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66141         variable names, rather than @VAR@.
66142         * modules/poll: Likewise.
66143
66144 2003-11-04  Bruno Haible  <bruno@clisp.org>
66145
66146         * modules/xsize: New file.
66147         * modules/linebreak: Depend on xsize.
66148         * MODULES.html.sh (func_all_modules): Add xsize.
66149
66150 2003-11-04  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/xsize.m4: New file.
66153
66154 2003-11-04  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/xsize.h: New file.
66157         * lib/linebreak.c: Include xsize.h.
66158         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66159         argument for overflow.
66160         Suggested by Paul Eggert.
66161
66162 2003-11-03  Karl Berry  <karl@gnu.org>
66163
66164         * config/config.{guess,sub}: update from config.
66165
66166 2003-11-03  Jim Meyering  <jim@meyering.net>
66167
66168         * modules/userspec (lib_SOURCES): Add userspec.h.
66169         (Include): Add "userspec.h".
66170         Improve description.
66171
66172 2003-11-03  Jim Meyering  <jim@meyering.net>
66173
66174         * lib/userspec.c: Include "userspec.h".
66175         * lib/userspec.h: New file.
66176
66177 2003-11-03  Bruno Haible  <bruno@clisp.org>
66178
66179         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66180
66181 2003-11-03  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66184         available, to avoid (extremely rare) race condition.
66185         Suggested by Paul Eggert.
66186
66187 2003-11-02  Karl Berry  <karl@gnu.org>
66188
66189         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66190
66191 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66192
66193         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66194         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66195         (read_filesystem_list): Set and use me_type_malloced.
66196         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66197         whatever the type happens to be), for brevity and consistency.
66198         Check for size calculation overflow on Alphas running OSF/1.
66199
66200 2003-10-31  Jim Meyering  <jim@meyering.net>
66201
66202         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66203
66204         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66205
66206 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66207             Bruno Haible  <bruno@clisp.org>
66208
66209         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66210         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66211
66212 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66215         netbsd*-gnu*.  Suggested by Robert Millan.
66216
66217 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66218
66219         * modules/group-member: Depend on stdbool.
66220
66221 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66222
66223         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66224
66225 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66226
66227         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66228         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66229         after the 'gnu' in these cases.  This fixes some bugs in the
66230         previous change, and is based on suggestions by Robert Millan.
66231
66232 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66233
66234         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66235         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66236         no longer needed.
66237         * lib/quotearg.c (quotearg_n_options): Use it.
66238         * lib/group-member.c: Include <stdbool.h>.
66239         (free_group_info): Arg is now const *; don't free arg.
66240         (get_group_info): Now returns bool and accepts struct group_info *,
66241         rather than returning a malloc'ed struct group_info *.
66242         All uses changed.  Check for overflow in internal size calculation.
66243
66244         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66245         rather than xmalloc/xrealloc.
66246         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66247         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66248         conformance bug: the old code used a pointer after freeing the
66249         storage that it addressed.
66250         * lib/hash.c (hash_initialize): Simplify the code by using
66251         xalloc_oversized rather than doing it by hand.
66252         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66253         the buffer preserved.  Use free and xmalloc instead.
66254         * lib/quotearg.c (quotearg_n_options): Likewise.
66255         Use a simpler test for size overflow.  Don't use xalloc_oversized
66256         because unsigned int might be wider than size_t (!); this suggests
66257         that we should switch from unsigned int to size_t for slot numbers.
66258
66259 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66260
66261         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66262         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66263         NetBSD kernels.  Requested by Richard Stallman.
66264
66265 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66266
66267         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66268         to allocate the returned structure.  Do not allocate a subarray,
66269         as x2nrealloc will do that.
66270         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66271         instead of xnrealloc.
66272         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66273
66274 2003-10-27  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/stdbool_.h: Better support for BeOS.
66277
66278 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66279
66280         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66281         now uses inline.
66282
66283 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66284
66285         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66286         callers that want to do their own size-overflow checking.  Include
66287         <stdbool.h>, since xalloc_oversized returns bool.
66288         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66289         to use xalloc_oversized.
66290
66291         Add two functions x2realloc, x2nrealloc, for programs that grow
66292         arrays dynamically by doubling their sizes.
66293         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66294         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66295         New functions.
66296
66297         Port to C99 semantics for 'inline' of external functions.
66298         Bug reported by Bruno Haible.
66299         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66300         with the old contents of xnmalloc.
66301         (xnmalloc, xmalloc): Use it.
66302         (xnrealloc_inline): New static inline function,
66303         with the old contents of xnrealloc.
66304         (xnrealloc, xrealloc): Use it.
66305
66306         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66307         that.
66308
66309 2003-10-26  Karl Berry  <karl@gnu.org>
66310
66311         * config/srclist.txt (COPYING.DOC): no longer available from
66312         /gd/gnuorg; don't know where the ultimate source is.
66313
66314 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66315
66316         Fix several address-calculation bugs in the hash modules,
66317         plus some minor code cleanup.
66318
66319         * lib/hash.h: Include <stdbool.h>, for bool.
66320         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66321         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66322         hash_get_n_entries, hash_get_max_bucket_length,
66323         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66324         hash_rehash): Use size_t rather than unsigned.
66325         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66326         hash_get_n_buckets_used, hash_get_n_entries,
66327         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66328         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66329         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66330         Likewise.
66331         (SIZE_MAX): Define if not defined.
66332         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66333         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66334         hash_print):
66335         Use const * when possible.
66336         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66337         (check_tuning): Fix bug: if tuning parameters were very close to
66338         0 or 1, rounding errors could have caused subscript violations.
66339         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66340         (hash_initialize): Add 'fail:' label
66341         to free table and return NULL, and use it to simplify code.
66342         Use calloc rather than clearing the storage ourself.
66343         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66344         buffer size calculations.
66345         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66346         Include <stddef.h>, for size_t.
66347         * lib/hash-pjw.c (hash_pjw): Likewise.
66348         Switch to method described by Bruno Haible.
66349         Include <limits.h>, for CHAR_BIT.
66350         (SIZE_BITS): New macro.
66351
66352 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66353
66354         * m4/getline.m4 (AM_FUNC_GETLINE):
66355         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66356         hosts.  Problem reported by Derek Robert Price in
66357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66358         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66359         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66360
66361 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66362
66363         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66364         ceiling the allocation at NMAX bytes rather than silently
66365         discarding input bytes before NMAX is reached.  This makes
66366         a difference only if NMAX exceeds SIZE_MAX / 2.
66367
66368         * lib/obstack.c: Merge from glibc.
66369         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66370         Add libc_hidden_def (_obstack_newchunk).
66371         (_obstack_free) [! defined _LIBC]: Remove.
66372         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66373         a clone of the function body.
66374         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66375         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66376
66377         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66378         glibc.
66379         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66380         arg to memcpy.
66381
66382         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66383         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66384         Don't use lvalue casts, as GCC plans to remove support for them
66385         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66386         was also present in the non-GCC version, indicating that this
66387         code had always been buggy and had never been widely used.
66388         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66389         Use the fast variant of each macro, rather than copying the
66390         definiens of the fast variant; that way, we'll be more likely to
66391         catch future bugs in the fast variants.
66392
66393 2003-10-20  Bruno Haible  <bruno@clisp.org>
66394
66395         * modules/wait-process: New file.
66396         * MODULES.html.sh (func_all_modules): Add wait-process.
66397
66398 2003-10-20  Bruno Haible  <bruno@clisp.org>
66399
66400         * m4/wait-process.m4: New file.
66401
66402 2003-10-20  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/wait-process.h: New file, from GNU gettext.
66405         * lib/wait-process.c: New file, from GNU gettext.
66406
66407 2003-10-19  Jim Meyering  <jim@meyering.net>
66408
66409         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66410         HPUX 10.20.
66411
66412 2003-10-18  Karl Berry  <karl@gnu.org>
66413
66414         * config/config.guess: update from config.
66415
66416 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66417
66418         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66419         (getgroups): First arg is int, not size_t.
66420         Don't let 'free' mangle errno.
66421
66422 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66423
66424         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66425
66426 2003-10-16  Karl Berry  <karl@gnu.org>
66427
66428         * config/config.{guess,sub}: update from config.
66429
66430 2003-10-16  Jim Meyering  <jim@meyering.net>
66431
66432         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66433         memcpy.
66434
66435 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66436
66437         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66438         (SIZE_MAX): Remove.
66439         (new_exclude, add_exclude_file): Initial size no longer needs to
66440         be a power of 2.
66441         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66442         our own address arithmetic overflow checking.
66443
66444         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66445         (fnmatch): Do not alloca more than 2000 wide characters;
66446         instead, use malloc for large buffers.
66447         Check for address arithmetic overflow, and return -1
66448         with errno set to ENOMEM in that case.
66449         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66450         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66451         instead, return -1.  Check for address arithmetic overflow.
66452
66453 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66454
66455         Handle invalid suffixes and overflow independently, so that
66456         callers can treat them independently as needed.  Fix some bugs in
66457         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66458         suffix for a human-readable blocksize.  The major caller-visible
66459         change is the addition of a new
66460         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66461         that both overflow and suffix chars were found.
66462
66463         * lib/human.c (humblock): Don't check separately for invalid suffix
66464         char; that is xstrtoumax's job (now that its bug is fixed).
66465         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66466         INTMAX_MAX]: New macros.
66467         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66468         TYPE_MAXIMUM): New macros.
66469         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66470         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66471         if overflow occurs, as it's what __strtol does and it's more useful
66472         in practice.
66473         (__xstrtol): If __strtol reports some error other than ERANGE,
66474         reflect it to the caller as LONGINT_INVALID.  If it reports
66475         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66476         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66477         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66478         value.
66479         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66480         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66481         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66482         [defined UINTMAX_MAX]: New macros.
66483
66484 2003-10-14  Bruno Haible  <bruno@clisp.org>
66485
66486         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66487
66488 2003-10-14  Bruno Haible  <bruno@clisp.org>
66489
66490         * m4/sig_atomic_t: New file, from GNU gettext.
66491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66492
66493 2003-10-14  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66496         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66497         Also use volatile where needed.
66498
66499 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66500
66501         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66502         Change maintainer from Bruno Haible to 'all'.
66503
66504 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66505
66506         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66507
66508 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66509
66510         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66511         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66512         and define in terms of the other primitives.
66513         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66514         (SIZE_MAX): Define if not already defined.
66515         (array_size_overflow): New function.
66516         (xalloc_die): Abort instead of exiting if 'error' returns.
66517         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66518         (xmalloc, xrealloc): Use them.
66519         (xcalloc): Check for address arithmetic overflow.
66520         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66521         a bit faster than strcpy.
66522
66523 2003-10-10  Simon Josefsson  <jas@extundo.com>
66524
66525         * modules/argp (Depends-on): Add restrict and strcase.
66526
66527 2003-10-10  Simon Josefsson  <jas@extundo.com>
66528
66529         * m4/argp.m4: Add AC_C_INLINE.
66530
66531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66532
66533         Merge getpass from libc, plus a few fixes.
66534
66535         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66536         Include <stdbool.h>.
66537         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66538         __fsetlocking to empty.
66539         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66540         do include <bits/libc-lock.h>.
66541         Do not include <fcntl.h>; not needed.
66542         [_LIBC]: Include <wchar.h>.
66543         (NOTCANCEL_MODE): New macro.
66544         (flockfile, funlockfile) [_LIBC]: New macros.
66545         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66546         [!_LIBC]: New macros.
66547         (call_fclose): New function.
66548         (getpass): Use it.  Save tty stream separately; this simplifies the
66549         code and makes it more reliable if stdin happens to equal stdout.
66550         Invoke __fsetlocking on tty.
66551         Handle thread cancellation if needed.
66552         Namespace cleanup (use __tcgetattr, __getline).
66553         Use bool for Booleans.
66554         [USE_IN_LIBIO]: Handle wide streams.
66555         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66556         stream might go where.
66557
66558         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66559         doesn't have to include <stdio.h> before us.
66560         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66561         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66562         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66563         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66564         if not declared, so that we can use getpass.c code from libc without
66565         rewriting it.
66566         (flockfile, ftrylockfile, funlockfile): New macros.
66567
66568 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66569
66570         * modules/getpass: Depend on stdbool.
66571
66572 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66573
66574         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66575
66576 2003-10-07  Karl Berry  <karl@gnu.org>
66577
66578         * config/config.{guess,sub}: update from config.
66579
66580 2003-10-06  Jim Meyering  <jim@meyering.net>
66581             Bruno Haible  <bruno@clisp.org>
66582
66583         This lets translators provide better translations for the
66584         "Written by ..." part of --version output.
66585         * lib/version-etc.h: Include stdarg.h.
66586         (version_etc_copyright): Declare as readonly.
66587         (version_etc): Make this function variadic with a NULL-terminated list
66588         of author name strings.
66589         (version_etc_va): New declaration.
66590         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66591         (version_etc_copyright): Declare as readonly.
66592         (version_etc_va): New function. Provide a different translatable string
66593         for each possible number of authors < 10. Abbreviate when there are 10
66594         authors or more.
66595         (version_etc): Make this function variadic. Call version_etc_va.
66596         Suggestion from Gary V. Vaughan.
66597
66598         * lib/long-options.h (parse_long_options): Change prototype: the
66599         authors string is moved to the end and becomes variadic.
66600         * lib/long-options.c: Include stdarg.h.
66601         (parse_long_options): Make this function variadic, too.
66602         Call version_etc_va, not version_etc.
66603
66604 2003-10-06  Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/version-etc-2: Remove file.
66607         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66608
66609 2003-10-06  Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/fatal-signal: New file.
66612         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66613
66614 2003-10-06  Bruno Haible  <bruno@clisp.org>
66615
66616         * m4/fatal-signal.m4: New file.
66617         * m4/signalblocking.m4: New file, from GNU gettext.
66618
66619 2003-10-06  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/version-etc-2.h: Remove file.
66622         * lib/version-etc-2.c: Remove file.
66623
66624 2003-10-06  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/fatal-signal.h: New file, from GNU gettext.
66627         * lib/fatal-signal.c: New file, from GNU gettext.
66628
66629 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66630
66631         * README: Rework advice for preventing empty .o files.
66632         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66633         not <sys/types.h>.
66634
66635 2003-10-04  Karl Berry  <karl@gnu.org>
66636
66637         * lib/argp*: update from libc.
66638
66639 2003-10-04  Karl Berry  <karl@gnu.org>
66640
66641         * config/config.{guess,sub}: update from config.
66642
66643 2003-10-02  Bruno Haible  <bruno@clisp.org>
66644
66645         * modules/lchown (Include): Add lchown.h.
66646         * modules/time_r (Include): Use "..." syntax.
66647         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66648
66649 2003-10-01  Simon Josefsson  <jas@extundo.com>
66650
66651         * MODULES.html.sh (func_all_modules): Move gethostname from section
66652         'based on' to section 'lacking' POSIX:2001.
66653
66654 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66655
66656         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66657         to output mode on the same stream.
66658
66659 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66660
66661         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66662         Fix arg typo in previous patch.
66663
66664 2003-09-28  Jim Meyering  <jim@meyering.net>
66665
66666         * lib/error.c: Correct cpp indentation.
66667
66668 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66669
66670         * modules/free: New file.
66671
66672 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66673
66674         * m4/free.m4: New file.
66675
66676 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66677
66678         * lib/minmax.h (MIN, MAX)
66679         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66680         Omit the special code that used __typeof__, since we worry that
66681         it could be more trouble than it's worth.  See:
66682         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66683         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66684
66685         * lib/free.c: New file.
66686
66687 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66688
66689         Trivial fixes to Makefile.am parts of module listings.
66690         * modules/strstr: Append strstr.h to lib_SOURCES.
66691         * modules/strcase: Likewise, for strcase.h.
66692
66693 2003-09-27  Karl Berry  <karl@gnu.org>
66694
66695         * config/mkinstalldirs: update from automake.
66696
66697 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66698
66699         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66700         (error_tail): Do not loop, reallocating temporary buffer, since
66701         the output cannot contain more wide characters than the input
66702         contains bytes, the size must be big enough already.  This avoids
66703         one potential size overflow calculation.  Check for size overflow
66704         when calculating temporary buffer size.  Free temporary buffer
66705         when done, if it was allocated with malloc; this plugs a memory
66706         leak.  Remove casts from void * to pointers, that are no longer
66707         needed now that we're assuming C89 or better.
66708
66709         Merge error changes from glibc.
66710
66711         * lib/error.c, error.h: Update copyright notice header to match glibc.
66712         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66713         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66714         Disable cancellation while printing error.
66715         * lib/error.h: Prepend __ to parameter names.
66716
66717 2003-09-26  Jim Meyering  <jim@meyering.net>
66718
66719         * lib/error.c (error_tail): Move some declarations
66720         into inner scope where the local variables are used.
66721
66722 2003-09-26  Bruno Haible  <bruno@clisp.org>
66723
66724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66725         stpncpy().
66726         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66727
66728 2003-09-26  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66731         (stpncpy): Define as alias for gnu_stpncpy.
66732         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66733
66734 2003-09-25  Simon Josefsson  <jas@extundo.com>
66735
66736         * lib/xgetdomainname.h: New file.
66737         * lib/xgetdomainname.c: New file.
66738
66739 2003-09-25  Simon Josefsson  <jas@extundo.com>
66740             Bruno Haible  <bruno@clisp.org>
66741
66742         * modules/getdomainname: New file.
66743         * modules/xgetdomainname: New file.
66744         * MODULES.html.sh (func_all_modules): Add getdomainname,
66745         xgetdomainname.
66746
66747 2003-09-25  Simon Josefsson  <jas@extundo.com>
66748             Bruno Haible  <bruno@clisp.org>
66749
66750         * m4/getdomainname.m4: New file.
66751
66752 2003-09-25  Simon Josefsson  <jas@extundo.com>
66753             Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/getdomainname.h: New file.
66756         * lib/getdomainname.c: New file.
66757
66758 2003-09-25  Karl Berry  <karl@gnu.org>
66759
66760         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66761
66762 2003-09-25  Karl Berry  <karl@gnu.org>
66763
66764         * config/install-sh: update from automake.
66765
66766 2003-09-25  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/version-etc-2: New file, from modules/version-etc with
66769         modifications.
66770         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66771
66772 2003-09-25  Bruno Haible  <bruno@clisp.org>
66773
66774         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66775         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66776
66777 2003-09-24  Simon Josefsson  <jas@extundo.com>
66778
66779         * modules/xgethostname: Add xgethostname.h.
66780
66781 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66782
66783         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66784         the buffer associated with the argument.  Bug reported by
66785         Simon Josefsson.
66786
66787 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66788
66789         * README: Document assumptions that 'int' is at least 32 bits
66790         wide, that integer arithmetic is 2's complement without overflow,
66791         that there are no holes in integer values, that adding sizes of
66792         two nonoverlapping objects can't overflow, and that all-bits-zero
66793         yields scalar zero.  Fix spelling and capitalization typos.
66794
66795 2003-09-19  Karl Berry  <karl@gnu.org>
66796
66797         * lib/argp.h: update from libc.
66798
66799 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66800
66801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66802         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66803         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66804
66805 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66806
66807         * gnulib-tool: Use "test -h", not "test -L", for portability
66808         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66809         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66810         (sed_extract_prog): Issue s commands one-by-one, rather than
66811         using \| in one s command.
66812
66813 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66814
66815         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66816         input error, instead of returning NULL the next time we are called
66817         (and therefore losing track of errno).
66818
66819 2003-09-16  Bruno Haible  <bruno@clisp.org>
66820
66821         * gnulib-tool (func_create_testdir): Warn about duplicated
66822         dependencies.
66823
66824 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66825
66826         * modules/argmatch, modules/fatal, modules/obstack,
66827         modules/xalloc, modules/xgethostname: Sort dependencies by
66828         importance, not alphabetically.
66829
66830 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66831
66832         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66833         fails, so that the caller gets the proper errno.
66834
66835         * lib/readutmp.c (read_utmp): Likewise.
66836         Check for fstat error.  Close stream and free storage
66837         when failing.
66838
66839 2003-09-14  Karl Berry  <karl@gnu.org>
66840
66841         * config/srclist.txt (strdup.c): disable for c89 changes.
66842
66843 2003-09-14  Jim Meyering  <jim@meyering.net>
66844
66845         * lib/getloadavg.c: Correct cpp indentation.
66846         * lib/strdup.c: Likewise.
66847         * lib/vasnprintf.c: Likewise.
66848
66849 2003-09-14  Bruno Haible  <bruno@clisp.org>
66850
66851         * modules/fwriteerror: New file.
66852         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66853
66854 2003-09-14  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/fwriteerror.h: New file.
66857         * lib/fwriteerror.c: New file.
66858
66859 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66860
66861         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66862         modules/xgethostname, modules/xalloc: Depend on exit.
66863
66864 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66865
66866         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66867
66868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66869         and AC_MINIX, too, so that their extensions are available.
66870
66871         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66872         This macro has been superseded by gl_BACKUPFILE.
66873
66874         More patches to assume C89 or better.
66875
66876         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66877
66878         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66879         unconditionally.
66880         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66881         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66882         Include <string.h>, <stdlib.h> unconditionally.
66883         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66884         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66885         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66886         headers or for string.h.
66887         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66888         or strtoul.
66889
66890         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66891         headers.
66892         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66893         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66894         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66895         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66897         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66898         memcpy, memset.
66899         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66900         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66901         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66902         strtol.
66903         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66904         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66905         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66906         strtoul.
66907
66908 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66909
66910         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66911         * lib/obstack.c [!defined _LIBC]: Likewise.
66912         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66913         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66914         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66915
66916         More changes to assume C89 or better.
66917
66918         * lib/error.c (error_tail): Assume vprintf.
66919
66920         * lib/argmatch.c (getenv): Remove decl.
66921         * lib/progreloc.c (get_full_program_name): Define via prototype.
66922         * lib/setenv.c (clearenv): Likewise.
66923         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66924         needed.
66925         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66926         (malloc, memcpy): Remove decls.
66927         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66928         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66929         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66930         (memcpy): Remove macro.
66931         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66932         (__P): Remove.  All uses removed.
66933         (PTR): Remove.  All uses changed to void *.
66934         (CHAR_BIT, NULL): Remove.
66935         (spaces, zeros, memset_space, memset_zero)
66936         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66937         Remove.
66938         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66939         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66940         Define with prototype.
66941         Remove now-unnecessary prototype decl.
66942         (extra_args_spec): Assume ANSI C.  All uses changed.
66943         (extra_args_spec_iso): Remove.
66944         (my_strftime, emacs_strftimeu): Define via prototype.
66945         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66946         unconditionally.
66947         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66948         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66949         (strtoul, strtol): Remove decls.
66950         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66951         LONG_MAX): Remove.
66952         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66953         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66954         (LOCALE_PARAM_PROTO): New macro.
66955         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66956         (INTERNAL (strtol), strtol): Define with a prototype.
66957         (PARAMS): Remove.  All uses removed.
66958         * lib/tempname.c: Include <string.h> unconditionally.
66959         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66960         * lib/xgethostname.c (main): Define with a prototype.
66961         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66962         Include <stdlib.h> unconditionally.
66963         (calloc, malloc, realloc, free): Remove decls.
66964         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66965         Include <stdlib.h> unconditionally.  Sort include file names.
66966         (strtod): Remove.
66967         (xstrtod): Define with a prototype.
66968         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66969         (strtol, strtoul): Remove decls.
66970
66971 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66972
66973         More patches to assume C89 or better.
66974         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66975         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66976         string.h, memchr, STDC_HEADERS.
66977
66978 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66979
66980         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66981         Include <stdlib.h>, <string.h> unconditionally.
66982         Remove now-unnecessary cast to char *.
66983         * lib/strnlen.c: Include <string.h> unconditionally.
66984         * lib/yesno.c (yesno): Define with a prototype.
66985
66986 2003-09-11  Bruno Haible  <bruno@clisp.org>
66987
66988         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66989
66990 2003-09-10  Jim Meyering  <jim@meyering.net>
66991
66992         * lib/error.c: Correct indentation of cpp directives.
66993
66994 2003-09-10  Bruno Haible  <bruno@clisp.org>
66995
66996         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66997         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66998         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66999         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67000         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67001         <stdlib.h> and <string.h> checks.
67002         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67003         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67004
67005 2003-09-10  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/strcspn.c: Include <string.h> unconditionally.
67008         * lib/strpbrk.c: Include <string.h> unconditionally.
67009         * lib/strstr.c: Include <string.h> unconditionally.
67010         * lib/unicodeio.c: Include <string.h> unconditionally.
67011         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67012         * lib/unsetenv.c: Likewise.
67013         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67014         * lib/yesno.c: Include <stdlib.h> unconditionally.
67015         (rpmatch): Add prototype.
67016
67017 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67018
67019         More patches to assume C89 or better.
67020         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67021         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67022         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67023         or for string.h.
67024         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67025         stdlib.h.
67026         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67027         C headers.
67028         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67029         string.h.
67030         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67031         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67032         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67033         or for string.h.
67034         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67035         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67036         C headers.
67037         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67038         memcpy.
67039         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67040         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67041         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67042         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67043         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67044         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67045         string.h, free.
67046         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67047         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67048         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67049         C headers, or for string.h.
67050         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67051         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67052         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67053         headers, memory.h, stdlib.h, string.h, strings.h.
67054         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67055         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67056         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67057         strchr.
67058         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67059         headers, memory.h, string.h.
67060         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67061         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67062         free.
67063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67064         headers.
67065         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67066         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67067         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67068         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67069         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67070
67071 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67072
67073         More K&R removal.
67074
67075         * lib/acosl.c (main): Use a prototype.
67076         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67077         tanl.c: Likewise.
67078
67079         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67080
67081         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67082         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67083         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67084         with a prototype.
67085         * lib/getopt.c (const): Remove macro.
67086         Include <string.h> unconditionally.
67087         (my_index): Remove; all uses changed to strchr.
67088         (strlen): Remove decl.
67089         (exchange): Remove forward decl; no longer needed.
67090         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67091         Define with prototype.
67092         * lib/getopt1.c (const): Remove macro.
67093         (getopt_long, getopt_long_only, main): Define with prototype.
67094
67095         * lib/getugroups.c: Include <string.h> unconditionally.
67096
67097         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67098         (getusershell, setusershell, endusershell, readname, main):
67099         Define with prototypes.
67100
67101         * lib/group-member.c: Include group-member.h first.
67102         Include <stdlib.h> unconditionally.
67103
67104         * lib/hard-locale.c: Include hard-locale.h first.
67105         Include <stdlib.h>, <string.h> unconditionally.
67106
67107         * lib/hash.c (free, malloc): Remove decls.
67108         Include <stdlib.h> unconditionally.
67109
67110         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67111         (getenv): Do not declare.
67112
67113         * lib/idcache.c: Include <string.h> unconditionally.
67114
67115         * lib/long-options.c: Include long-options.h first, to test interface.
67116         Include <stdlib.h> unconditionally.
67117
67118         * lib/makepath.c: Include makepath.h first, to test interface.
67119         Include <stdlib.h> and <string.h> unconditionally.
67120
67121         * lib/linebuffer.c: Include <stdlib.h>.
67122         (free): Remove decl.
67123
67124         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67125         stddef.h. rpl_malloc returns void *, not char *.
67126         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67127         prototype.
67128
67129         * lib/md5.h: Include <limits.h> unconditionally.
67130         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67131         (__P): Remove; all uses removed.
67132         * lib/md5.c: Include "md5.h" first.
67133         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67134         md5_buffer, md5_process_bytes, md5_process_block):
67135         Define with prototypes.
67136         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67137         * lib/sha.c: Include "sha.h" first.
67138         Include <stdlib.h>, <string.h> unconditionally.
67139
67140         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67141         * lib/memcmp.c (__ptr_t): Likewise.
67142         * lib/memrchr.c (__ptr_t): Likewise.
67143         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67144         Include <string.h> unconditionally.
67145         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67146         * lib/memchr.c: Include <stdlib.h> unconditionally.
67147         * lib/memchr.c (LONG_MAX): Remove.
67148         * lib/memrchr.c (LONG_MAX): Likewise.
67149         * lib/memchr.c (__memchr): Define via a prototype.
67150         * lib/memrchr.c (__memrchr): Likewise.
67151         * lib/memcmp.c (__P): Remove, and remove all uses.
67152         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67153         Remove forward decls; no longer needed.
67154         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67155         Use types required by C89 in prototype.
67156
67157         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67158         * lib/savedir.c: Likewise.
67159         * lib/mkdir.c (free): Remove decl.
67160         * lib/rmdir.c (rmdir): Define with a prototype.
67161         * lib/savedir.c: Include savedir.h first, to test interface.
67162
67163         * lib/mktime.c (STDC_HEADERS): Remove.
67164         Include <stdlib.h>, <string.h> unconditionally.
67165
67166         * lib/modechange.c: Include <stdlib.h> unconditionally.
67167         (malloc): Remove decl.
67168
67169         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67170         (free): Remove decl.
67171
67172         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67173         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67174         (This type really should be intptr_t, but that's a C99ism.)
67175         (_obstack_memcpy): Remove: all uses changed to memcpy.
67176         Include <string.h> unconditionally.
67177         (struct obstack): Assume __STDC__ for types of members
67178         chunkfun, freefun, extra_arg.
67179         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67180         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67181         obstack_begin, obstack_specify_allocation,
67182         obstack_specify_allocation_with_arg, obstack_chunkfun,
67183         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67184         Remove unprototyped decls and the macros that use them.
67185         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67186         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67187         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67188         (defined __STDC__ && __STDC__)]:
67189         Remove nonprototyped code.
67190         Include <stdlib.h> unconditionally.
67191         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67192         _obstack_allocated_p, _obstack_free, obstack_free,
67193         _obstack_memory_used, print_and_abort):
67194         Define using prototypes.
67195         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67196         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67197         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67198         obstack_next_free, obstack_object_size, obstack_room) [0]:
67199         Remove unused, unprototyped code.
67200
67201         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67202
67203         * lib/physmem.c (physmem_total, physmem_available, main): Define
67204         with prototypes.
67205
67206         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67207         (main): Define with a prototype.
67208
67209         * lib/posixver.c (getenv): Remove decl.
67210
67211         * lib/putenv.c (malloc): Returns void *, not char *.
67212         Include <string.h> unconditionally.
67213         (strchr, memcpy, NULL): Do not define.
67214
67215         * lib/readtokens.c: Include readtokens.h first, to test interface.
67216         Include <stdlib.h>, <string.h> unconditionally.
67217         (init_tokenbuffer): Define with a prototype.
67218
67219         * lib/regex.c (PARAMS): Remove.  All uses removed.
67220         All uses of _RE_ARGS removed, too.
67221         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67222         unconditionally.
67223         (bzero): Assume memset exists.
67224         (memcmp, memcpy, NULL): Remove.
67225         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67226         char, or assignments to local vars of type signed char.
67227         (init_syntax_once, PREFIX(extract_number_and_incr),
67228         PREFIX(print_partial_compiled_pattern),
67229         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67230         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67231         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67232         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67233         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67234         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67235         wcs_compile_range, byte_compile_range, truncate_wchar,
67236         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67237         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67238         count_mbs_length, wcs_re_match_2_internal,
67239         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67240         PREFIX(alt_match_null_string_p),
67241         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67242         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67243         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67244         now-unnecessary declaration, if any.
67245         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67246         regcomp, regexec):
67247         Remove now-unnecessary casts among pointer types.
67248         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67249
67250         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67251         (free): Remove decl.
67252
67253         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67254
67255         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67256         (free): Remove decl.
67257
67258         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67259         * lib/xgetcwd.c: Likewise.
67260
67261         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67262         (free): Remove decl.
67263
67264         * lib/strchrnul.c (strchrnul): Define with a prototype.
67265         Fix bug: c_in was not converted to char before searching.
67266
67267         The following changes are not K&R related:
67268
67269         * lib/group-member.h: Include <sys/types.h>, so that this file is
67270         self-contained.
67271         * lib/makepath.h: Likewise.
67272
67273         * lib/getusershell.c (readname, default_index, line_size, readname):
67274         Use size_t, not int, for sizes.
67275         (readname): If the size overflows, report an error instead of
67276         looping forever.
67277
67278 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67279
67280         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67281         libc.
67282
67283 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67284
67285         * README: New section: portability guidelines.
67286
67287 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67288
67289         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67290         C89 spec.
67291
67292 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67293
67294         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67295
67296 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67297
67298         Assume C89 or better; remove K&R cruft.
67299         A few of these changes were first proposed by Derek Robert Price
67300         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67301
67302         * lib/addext.c: Include <string.h> unconditionally.
67303         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67304         Don't declare getenv or malloc.
67305
67306         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67307         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67308         (NULL): Remove.
67309         (find_stack_direction, alloca): Use prototypes.
67310
67311         * lib/atexit.c (atexit): Define using a prototype.
67312
67313         * lib/basename.c, dirname.c, stripslash.c:
67314         Include <string.h> unconditionally.
67315
67316         * lib/bcopy.c: Include <stddef.h>.
67317         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67318
67319         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67320
67321         * lib/error.h (error, error_at_line, error_print_progname)
67322         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67323         * lib/error.c: Include error.h first, to check interface.
67324         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67325         (VA_START): Remove; all uses changeed to va_start.
67326         (exit, strerror): Remove decls.
67327         (error_print_progname): Prototype uncondionally.
67328         Don't include <errno.h>; no longer needed.
67329         (private_strerror): Remove.
67330         (error_tail): Always define.
67331         (error, error_at_line): Assume C89 or better; always use prototypes.
67332         * lib/fatal.c: Include "fatal.h" first, to test interface.
67333         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67334         (VA_START): Remove; all uses changed to va_start.
67335         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67336         this case.
67337         (exit): Remove decl.
67338         (fatal): Prototype unconditionally.  Assume va_start works.
67339         Abort at end, to pacify gcc.
67340
67341         * lib/euidaccess.c (main): Define with a prototype.
67342
67343         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67344
67345         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67346
67347         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67348         prototypes.
67349         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67350         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67351         (getenv): Remove decl.
67352         (fnmatch): Define using a prototype.
67353         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67354         (FCT): Define using a prototype.
67355
67356         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67357
67358         * lib/gethostname.c: Include <stddef.h>.
67359         (gethostname): Define with prototype.  Length is size_t, not int.
67360
67361 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67362
67363         Assume C89 or better; remove K&R cruft.
67364         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67365         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67366         string.h, getenv, malloc.
67367         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67368         headers.
67369         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67370         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67371         do not check for strerror.
67372         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67373         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67374         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67375         do not check for doprnt or vprintf.
67376         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67377         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67378
67379 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67380
67381         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67382         getversion.c should have been removed then, but was accidentally
67383         preserved.
67384
67385         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67386         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67387
67388 2003-09-08  Karl Berry  <karl@gnu.org>
67389
67390         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67391                 config, forget about prep.
67392
67393         * config/depcomp, missing: update from automake.
67394
67395 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67396
67397         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67398         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67399
67400 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67401
67402         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67403         copy_tm_result.  Bug reported by Simon Josefsson in
67404         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67405
67406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67407
67408         * m4/time_r.m4: New file.
67409         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67410         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67411         is. Check for timegm declaration.
67412         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67413         Do not check for gmtime_r.
67414         Replace mktime if __mktime_internal does not exist and if mktime
67415         hasn't been replaced already.
67416
67417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67418
67419         * lib/time_r.c, lib/time_r.h: New files.
67420
67421         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67422         __localtime_r.
67423         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67424         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67425
67426         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67427         __gmtime_r.
67428         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67429         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67430         Include <time_r.h>.
67431
67432         * lib/timegm.c: Switch to glibc implementation, with the following
67433         changes:
67434         [defined HAVE_CONFIG_H]: Include <config.h>.
67435         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67436         (__mktime_internal) [!defined _LIBC]: New decl.
67437         (__gmtime_r) [!defined _LIBC]: New macro and function.
67438         (timegm): Use a prototype, since gnulib assumes C89.
67439         Do not bother declaring tmp to be const, as it's not really usefu.
67440         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67441         (timegm): Declare only if HAVE_DECL_TIMEGM.
67442
67443 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67444
67445         * MODULES.html.sh (func_all_modules): Add time_r.
67446         * modules/time_r: New file.
67447         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67448         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67449
67450 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67451
67452         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67453         Bug reported by Lute Kamstra in
67454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67455
67456         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67457         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67458         course with correspondingly smaller numbers for tomorrow and
67459         yesterday.  From Tadayoshi Funaba.  Originally installed into
67460         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67461         coreutils merge?).
67462
67463 2003-08-31  Simon Josefsson  <jas@extundo.com>
67464
67465         * modules/timegm: New file.
67466         * MODULES.html.sh (func_all_modules): Add timegm.
67467
67468 2003-08-31  Simon Josefsson  <jas@extundo.com>
67469
67470         * m4/timegm.m4: New file.
67471
67472 2003-08-31  Simon Josefsson  <jas@extundo.com>
67473
67474         * lib/timegm.h: New file.
67475         * lib/timegm.c: New file.  Based on
67476         wget-1.8.2/src/http.c:mktime_from_utc.
67477
67478 2003-08-31  Karl Berry  <karl@gnu.org>
67479
67480         * lib/argp.h: update from libc.
67481
67482 2003-08-28  Bruno Haible  <bruno@clisp.org>
67483
67484         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67485         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67486         followed by '#define fnmatch fnmatch_posix' gives an error.
67487
67488 2003-08-28  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67491         warning on QNX, which defines O_BINARY to 000000.
67492
67493 2003-08-27  Jim Meyering  <jim@meyering.net>
67494
67495         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67496         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67497         would fail after 32.  Reported by Danny Levinson.  Details here:
67498         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67499
67500 2003-08-24  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67503         MSVC7 <stdio.h> is included later.
67504
67505 2003-08-22  Simon Josefsson  <jas@extundo.com>
67506
67507         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67508
67509 2003-08-20  Karl Berry  <karl@gnu.org>
67510
67511         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67512
67513 2003-08-20  Bruno Haible  <bruno@clisp.org>
67514
67515         * modules/progname: New file.
67516         * MODULES.html.sh (func_all_modules): Add progname.
67517
67518 2003-08-20  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/progname.h: New file, from GNU gettext.
67521         * lib/progname.c: New file, from GNU gettext.
67522         * lib/progreloc.c: New file, from GNU gettext.
67523
67524 2003-08-19  Jim Meyering  <jim@meyering.net>
67525
67526         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67527         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67528
67529 2003-08-19  Bruno Haible  <bruno@clisp.org>
67530
67531         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67532         more.
67533
67534 2003-08-19  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/xstrdup.c: Assume <string.h> exists.
67537
67538 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67539
67540         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67541         in makefile rules.
67542
67543 2003-08-18  Jim Meyering  <jim@meyering.net>
67544
67545         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67546         * m4/lib-ld.m4: Likewise.
67547
67548 2003-08-18  Jim Meyering  <jim@meyering.net>
67549
67550         * lib/setenv.h: Indent nested cpp directive.
67551         * lib/vasnprintf.c: Remove trailing blanks.
67552
67553 2003-08-17  Simon Josefsson  <jas@extundo.com>
67554
67555         * modules/xstrndup: New file.
67556         * MODULES.html.sh (func_all_modules): Add xstrndup.
67557
67558 2003-08-17  Simon Josefsson  <jas@extundo.com>
67559
67560         * modules/argp: Fix autoconf macro name. Add more dependencies.
67561
67562 2003-08-17  Simon Josefsson  <jas@extundo.com>
67563
67564         * m4/xstrndup.m4: New file.
67565
67566 2003-08-17  Simon Josefsson  <jas@extundo.com>
67567
67568         * m4/argp.m4: New file.
67569
67570 2003-08-17  Simon Josefsson  <jas@extundo.com>
67571             Bruno Haible  <bruno@clisp.org>
67572
67573         * lib/xstrndup.h: New file.
67574         * lib/xstrndup.c: New file.
67575
67576 2003-08-17  Bruno Haible  <bruno@clisp.org>
67577
67578         * modules/strndup (Files, Include): Add lib/strndup.h.
67579
67580 2003-08-17  Bruno Haible  <bruno@clisp.org>
67581
67582         * modules/euidaccess (Files): Add lib/euidaccess.h.
67583
67584 2003-08-17  Bruno Haible  <bruno@clisp.org>
67585
67586         * lib/strndup.h: New file.
67587
67588 2003-08-17  Bruno Haible  <bruno@clisp.org>
67589
67590         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67591         like AC_GNU_SOURCE.
67592         * modules/extensions (configure.ac): Comment out the invocation of
67593         gl_USE_SYSTEM_EXTENSIONS.
67594
67595 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67596
67597         Merges from coreutils, etc.
67598         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67599         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67600         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67601         fixing a typo.
67602         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67603         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67604
67605 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67606
67607         Document merge from coreutils.
67608         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67609         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67610         * modules/utime: Add m4/utimes-null.m4.
67611
67612 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67613
67614         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67615         space, undoing this 2003-08-12 change:
67616         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67617
67618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67619
67620         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67621         strtoul.c from libc, undoing this 2003-08-12 change:
67622         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67623
67624 2003-08-16  Jim Meyering  <jim@meyering.net>
67625
67626         Merges from coreutils.
67627         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67628         prefix.  Adjust cache variables similarly.  Create 500 rather than
67629         just 300 files, to exercise bug on Darwin6.5, too.
67630         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67631         $missing_dir.
67632         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67633         AM_SYS_POSIX_TERMIOS.
67634         Reported by mkc@mathdogs.com.
67635         Also change use of $am_cv_sys_posix_termios
67636         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67637         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67638         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67639         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67640         in /proc/mounts until it finds one with matching device number.  This
67641         is unnecessary when the FILE argument *is* a mount point.  No stat call
67642         is necessary in that case.  So, disable the statvfs-testing code on
67643         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67644         as RedHat bug# 84846.
67645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67646         to 1MB, so as not to render systems with no stack size limit (e.g.,
67647         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67648         Include <unistd.h>.  On some systems,
67649         it is required for the definition of _SC_PAGESIZE.
67650
67651 2003-08-16  Jim Meyering  <jim@meyering.net>
67652
67653         Merge from coreutils.
67654         * lib/xstrtoimax.c: #else #if -> #elif.
67655         * lib/xstrtoumax.c: Likewise.
67656
67657 2003-08-16  Jim Meyering  <jim@meyering.net>
67658
67659         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67660         * m4/utimes.m4: Removed.
67661         * m4/utimes-null.m4: Renamed from utimes.m4.
67662
67663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67664         to 1MB, so as not to render systems with no stack size limit (e.g.,
67665         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67666         Include <unistd.h>.  On some systems,
67667         it is required for the definition of _SC_PAGESIZE.
67668
67669 2003-08-16  Jim Meyering  <jim@meyering.net>
67670         and Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         Merges from coreutils, etc.
67673
67674         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67675         using the latest version from cvs.  This avoids problems with #line
67676         directives using a vendor (Sun) compiler.
67677         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67678         Don't set GETGROUPS_LIB here; now it's
67679         done via getgroups.m4's wrapper function.
67680         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67681         rather than just in sh-util/configure.in, so that the
67682         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67683         same.
67684         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67685         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67686         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67687         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67688         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67689         Remove code that is now done by the newly-required macros.
67690         Append $(EXEEXT) to DF_PROG.
67691         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67692         Do not invoke or require the following here,
67693         since prereq.m4 or some gnulib .m4 now does this for us:
67694         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67695         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67696         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67697         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67698         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67699         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67700         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67701         AC_FUNC_OBSTACK.
67702         Do not replace the following functions, as this is now the job
67703         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67704         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67705         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67706         atexit getpass, strdup, getpagesize.
67707         Replace 'raise'.
67708         Do not check for the following functions, as this is now the job
67709         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67710         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67711         setregid.
67712         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67713         Check for sys/sysctl.h.
67714         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67715         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67716         of checking for ssize_t ourselves.
67717
67718         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67719         Require every macro that gnulib/modules/* suggests for us.
67720         (jm_PREREQ_ADDEXT): New macro.
67721         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67722         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67723
67724         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67725         (gl_PHYSMEM): Use it.
67726         Also check for `table' function.
67727         Check for new headers and functions.
67728         Add check for sys/sysmp.h.
67729         With suggestions from Kaveh Ghazi.
67730         Ignore headers that are present but cannot be compiled.  This
67731         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67732         C 5.4.
67733
67734 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67735
67736         Document merge from coreutils.
67737         * modules/userspec: Depend on posixver.
67738         * modules/strftime: Depend on tzset.
67739
67740 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67741
67742         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67743         rather than tab, after '#' in shell-script copyright notices.
67744         Suggested by Bruno Haible.
67745
67746 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67747
67748         * config/srclist-update: Use three spaces, rather than tab, after '#'
67749         in shell-script copyright notices.  Suggested by Bruno Haible.
67750         Remove unnecessary parenthesization in regular expression.
67751
67752 2003-08-15  Jim Meyering  <jim@meyering.net>
67753
67754         Merge from coreutils.
67755         * lib/xgethostname.c: Include <stdlib.h>.
67756         (xghostname): Don't exit for anything other than memory-related
67757         failure; just return NULL.
67758         * lib/userspec.c: Include "posixver.h".
67759         (parse_user_spec): Accept `.' as a separator only
67760         in pre-POSIX-200112 mode.
67761         * lib/strtoimax.c: Use #elif rather than #else #if.
67762         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67763         Remove function, now that we can rely on a working tzset function.
67764         [!_LIBC]: Ensure that the required autoconf test has been run.
67765         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67766         Use underlying_strftime for %r.
67767         * lib/sha.c: Merge in some clean-up and optimization changes from
67768         glibc.
67769         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67770         Ensure that it is a multiple of 64.
67771         Rearrange loop exit tests so as to avoid performing an
67772         additional fread after encountering an error or EOF.
67773         * lib/realloc.c: Update copyright date.
67774
67775 2003-08-15  Jim Meyering  <jim@meyering.net>
67776         and Paul Eggert  <eggert@twinsun.com>
67777
67778         Merge from coreutils.
67779         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67780         member but strut utmpx does not.  Needed for AIX 4.3.3.
67781         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67782
67783 2003-08-15  Jim Meyering  <jim@meyering.net>
67784         and Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         Merges from coreutils, etc.
67787         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67788         Require gl_FUNC_TZSET_CLOBBER.
67789         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67790         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67791         members.
67792
67793 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67794
67795         Help the merge from coreutils.
67796         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67797         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67798         * m4/tzset.m4: Use it too.
67799
67800 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67801
67802         * modules/tzset: New file.
67803
67804 2003-08-14  Jim Meyering  <jim@meyering.net>
67805
67806         Merges from coreutils.
67807         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67808         variable names, rather than @FNMATCH_H@.
67809         * modules/alloca: Likewise for $(ALLOCA_H).
67810
67811         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67812         the three copies of the literal target, `fnmatch.h'.
67813         * modules/alloca (alloca.h): Likewise.
67814
67815 2003-08-14  Jim Meyering  <jim@meyering.net>
67816
67817         Merge from coreutils.
67818         * m4/tzset.m4: New file.
67819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67820         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67821         otherwise, AIX 5.1 systems would end up using the latter.
67822         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67823         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67824         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67825         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67826
67827 2003-08-14  Jim Meyering  <jim@meyering.net>
67828
67829         Merge from coreutils.
67830         * lib/obstack.h: Whitespace changes.
67831         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67832         and xcalloc return values.
67833         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67834         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67835         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67836         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67837         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67838         error from mntctl.
67839         Use mntctl's return value to drive the entry-processing loop, since
67840         we can't rely on the value of the vmt_length member in the last
67841         entry.  On some systems doing so could result in exhausting
67842         virtual memory.  Based in part on a patch from Mike Jetzer.
67843
67844 2003-08-14  Jim Meyering  <jim@meyering.net>
67845         and Paul Eggert  <eggert@twinsun.com>
67846
67847         Merges from coreutils, plus other fixes.
67848         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67849         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67850         for credits and details.  Thanks to Kaveh Ghazi for helping
67851         to keep these files in sync.
67852         (ARRAY_SIZE): Define it.
67853         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67854         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67855         (memcasecmp): Don't assume size_t fits in unsigned int.
67856         Remove casts and duplicate code.
67857         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67858         (memcpy): Remove definition.
67859         Merge in some clean-up and optimization changes from glibc.
67860         [BLOCKSIZE]: Move definition to top of file.
67861         Ensure that it is a multiple of 64.
67862         Rearrange loop exit tests so as to avoid performing an
67863         additional fread after encountering an error or EOF.
67864         * lib/md5.h (md5_uintptr): Define.
67865         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67866         return to the initial working directory.  Preserve errno
67867         for caller.
67868         * lib/idcache.c: Include "xalloc.h".
67869         (xmalloc, xrealloc): Remove decls.
67870         (getuser): Remove casts no longer required in C89.
67871         * lib/human.c: Include stdio.h, for sprintf.
67872         * lib/group-member.c: Include "xalloc.h".
67873         (xmalloc, xrealloc): Remove decls.
67874         (get_group_info): Remove casts no longer required in C89.
67875         * lib/getusershell.c (readname): Remove casts no longer required in
67876         C89.
67877         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67878         * lib/getline.c: Whitespace fix, from coreutils.
67879
67880 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67881
67882         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67883         Check for isascii.
67884
67885         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67886         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67887         Undo previous (whitespace-only) change.
67888
67889 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67890
67891         * lib/exclude.c: Include <ctype.h>
67892         (IN_CTYPE_DOMAIN): New macro.
67893         (is_space): New fn.
67894         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67895         and empty lines.
67896
67897         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67898         Undo previous (whitespace-only) change.
67899
67900 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67901
67902         * config/srclist-update: Change update back to the old behavior,
67903         leaving whitespace alone.  Use one 'sed' command rather than a
67904         pipeline.
67905         (fixlicense): Now a variable, not a function.
67906         (remove_trailing_blanks): Remove.
67907         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67908         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67909         Undo previous (whitespace-only) change.
67910
67911 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67912
67913         Merge from coreutils.
67914         * modules/euidaccess: Add lib_SOURCES, include for new
67915         file euidaccess.h
67916
67917 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67918
67919         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67920         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67921         Normalize leading white space and remove trailing white space.
67922
67923         Merge from coreutils
67924         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67925
67926         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67927         0.12.1.  These files are now being upgraded automatically by
67928         ../config/srclist-update.
67929
67930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67931
67932         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67933         Normalize leading white space and remove trailing white space.
67934         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67935         notice, as per ../config/srclist-update.
67936
67937         Merge from coreutils.
67938         * lib/euidaccess.h: New file.
67939         * lib/euidaccess.c: Include it.
67940         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67941         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67942         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67943
67944 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67945
67946         * config/srclist-update: Add copyright notice.
67947         (remove_id_lines, remove_trailing_blanks): New constants.
67948         (fixfile): Use them to normalize spacing a bit in copied files.
67949         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67950         Normalize leading white space and remove trailing white space.
67951
67952         * config/texinfo.tex: Sync with texinfo.
67953
67954         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67955         strtoul.c from libc, to merge coreutils whitespace changes.
67956
67957         * config/srclist.txt: Get the following m4 files from gettext:
67958         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67959         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67960         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67961         wint_t.m4.
67962
67963 2003-08-12  Karl Berry  <karl@gnu.org>
67964
67965         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67966         been made.
67967
67968 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67969
67970         * modules/gnu-source, m4/gnu-source.m4:
67971         Remove; we're assuming Autoconf 2.54 or later now.
67972         Suggested by Bruno Haible.
67973         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67974
67975 2003-08-11  Bruno Haible  <bruno@clisp.org>
67976
67977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67978
67979 2003-08-11  Bruno Haible  <bruno@clisp.org>
67980
67981         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67982         (vasnprintf): Use it instead of wcslen.
67983
67984 2003-08-11  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67987         value to ensure that _Bool promotes to int. Use #define for _Bool when
67988         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67989
67990 2003-08-10  Karl Berry  <karl@gnu.org>
67991
67992         * lib/regex.h: update from libc (whitespace fix).
67993
67994 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67995
67996         Merge some files from coreutils.  These changes were
67997         originally made by Jim Meyering.
67998         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67999         many older Unixes require this.
68000         * lib/alloca.c (alloca): Remove cast to argument of free;
68001         no longer needed in C89.
68002         * lib/alloca_.h, regex.h: Fix white space to match
68003         what GNU indent does.
68004
68005 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68006
68007         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68008         apparently Emacs's Unicode mode got confused before my 2003-08-05
68009         checkin.
68010
68011 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68012
68013         * m4/extensions.m4: New file.
68014         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68015         Require gl_USE_SYSTEM_EXTENSIONS.
68016         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68017         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68018
68019 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68020
68021         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68022         * modules/extensions, modules/gnu-source: New files.
68023         * modules/timespec, modules/unlocked-io: Depend on extensions.
68024
68025 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68026
68027         * modules/restrict: New file.
68028         * MODULES.html.sh (func_all_modules): Add restrict.
68029         * modules/regex: Depend on restrict.
68030
68031 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68032
68033         * m4/restrict.m4: New file.
68034         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68035
68036 2003-08-07  Bruno Haible  <bruno@clisp.org>
68037
68038         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68039         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68040
68041 2003-08-07  Bruno Haible  <bruno@clisp.org>
68042
68043         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68044         makes the module 'getndelim2' compatible with the module 'getline'.
68045
68046 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68047
68048         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68049         byte with "\201" to avoid glitches when editing that source file
68050         with multi-gnome-terminal.
68051
68052 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68053
68054         * lib/bumpalloc.h: Remove.
68055
68056 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68057
68058         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68059         * modules/bumpalloc: Remove.
68060
68061 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68062
68063         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68064         GNU coding style.
68065
68066         Merge from coreutils.
68067         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68068         1. From glibc.
68069         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68070         from Karl Berry, implemented by Jim Meyering.
68071         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68072         from Dmitry V. Levin.
68073         Remove anachronistic cast of xrealloc.
68074         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68075         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68076         type. Otherwise, it wouldn't compile with at least /bin/cc on
68077         ymp-cray-unicos9.0.2.X.
68078         Combine two mostly-identical uses of alloca into one.
68079         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68080
68081 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68082
68083         [From Emacs.]
68084
68085         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68086         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68087         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68088         obsolete NLIST_NAME_UNION.
68089         [__GNU__]: Undef BSD and FSCALE.
68090         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68091
68092 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68093
68094         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68095         an enum type, so that it's guaranteed to promote to int.  See:
68096         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68097
68098 2003-08-03  Karl Berry  <karl@gnu.org>
68099
68100         * config/depcomp: update from automake.
68101
68102 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68103
68104         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68105         (strerror): Don't assume that a printable int fits in 14 bytes.
68106
68107 2003-07-31  Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/getpass-gnu: New file.
68110         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68111
68112 2003-07-31  Bruno Haible  <bruno@clisp.org>
68113
68114         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68115
68116 2003-07-24  Karl Berry  <karl@gnu.org>
68117
68118         * config/missing: update from automake.
68119
68120 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68121             Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68124         * lib/getline.c (getline, getdelim): Likewise.
68125         Remove _GNU_SOURCE define; now it's defined in config.h through
68126         m4/getline.m4.
68127
68128 2003-07-23  Karl Berry  <karl@gnu.org>
68129
68130         * config/config.sub: update from prep.
68131
68132 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68133
68134         * modules/xalloc (Depends-on): Add exitfail.
68135         * modules/xmemcoll: Likewise.
68136
68137 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68138
68139         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68140         over-parenthesization in macros.
68141
68142         Sync with coreutils.
68143
68144         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68145         required by C99.
68146
68147         Use `exit_failure' for xalloc and xmemcoll instead of their own
68148         private exit-failure variables.
68149         * lib/xalloc.h (xalloc_exit_failure): Remove.
68150         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68151         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68152         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68153         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68154         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68155
68156 2003-07-20  Jim Meyering  <jim@meyering.net>
68157
68158         * modules/closeout (Depends-on): Add exitfail.
68159         Suggestion from Bruno Haible.
68160
68161 2003-07-19  Karl Berry  <karl@gnu.org>
68162
68163         * config/config.sub: update from prep.
68164
68165 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68166
68167         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68168         Remove.
68169         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68170         to test that it can stand by itself.  Include "exitfail.h".
68171         Clients should set exit_failure instead.
68172         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68173
68174 2003-07-18  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/getndelim2: New file.
68177         * modules/getline: Share files with module getndelim2.
68178         * modules/getnline: Depend on getndelim2 instead of sharing files with
68179         it. Add getnline.c to lib_SOURCES.
68180         * MODULES.html.sh (func_all_modules): Add getndelim2.
68181
68182 2003-07-18  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/getndelim2.m4: New file.
68185         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68186         invoke gl_PREREQ_GETNDELIM2.
68187         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68188         gl_PREREQ_GETNDELIM2.
68189         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68190         gl_GETNDELIM2.
68191
68192 2003-07-18  Bruno Haible  <bruno@clisp.org>
68193
68194         * lib/getndelim2.h: New file.
68195         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68196         getndelim2.h.
68197         (getndelim2): Make non-static. Change return type to ssize_t.
68198         * lib/getline.h: Change argument names.
68199         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68200         * lib/getnline.c: Include getndelim2.h.
68201
68202 2003-07-18  Andreas Schwab  <schwab@suse.de>
68203
68204         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68205
68206 2003-07-17  Karl Berry  <karl@gnu.org>
68207
68208         * config/config.sub: update from prep.
68209
68210 2003-07-17  Bruno Haible  <bruno@clisp.org>
68211
68212         * modules/getnline: New file.
68213         * modules/getline: Add lib/getndelim2.c to source file list.
68214         * MODULES.html.sh (func_all_modules): Add getnline.
68215
68216 2003-07-17  Bruno Haible  <bruno@clisp.org>
68217
68218         * m4/getnline.m4: New file.
68219
68220 2003-07-17  Bruno Haible  <bruno@clisp.org>
68221
68222         * m4/Makefile.am.in: Remove file.
68223         * m4/Makefile.am: Remove file.
68224         * m4/Makefile.in: Remove file.
68225
68226 2003-07-17  Bruno Haible  <bruno@clisp.org>
68227
68228         * lib/getnline.h: New file.
68229         * lib/getnline.c: New file.
68230         * lib/getndelim2.c: New file, extracted from getline.c.
68231         (getndelim2): Renamed from getdelim2, with added nmax argument.
68232         * lib/getline.c: Include getndelim2.c.
68233         (getdelim2): Moved out to getndelim2.c.
68234         (getline, getdelim): Update.
68235
68236 2003-07-17  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/Makefile.am: Remove file.
68239         * lib/Makefile.in: Remove file.
68240
68241 2003-07-17  Bruno Haible  <bruno@clisp.org>
68242
68243         * configure.in: Remove file.
68244         * Makefile.in: Remove file.
68245
68246 2003-07-17  Bruno Haible  <bruno@clisp.org>
68247
68248         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68249
68250 2003-07-16  Karl Berry  <karl@gnu.org>
68251
68252         * config/srclist-update: was running fixlicense twice, which caused
68253                 texinfo.tex to be nullified for some reason.  Simplify,
68254                 $gplsrc is no longer needed as far as I can see?
68255
68256 2003-07-16  Jim Meyering  <jim@meyering.net>
68257
68258         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68259
68260 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68261
68262         * config/srclist.txt: Get the following files from gettext-runtime/intl
68263         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68264         ref-del.sin.  From Bruno Haible.
68265         * config/srclist-update (fixfile): Change grep pattern again, since the
68266         previous fix didn't work (there was another trailing $).  Use
68267         '[$]' to escape the $s.
68268
68269 2003-07-15  Karl Berry  <karl@gnu.org>
68270
68271         * lib/vasnprintf.c: update from gettext.
68272
68273 2003-07-15  Karl Berry  <karl@gnu.org>
68274
68275         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68276         gets expanded when surrounded by '$'.
68277
68278 2003-07-15  Jim Meyering  <jim@meyering.net>
68279
68280         * modules/save-cwd: Don't depend on error.  From Derek Price.
68281
68282 2003-07-15  Jim Meyering  <jim@meyering.net>
68283
68284         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68285
68286 2003-07-14  Simon Josefsson  <jas@extundo.com>
68287
68288         * modules/mempcpy: New file.
68289         * MODULES.html.sh (func_all_modules): Add mempcpy.
68290
68291 2003-07-14  Simon Josefsson  <jas@extundo.com>
68292
68293         * m4/mempcpy.m4: New file.
68294
68295 2003-07-14  Simon Josefsson  <jas@extundo.com>
68296
68297         * lib/mempcpy.h: New file.
68298         * lib/mempcpy.c: New file.
68299
68300 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68301
68302         * modules/getdate, modules/posixtm: Depend on mktime.
68303
68304 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68305
68306         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68307         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68308         unicodeio.c, unicodeio.h, unlocked-io.h:
68309         Switch from LGPL to GPL.
68310
68311 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68312
68313         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68314         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68315         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68316         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68317         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68318         updated automatically by ../config/srclist-update.  This changes
68319         their license from LPGL to GPL.
68320
68321 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68322
68323         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68324         assumed to refer to the root of the most recent stable gettext version.
68325         * config/srclistvars.sh: Add defaults for eggert.
68326         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68327         Match "This program" as well as "The program".  This is needed
68328         for gettext.
68329
68330 2003-07-14  Jim Meyering  <jim@meyering.net>
68331
68332         Don't emit diagnostics.  Let callers do that.
68333         * lib/save-cwd.c: Don't include "error.h".
68334         (save_cwd): Don't call error.  Ensure that errno is valid
68335         when returning nonzero.
68336
68337         * lib/save-cwd.h (restore_cwd): Update prototype.
68338         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68339         Simplify.  Don't call error upon failure.  Let callers do that.
68340         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68341         when auditing is enabled.  But don't bother updating the #if.
68342
68343 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68344
68345         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68346         it breaks C++ compilation.
68347         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68348
68349 2003-07-10  Simon Josefsson  <jas@extundo.com>
68350
68351         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68352
68353 2003-07-10  Jim Meyering  <jim@meyering.net>
68354
68355         * m4/clock_time.m4: Remove trailing blank.
68356         * m4/intmax_t.m4: Likewise.
68357
68358 2003-07-10  Jim Meyering  <jim@meyering.net>
68359
68360         * lib/vasnprintf.c: Remove trailing blanks.
68361         Make cpp indentation consistent.
68362
68363 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68364
68365         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68366         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68367         Switch from LGPL to GPL.
68368
68369 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68370
68371         * config/srclist.txt: Sort sublists.  Add
68372         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68373         that differ from gnulib for one reason or another; we'd like this list
68374         to be smaller but for now let's document what we have.
68375
68376 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68377
68378         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68379         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68380         and sweeter "eval x=$x".
68381         * config/srclist.txt: Get lib/argp* from glibc.
68382
68383 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68384
68385         * lib/mktime.c: Fix some boundary cases and remove need for floating
68386         point.
68387
68388         Issue a compile-time diagnostic if time_t is floating point, or if
68389         two's complement arithmetic is not in effect, or if arithmetic
68390         right shift does not propagate the sign.  These assumptions were
68391         all in the original code but they weren't checked.
68392
68393         (TIME_T_MIDPOINT, verify): New macros.
68394         (__isleap): Remove; it has integer overflow problems.
68395         (leapyear): New function, without those problems.
68396         (ydhms_tm_diff): Remove; splitting into two parts.
68397         (ydhms_diff): New function, containing the arithmetic part of
68398         the old ydhms_tm_diff function.  Issue a compile-time
68399         diagnostic if we are not using C99 integer division.
68400         Avoid casts when possible.
68401         (guess_time_tm): New function, containing the checking part of
68402         the old ydhms_tm_diff function.  Return the new value, rather than
68403         the difference between it and the old.  Accept a new argument T
68404         so that *T specifies the old value.  Check for overflow in the result.
68405
68406         (__mktime_internal): Use a time_t offset, not a long int offset.
68407         This undoes the 2003-06-04 change, which is no longer needed now
68408         that we have better overflow checking.
68409         (localtime_offset): Likewise.
68410
68411         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68412         and long are 64-bit but int is only 32-bit.
68413         (ydhms_diff): Use long int to store year1 and yday1.
68414         Issue a compile-time diagnostic if long int is not wide enough.
68415
68416         (__mktime_internal): Use long int to store adjusted year and yday.
68417         Use plain C rather than preprocessor commands, if that doesn't
68418         affect efficiency.
68419         Check for overflow (and try to repair) after each probe
68420         rather than checking only at the very end.  This avoids some bugs
68421         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68422         does not equal GMT offset at maximum time).
68423         Use integer to check for overflow rather than floating point; this
68424         is more portable to non-IEEE hosts, and is a tad faster.
68425         When we detect that we are oscillating between two values,
68426         don't check whether tm_isdst has the requested value, since
68427         we already know the answer.  When tm_isdst has the wrong value,
68428         use a different heuristic to find the right one, based on the
68429         extreme values actually observed in practice in tz2003a,
68430         rather than the (overly optimistic) "previous 3 calendar quarters".
68431
68432         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68433         "T const" to accommodate glibc style.
68434         (check_result): Use less-confusing report format.  "long" -> "long int.
68435         (main): Likewise.
68436         Don't loop if the iteration overflows time_t.
68437         Allow a negative step in the iteration.
68438
68439 2003-07-06  Karl Berry  <karl@gnu.org>
68440
68441         * config/depcomp: update from automake.
68442         * config/config.sub: update from prep.
68443
68444 2003-07-03  Karl Berry  <karl@gnu.org>
68445
68446         * config/config.guess: update from prep.
68447
68448 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68449
68450         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68451         xreadlink.c now includes it unconditionally.
68452
68453 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68454
68455         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68456         having it depend on HAVE_SYS_TYPES_H.
68457
68458 2003-07-01  Bruno Haible  <bruno@clisp.org>
68459
68460         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68461         <sys/types.h> should be sufficient.
68462         Reported by Paul Eggert.
68463
68464 2003-06-26  Karl Berry  <karl@gnu.org>
68465
68466         * config/depcomp: update from automake.
68467
68468 2003-06-26  Bruno Haible  <bruno@clisp.org>
68469
68470         * modules/human: Depend on module stdbool.
68471
68472 2003-06-25  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/readlink: New file.
68475         * modules/xreadlink: Depend on it.
68476         * MODULES.html.sh (func_all_modules): Add readlink.
68477
68478 2003-06-25  Bruno Haible  <bruno@clisp.org>
68479
68480         * m4/readlink.m4: New file.
68481
68482 2003-06-25  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/readlink.c: New file.
68485
68486 2003-06-22  Karl Berry  <karl@gnu.org>
68487
68488         * config/srclist.txt: update mkinstalldirs from automake.
68489         * config/mkinstalldirs: update.
68490
68491 2003-06-22  Bruno Haible  <bruno@clisp.org>
68492
68493         Portability to mingw32.
68494         * m4/ssize_t.m4: New file, from GNU gettext.
68495         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68496         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68497
68498 2003-06-22  Bruno Haible  <bruno@clisp.org>
68499
68500         * modules/safe-read: Add m4/ssize_t.m4.
68501         * modules/xreadlink: Add m4/ssize_t.m4.
68502
68503 2003-06-20  Bruno Haible  <bruno@clisp.org>
68504
68505         Assume C89, so PARAMS isn't needed.
68506         * lib/unicodeio.h (PARAMS): Remove.
68507         * lib/unicodeio.c: Don't use PARAMS.
68508
68509 2003-06-18  Karl Berry  <karl@gnu.org>
68510
68511         * config/config.{guess,sub}: update from prep.
68512
68513 2003-06-18  Jim Meyering  <jim@meyering.net>
68514
68515         Merge changes from coreutils.
68516         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68517         Remove explicit declarations of xmalloc and realloc.
68518         Include xalloc.h.
68519         (read_utmp): Remove anachronistic cast of xmalloc.
68520
68521 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68522
68523         Assume C89, so PARAMS isn't needed.
68524         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68525         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68526         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68527         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68528         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68529         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68530         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68531         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68532         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68533         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68534         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68535         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68536         no longer needed. Anyway, config.h should always be included before any
68537         other file.
68538
68539 2003-06-11  Simon Josefsson  <jas@extundo.com>
68540
68541         * modules/sysexits: New file.
68542         * MODULES.html.sh (func_all_modules): Add sysexits.
68543
68544 2003-06-11  Simon Josefsson  <jas@extundo.com>
68545
68546         * lib/sysexit_.h: New file.
68547
68548 2003-06-11  Derek Price  <derek@ximbiot.com>
68549
68550         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68551         necessary.
68552
68553 2003-06-11  Bruno Haible  <bruno@clisp.org>
68554
68555         * m4/sysexits.m4: New file.
68556
68557 2003-06-10  Simon Josefsson  <jas@extundo.com>
68558
68559         * lib/argp.h: New file, from glibc.
68560         * lib/argp-ba.c: New file, from glibc.
68561         * lib/argp-eexst.c: New file, from glibc.
68562         * lib/argp-fmtstream.c: New file, from glibc.
68563         * lib/argp-fmtstream.h: New file, from glibc.
68564         * lib/argp-fs-xinl.c: New file, from glibc.
68565         * lib/argp-help.c: New file, from glibc.
68566         * lib/argp-namefrob.h: New file, from glibc.
68567         * lib/argp-parse.c: New file, from glibc.
68568         * lib/argp-pv.c: New file, from glibc.
68569         * lib/argp-pvh.c: New file, from glibc.
68570         * lib/argp-xinl.c: New file, from glibc.
68571
68572 2003-06-10  Simon Josefsson  <jas@extundo.com>
68573
68574         * modules/strchrnul: New file.
68575
68576 2003-06-10  Simon Josefsson  <jas@extundo.com>
68577
68578         * modules/argp: New file.
68579
68580 2003-06-10  Simon Josefsson  <jas@extundo.com>
68581
68582         * m4/strchrnul.m4: New file.
68583
68584 2003-06-10  Simon Josefsson  <jas@extundo.com>
68585
68586         * lib/strchrnul.h: New file.
68587         * lib/strchrnul.c: New file.
68588
68589 2003-06-10  Bruno Haible  <bruno@clisp.org>
68590
68591         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68592
68593 2003-06-07  Karl Berry  <karl@gnu.org>
68594
68595         * config/config.{guess,sub}: update from prep.
68596
68597 2003-06-07  Jim Meyering  <jim@meyering.net>
68598
68599         * modules/strtod: Use $(...) notation, not @...@ for
68600         AC_REPLACE'd variables.
68601         * modules/localcharset: Likewise.
68602
68603 2003-06-07  Jim Meyering  <jim@meyering.net>
68604
68605         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68606         in place of my name in the copyright comment.
68607         Remove definition and uses of __P.
68608
68609         From coreutils.
68610         * lib/stat.c: Don't declare xmalloc explicitly.
68611         Instead, include "xalloc.h".
68612         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68613         xrealloc, and xcalloc return values.
68614         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68615         Improve comment.
68616         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68617
68618 2003-06-07  Bruno Haible  <bruno@clisp.org>
68619
68620         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68621         avoid AC_CONFIG_LINKS.
68622         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68623         fnmatch.h, to avoid AC_CONFIG_LINKS.
68624         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68625
68626 2003-06-07  Bruno Haible  <bruno@clisp.org>
68627
68628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68629         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68631         directory.
68632         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68633         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68634         directory.
68635
68636 2003-06-06  Jim Meyering  <jim@meyering.net>
68637
68638         Merge from coreutils.
68639         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68640         Consolidate declarations and initializations of *_base* locals.
68641
68642         Merge from coreutils.
68643         This avoids a core dump on systems without GNU putenv,
68644         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68645         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68646         (unsetenv): New static function, from GNU libc.
68647         (rpl_putenv): Use it.
68648
68649         * lib/modechange.c: Remove trailing blanks.
68650
68651         Merge from coreutils.
68652         * lib/fsusage.c: Remove declaration of statfs.
68653         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68654
68655         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68656
68657 2003-06-06  Jim Meyering  <jim@meyering.net>
68658
68659         * lib/stdbool_.h: Renamed from stdbool.h.in.
68660
68661 2003-06-06  Jim Meyering  <jim@meyering.net>
68662             Bruno Haible  <bruno@clisp.org>
68663
68664         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68665         Adjust Makefile.am snippet not to redirect directly to target.
68666         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68667
68668 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68669
68670         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68671         mismatch, look in future quarters as well as past.  This fixes a
68672         bug when processing fall-backwards gaps immediately after a long
68673         period of daylight-saving time.
68674
68675         * lib/mktime.c: Assume freestanding C89 or better.
68676         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68677         (__P): Remove; not used.
68678         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68679         (mktime, not_equal_tm, print_tm, check_result,
68680         main): Use prototypes.  Use const * where appropriate.
68681         (main): Fix typo in testing code that uncovered by above changes.
68682         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68683
68684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68685
68686         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68687         locale.h, localeconv.  This merges changes from coreutils.
68688
68689         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68690         It can be removed after the next Autoconf is released.
68691         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68692         needed.
68693
68694 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68695
68696         * lib/mktime.c: Fix Debian bug 177940
68697         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68698         (localtime_offset): Now long int, not time_t, because we want it
68699         to be guaranteed to be signed.  All uses changed.
68700         (__mktime_internal): If overflow would occur when adding offset,
68701         don't add it.
68702
68703         Merge 'human' changes from coreutils.  Rewrite to support
68704         locale-specific notations like thousands separators.
68705         * lib/human.c: Simplify authorship notice.
68706         Include human.h immediately after config.h.
68707         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68708         <limits.h>: Do not include, since human.h does.
68709         (SIZE_MAX, UINTMAX_MAX): New macros.
68710         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68711         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68712         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68713         (power_letter): Renamed from suffixes.
68714         (generate_suffix_backwards): Remove.
68715         (adjust_value): Now takes int style (because of human.h changes)
68716         and long double value (for greater precision on some platforms).
68717         (group_number): New function.
68718         (human_readable): Use it.  Use integer options, not enum.
68719         Put the options before the sizes in the arg list.
68720         Support all the new options.
68721         The old human_readable function has been removed;
68722         use inttostr.h instead.
68723         (human_readable, default_block_size, humblock):
68724         Use uintmax_t, not int, for block sizes.
68725         (human_readable_inexact, block_size_types): Remove.
68726         (block_size_opts): New constant.
68727         (human_options): Renamed from human_block_size, with new signature
68728         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68729         * lib/human.h: Add copyright and authorship notice.
68730         Include <limits.h> and <stdbool.h> unconditionally.
68731         (PARAMS): Remove.  All uses removed.
68732         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68733         (enum human_inexact_style): Remove tag; now a nameless enum.
68734         (human_floor, human_ceiling, human_round_to_even): Now have
68735         values 2, 0, 1 rather than -1, 1, 0.
68736         (human_group_digits, human_suppress_point_zero, human_autoscale,
68737         human_base_1024, human_SI, human_B): New constants.
68738         (human_readable_inexact, human_block_size): Remove.
68739         (human_readable): Size args are now uintmax_t, not int.
68740         (human_options): New decl.
68741
68742         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68743         unnecessary now that we assume C89 or better.  This change
68744         imported from coreutils.
68745
68746         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68747         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68748         in the 2003-05-30 sync from glibc.
68749
68750         .h files should stand alone, but we shouldn't include <sys/types.h>
68751         if we can get away with just <stddef.h>.
68752
68753         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68754         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68755         rather than <sys/types.h>, as we merely need size_t.
68756         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68757         to get size_t.
68758         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68759         Include <stdio.h>, to get FILE.
68760         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68761         memcasecmp.h has included <stddef.h> and all we need is size_t.
68762         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68763         our interface, instead of including <sys/types.h>
68764
68765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68766
68767         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68768         now, as glibc mktime is buggy on non-glibc systems.
68769
68770 2003-06-03  Karl Berry  <karl@gnu.org>
68771
68772         * config/config.sub: update from prep.
68773
68774 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68775
68776         [from coreutils]
68777         Fix some minor time-related bugs with POSIX time arguments.
68778         Some valid time stamps were being rejected (notably -1, and
68779         time stamps before 1900 on 64-bit hosts).  And some invalid
68780         time stamps were being accepted, e.g. September 31.
68781
68782         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68783         that we can return (time_t) -1 successfully.
68784         * lib/posixtm.c: Likewise.
68785         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68786         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68787         (t): Remove static var.
68788         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68789         of static var.  All uses changed.
68790         (year): Do not reject years before 1900; they can occur with
68791         64-bit time_t.
68792         (posix_time_parse): Do not check for out-of-range components;
68793         that is now the caller's responsibility, since our checks were
68794         only approximations.
68795         (posixtime): Use mktime to check for out-of-range components,
68796         since it knows them exactly.
68797         If mktime returns (time_t) -1, check whether an error actually occurred
68798         by invoking localtime on -1.
68799         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68800         posixtime failures better.
68801         Improve the test data (in comments only).
68802
68803 2003-06-02  Karl Berry  <karl@gnu.org>
68804
68805         * config/mkinstalldirs (version): new variable.
68806         (--version): new option.
68807         (usage): improve message.
68808
68809 2003-05-30  Karl Berry  <karl@gnu.org>
68810
68811         * lib/mktime.c: update from libc.
68812
68813 2003-05-30  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68816         * config/config.rpath: Upgrade to gettext-0.12.1.
68817
68818 2003-05-30  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68821         * m4/nls.m4: New file, from gettext-0.12.1.
68822         * m4/po.m4: New file, from gettext-0.12.1.
68823         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68824
68825 2003-05-30  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68828         * lib/localcharset.h: Likewise.
68829         * lib/localcharset.c: Likewise.
68830
68831 2003-05-29  Karl Berry  <karl@gnu.org>
68832
68833         * config/config.rpath: update from gettext.
68834
68835 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68836
68837         Assume the headers required for C89 freestanding compilers.
68838         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68839         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68840         * m4/human.m4 (gl_HUMAN): Likewise.
68841         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68842         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68843         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68844         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68846         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68847
68848 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68849
68850         Assume the headers required for C89 freestanding compilers.
68851         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68852         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68853         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68854         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68855         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68856         define, since <limits.h> is guaranteed to do that.
68857         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68858         * lib/exclude.c: Include <stdbool.h> unconditionally.
68859         * lib/tempname.c: Include <stddef.h> unconditionally.
68860         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68861         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68862         <stddef.h> does that.
68863         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68864         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68865         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68866         needed.
68867         * lib/xstrtol.c: Likewise.
68868         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68869         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68870
68871         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68872         warnings on some platforms.
68873
68874         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68875         arbitrarily.
68876
68877 2003-05-26  Jim Meyering  <jim@meyering.net>
68878
68879         Merge in a change from coreutils:
68880         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68881         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68882         that condition, rather than `-1' which is slightly misleading.
68883         Change the name of the cache variable to have the gl_ prefix.
68884         Prompted by a patch from Richard Dawe for DJGPP.
68885
68886 2003-05-24  Karl Berry  <karl@gnu.org>
68887
68888         * config/config.guess: update from prep.
68889
68890 2003-05-22  Karl Berry  <karl@gnu.org>
68891
68892         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68893
68894 2003-05-20  Karl Berry  <karl@gnu.org>
68895
68896         * config/config.guess: update from prep.
68897
68898 2003-05-18  Karl Berry  <karl@gnu.org>
68899
68900         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68901         might actually be set by the user.
68902
68903         * config/depcomp, install-sh, mdate-sh: update from automake.
68904
68905 2003-05-17  Bruno Haible  <bruno@clisp.org>
68906
68907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68908         invalid expansion for AC_EGREP_CPP.
68909         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68910         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68911         Suggested by Akim Demaille <akim@epita.fr> in
68912         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68913
68914 2003-05-12  Jim Meyering  <jim@meyering.net>
68915
68916         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68917         the space-padded-by-default conversion specifiers, %e, %k, %l.
68918
68919 2003-05-12  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68922         the string is longer than 4 KB.
68923
68924 2003-05-11  Karl Berry  <karl@gnu.org>
68925
68926         * config/config.{guess,sub}: update from prep.
68927
68928 2003-05-09  Bruno Haible  <bruno@clisp.org>
68929
68930         * modules/error: Add m4/strerror_r.m4 to file list.
68931
68932 2003-05-03  Bruno Haible  <bruno@clisp.org>
68933
68934         Upgrade to Unicode-4.0.
68935         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68936         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68937         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68938         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68939         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68940         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68941         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68942         Change width of U+E0100..U+E01EF from 1 to 0.
68943
68944 2003-04-25  Jim Meyering  <jim@meyering.net>
68945
68946         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68947         of type size_t, not int.
68948
68949 2003-04-25  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/copy-file.c: Include <stddef.h>, for size_t.
68952
68953 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68954
68955         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68956         code which expansion is under static control.  Patch imported from
68957         Akim Demaille's patch to Bison; see
68958         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68959
68960 2003-04-14  Bruno Haible  <bruno@clisp.org>
68961
68962         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68963
68964 2003-04-11  Jim Meyering  <jim@meyering.net>
68965
68966         Merge changes from Coreutils.
68967
68968         2003-03-22  Jim Meyering  <jim@meyering.net>
68969
68970         * lib/strftime.c (widen): Cast alloca return value to proper type.
68971
68972         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68973
68974         From GNU libc.
68975         * lib/strftime.c (my_strftime): Handle very large width
68976         specifications for numeric values correctly.  Improve checks for
68977         overflow.
68978
68979         2003-01-19  Jim Meyering  <jim@meyering.net>
68980
68981         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68982         definitions.
68983         (nl_get_alt_digit) [! defined my_strftime]: Define.
68984         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68985         _nl_get_alt_digit and _nl_get_walt_digit.
68986
68987         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68988         libc. These changes have no effect outside of _LIBC.
68989
68990 2003-04-10  Bruno Haible  <bruno@clisp.org>
68991
68992         * modules/findprog: New file.
68993         * MODULES.html.sh (func_all_modules): Add it.
68994
68995 2003-04-10  Bruno Haible  <bruno@clisp.org>
68996
68997         * m4/findprog.m4: New file.
68998         * m4/eaccess.m4: New file.
68999
69000 2003-04-10  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/findprog.h: New file, from GNU gettext.
69003         * lib/findprog.c: New file, from GNU gettext.
69004
69005 2003-04-05  Jim Meyering  <jim@meyering.net>
69006
69007         Merge changes from Coreutils.
69008
69009         * lib/exclude.h (PARAMS): Remove definition and uses.
69010         * lib/exclude.c: Remove uses of `PARAMS'.
69011
69012         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69013         Add test-cases for DOS filenames. Declare program_name.
69014         (main): Set up program_name.  Patch by Rich Dawe.
69015
69016         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69017         error from mntctl.
69018         Use mntctl's return value to drive the entry-processing loop, since
69019         we can't rely on the value of the vmt_length member in the last
69020         entry.  On some systems doing so could result in exhausting
69021         virtual memory.  Based in part on a patch from Mike Jetzer.
69022
69023 2003-04-04  Bruno Haible  <bruno@clisp.org>
69024
69025         * modules/linebreak: New file.
69026         * MODULES.html.sh (func_all_modules): Add it.
69027
69028 2003-04-04  Bruno Haible  <bruno@clisp.org>
69029
69030         * m4/linebreak.m4: New file.
69031
69032 2003-04-04  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/linebreak.h: New file, from GNU gettext.
69035         * lib/linebreak.c: New file, from GNU gettext with slight
69036         modifications.
69037         * lib/lbrkprop.h: New file, from GNU gettext.
69038
69039 2003-04-03  Bruno Haible  <bruno@clisp.org>
69040
69041         * modules/utf8-ucs4: New file.
69042         * modules/utf16-ucs4: New file.
69043         * modules/ucs4-utf8: New file.
69044         * modules/ucs4-utf16: New file.
69045         * MODULES.html.sh (func_all_modules): Add them.
69046
69047 2003-04-03  Bruno Haible  <bruno@clisp.org>
69048
69049         * m4/utf-ucs4.m4: New file.
69050         * m4/ucs4-utf.m4: New file.
69051
69052 2003-04-03  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/utf8-ucs4.h: New file, from GNU gettext.
69055         * lib/utf16-ucs4.h: New file, from GNU gettext.
69056         * lib/ucs4-utf8.h: New file, from GNU gettext.
69057         * lib/ucs4-utf16.h: New file, from GNU gettext.
69058
69059 2003-04-02  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/binary-io: New file.
69062         * MODULES.html.sh (func_all_modules): Add it.
69063
69064 2003-04-02  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/binary-io.h: New file, from GNU gettext.
69067
69068 2003-04-01  Bruno Haible  <bruno@clisp.org>
69069
69070         * modules/pathname: New file.
69071         * MODULES.html.sh (func_all_modules): Add it.
69072
69073 2003-04-01  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/pathname.h: New file, from GNU gettext.
69076         * lib/concatpath.c: New file, from GNU gettext.
69077
69078 2003-03-30  Bruno Haible  <bruno@clisp.org>
69079
69080         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69081
69082 2003-03-30  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69085         function chown() doesn't exist.
69086
69087 2003-03-28  Bruno Haible  <bruno@clisp.org>
69088
69089         * modules/copy-file: New file.
69090         * MODULES.html.sh (func_all_modules): Add it.
69091
69092 2003-03-28  Bruno Haible  <bruno@clisp.org>
69093
69094         * m4/copy-file.m4: New file.
69095
69096 2003-03-28  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/copy-file.h: New file, from GNU gettext.
69099         * lib/copy-file.c: New file, from GNU gettext.
69100
69101 2003-03-18  Jim Meyering  <jim@meyering.net>
69102
69103         * lib/quote.c (quote_n): Fix typo in comment.
69104
69105 2003-03-18  Bruno Haible  <bruno@clisp.org>
69106
69107         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69108         checking.
69109         * m4/onceonly_2_57.m4: Likewise.
69110
69111 2003-03-17  Bruno Haible  <bruno@clisp.org>
69112
69113         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69114         (m4_quote): Remove macro.
69115         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69116
69117 2003-03-14  Jim Meyering  <jim@meyering.net>
69118
69119         Merge changes from Coreutils.
69120         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69121         to be const, in order to avoid warnings.
69122         (obstack_room): Likewise.
69123         (obstack_empty_p): Likewise.
69124
69125 2003-03-14  Bruno Haible  <bruno@clisp.org>
69126
69127         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69128         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69129
69130 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69131
69132         Merge changes from Bison.
69133         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69134         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69135         when compiling Bison 1.875's `bitset bset = obstack_alloc
69136         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69137         * lib/hash.c: Include <stdbool.h> unconditionally.
69138
69139 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69140
69141         * m4/onceonly.m4 (m4_quote): New macro.
69142         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69143         Quote AC_FOREACH variable-expansions properly.
69144
69145 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69146
69147         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69148
69149 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69150
69151         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69152         Reported by Bruce Becker; see:
69153         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69154
69155 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69156             Bruno Haible  <bruno@clisp.org>
69157
69158         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69159         Reported by John Hughes, see
69160         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69161
69162 2003-02-20  Bruno Haible  <bruno@clisp.org>
69163
69164         * MODULES.html.sh (func_all_modules): Add poll.
69165
69166 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69167
69168         * modules/poll: New file.
69169
69170 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69171
69172         * lib/poll_.h: New file.
69173         * lib/poll.c: New file.
69174
69175 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69176
69177         * m4/poll.m4: New file.
69178
69179 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69180
69181         * modules/mathl: New file.
69182
69183 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69184
69185         * lib/mathl.h: New file.
69186         * lib/acosl.c: New file.
69187         * lib/asinl.c: New file.
69188         * lib/atanl.c: New file.
69189         * lib/ceill.c: New file.
69190         * lib/cosl.c: New file.
69191         * lib/expl.c: New file.
69192         * lib/floorl.c: New file.
69193         * lib/frexpl.c: New file.
69194         * lib/ldexpl.c: New file.
69195         * lib/logl.c: New file.
69196         * lib/sincosl.c: New file.
69197         * lib/sinl.c: New file.
69198         * lib/sqrtl.c: New file.
69199         * lib/tanl.c: New file.
69200         * lib/trigl.c: New file.
69201         * lib/trigl.h: New file.
69202
69203 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69204
69205         * m4/mathl.m4: New file.
69206
69207 2003-02-18  Bruno Haible  <bruno@clisp.org>
69208
69209         * MODULES.html.sh (func_all_modules): Add mathl.
69210
69211 2003-02-17  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/mkdtemp: New module.
69214         * MODULES.html.sh (func_all_modules): Add it.
69215
69216 2003-02-17  Bruno Haible  <bruno@clisp.org>
69217
69218         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69219
69220 2003-02-17  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/mkdtemp.h: New file, from GNU gettext.
69223         * lib/mkdtemp.c: New file, from GNU gettext.
69224
69225 2003-02-02  Jim Meyering  <jim@meyering.net>
69226
69227         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69228         e.g. glibc-2.2.93.
69229
69230 2003-01-31  Bruno Haible  <bruno@clisp.org>
69231
69232         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69233         'rpl_rename'.
69234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69235         'rpl_strnlen'.
69236         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69237         'rpl_strtod'.
69238         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69239         'rpl_utime'.
69240
69241 2003-01-31  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/rename.c: #undef rename before defining rpl_rename.
69244         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69245
69246 2003-01-30  Bruno Haible  <bruno@clisp.org>
69247
69248         * modules/vasnprintf, modules/vasprintf: New modules.
69249         * MODULES.html.sh (func_all_modules): Add them.
69250
69251 2003-01-30  Bruno Haible  <bruno@clisp.org>
69252
69253         * m4/signed.m4: New file, from GNU gettext.
69254         * m4/longdouble.m4: New file, from GNU gettext.
69255         * m4/wchar_t.m4: New file, from GNU gettext.
69256         * m4/wint_t.m4: New file, from GNU gettext.
69257         * m4/vasnprintf.m4: New file.
69258         * m4/vasprintf.m4: New file.
69259
69260 2003-01-30  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/printf-args.h: New file, from GNU gettext.
69263         * lib/printf-args.c: New file, from GNU gettext.
69264         * lib/printf-parse.h: New file, from GNU gettext.
69265         * lib/printf-parse.c: New file, from GNU gettext.
69266         * lib/vasnprintf.h: New file, from GNU gettext.
69267         * lib/vasnprintf.c: New file, from GNU gettext.
69268         * lib/asnprintf.c: New file, from GNU gettext.
69269         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69270         * lib/vasprintf.c: New file, from GNU gettext.
69271         * lib/asprintf.c: New file, from GNU gettext.
69272
69273 2003-01-29  Bruno Haible  <bruno@clisp.org>
69274
69275         * modules/stpncpy: New module.
69276         * MODULES.html.sh (func_all_modules): Add it.
69277
69278 2003-01-29  Bruno Haible  <bruno@clisp.org>
69279
69280         * m4/stpncpy.m4: New file.
69281
69282 2003-01-29  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69285         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69286
69287 2003-01-28  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/c-ctype: New module.
69290         * MODULES.html.sh (func_all_modules): Add it.
69291
69292 2003-01-28  Bruno Haible  <bruno@clisp.org>
69293
69294         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69295         Paul Eggert.
69296         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69297         Paul Eggert.
69298
69299 2003-01-27  Bruno Haible  <bruno@clisp.org>
69300
69301         * modules/xsetenv: New module.
69302         * MODULES.html.sh (func_all_modules): Add it.
69303
69304 2003-01-27  Bruno Haible  <bruno@clisp.org>
69305
69306         * lib/xsetenv.h: New file, from GNU gettext.
69307         * lib/xsetenv.c: New file, from GNU gettext.
69308
69309 2003-01-23  Jim Meyering  <jim@meyering.net>
69310
69311         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69312         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69313
69314 2003-01-23  Bruno Haible  <bruno@clisp.org>
69315
69316         * modules/minmax: New module.
69317         * MODULES.html.sh (func_all_modules): Add it.
69318
69319 2003-01-23  Bruno Haible  <bruno@clisp.org>
69320
69321         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69322         Eggert.
69323
69324 2003-01-22  Bruno Haible  <bruno@clisp.org>
69325
69326         * modules/exit: New module.
69327         * MODULES.html.sh (func_all_modules): Add it.
69328
69329 2003-01-22  Bruno Haible  <bruno@clisp.org>
69330
69331         * lib/exit.h: New file, from GNU gettext.
69332
69333 2003-01-19  Bruno Haible  <bruno@clisp.org>
69334
69335         * gnulib-tool: Recognize option --extract-maintainer.
69336         (func_get_maintainer): New function.
69337         * modules/*: Add Maintainer entry.
69338
69339 2003-01-16  Jim Meyering  <jim@meyering.net>
69340
69341         * m4/regex.m4: The `regex' struct is both input and output.
69342         Initialize it before each use.  Patch by Tim Waugh.
69343
69344 2003-01-16  Bruno Haible  <bruno@clisp.org>
69345
69346         * MODULES.html.sh: Add a table of contents. Add the module name as
69347         leftmost column. Add hyperlinks.
69348
69349 2003-01-15  Bruno Haible  <bruno@clisp.org>
69350
69351         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69352
69353 2003-01-15  Bruno Haible  <bruno@clisp.org>
69354
69355         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69356         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69357         suffix.
69358
69359 2003-01-15  Bruno Haible  <bruno@clisp.org>
69360
69361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69362
69363 2003-01-15  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69366         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69367
69368 2003-01-14  Jim Meyering  <jim@meyering.net>
69369
69370         * lib/same.c (same_name): Tweak a comment.
69371
69372 2003-01-14  Bruno Haible  <bruno@clisp.org>
69373
69374         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69375         when a string comparison is sufficient.
69376
69377 2003-01-14  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69380         'unsigned int'.
69381
69382 2003-01-14  Bruno Haible  <bruno@clisp.org>
69383
69384         * lib/hash-pjw.c: Add comment about low quality of this function.
69385
69386 2003-01-13  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/stpcpy: Distribute lib/stpcpy.h.
69389         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69390
69391 2003-01-13  Bruno Haible  <bruno@clisp.org>
69392
69393         * modules/*: Add a description.
69394         * modules/strpbrk: Fix Makefile.am snippet.
69395         * modules/strtoimax: Fix dependencies.
69396         * modules/strtoumax: Likewise.
69397
69398 2003-01-13  Bruno Haible  <bruno@clisp.org>
69399
69400         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69401         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69402         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69403
69404 2003-01-13  Bruno Haible  <bruno@clisp.org>
69405
69406         * gnulib-tool (func_create_testdir): Store config/* files in the main
69407         directory.
69408         * config.rpath: Move to ...
69409         * config/config.rpath: ... here.
69410         * modules/gettext: Contains config/config.rpath, not config.rpath.
69411         * modules/iconv: Likewise.
69412
69413 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69414
69415         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69416         to avoid collisions with libcurses and libreadline.
69417
69418         * m4/getstr.m4: Remove.
69419         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69420
69421 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69422
69423         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69424         to avoid collisions with libcurses and libreadline.
69425
69426         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69427         * lib/getstr.h, getstr.c: Remove.
69428         * lib/getline.c: Include "getline.h", to check interface.
69429         Move body of old getstr.c here: this defines MIN_CHUNK and
69430         declares getdelim2, which is renamed from getstr.
69431         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69432
69433         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69434         All uses changed.
69435         * lib/linebuffer.h: Likewise.
69436         (readline): Remove backward-compatibility macro.
69437
69438 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69439
69440         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69441         to avoid collisions with libcurses and libreadline.
69442         * getstr: Remove.
69443         * MODULES.html.sh: Remove getstr.
69444         * modules/getline: Depend on unlocked-io, not getstr.
69445
69446 2003-01-12  Jim Meyering  <jim@meyering.net>
69447
69448         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69449
69450 2003-01-10  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/alloca: Change Makefile.am requirements. Simplify Include
69453         requirements. Add lib/alloca_.h to file list.
69454
69455 2003-01-10  Bruno Haible  <bruno@clisp.org>
69456
69457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69458
69459 2003-01-10  Bruno Haible  <bruno@clisp.org>
69460
69461         * lib/alloca_.h: New file.
69462         * lib/getdate.y: Unconditionally include alloca.h.
69463         * lib/makepath.c: Likewise.
69464         * lib/setenv.c: Likewise.
69465         * lib/userspec.c: Likewise.
69466
69467 2003-01-09  Karl Berry  <karl@gnu.org>
69468
69469         * MODULES.html.sh: include `dirname $0` in PATH, to find
69470         gnulib-tool.
69471
69472 2003-01-09  Bruno Haible  <bruno@clisp.org>
69473
69474         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69475         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69476
69477 2003-01-09  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69480
69481 2003-01-09  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/stdbool.h.in: New file.
69484
69485 2003-01-09  Bruno Haible  <bruno@clisp.org>
69486
69487         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69488         * MODULES.html.sh: Likewise.
69489
69490 2003-01-08  Jim Meyering  <jim@meyering.net>
69491
69492         * lib/full-write.c: Undefine and define-away `const' after inclusion
69493         of errno.h, not before.  Suggestion from Bruno Haible.
69494
69495 2003-01-08  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/full-read: Depend on full-write.
69498
69499 2003-01-08  Bruno Haible  <bruno@clisp.org>
69500
69501         * lib/safe-read.c: Include specification header first, to ensure its
69502         selfcontainedness.
69503         * lib/full-write.c: Likewise.
69504
69505 2003-01-07  Jim Meyering  <jim@meyering.net>
69506
69507         * lib/full-write.c: Rework so that it may serve to define full_read,
69508         too.
69509         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69510
69511 2003-01-07  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69514         <inttypes.h>.
69515         * lib/xstrtol.h: Likewise.
69516         * lib/xstrtoimax.c: Likewise.
69517         * lib/xstrtoumax.c: Likewise.
69518         * lib/human.h: Likewise.
69519
69520         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69521         on systems that have <inttypes.h> but not <stdint.h>.
69522
69523 2003-01-07  Bruno Haible  <bruno@clisp.org>
69524
69525         * MODULES.html.sh: Add copyright notice.
69526         (missed_files): Omit CVS directory entries.
69527         (func_module): Make it work with sed-3.02.
69528         * MODULES.txt: Remove file.
69529
69530 2003-01-06  Jim Meyering  <jim@meyering.net>
69531
69532         * lib/version-etc.c: Update year in translatable copyright string.
69533
69534 2003-01-03  Karl Berry  <karl@gnu.org>
69535
69536         * config/config.{guess,sub}: update from prep.
69537
69538 2003-01-02  Karl Berry  <karl@gnu.org>
69539
69540         * doc/COPYING.DOC: belatedly updated to 1.2.
69541
69542 2003-01-01  Karl Berry  <karl@gnu.org>
69543
69544         * gnulib-tool (func_verify_module): report module name $module in
69545         error message, not $1.
69546         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69547         be created, only if it doesn't exist.
69548         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69549
69550 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69551
69552         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69553
69554 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69555
69556         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69557         memcmp if strcoll doesn't work.
69558
69559 2002-12-31  Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69562         nonempty.
69563
69564 2002-12-31  Bruno Haible  <bruno@clisp.org>
69565
69566         * lib/memcoll.c (STRCOLL): New macro.
69567         (memcoll): Use it.
69568
69569 2002-12-31  Bruno Haible  <bruno@clisp.org>
69570
69571         * lib/localcharset.h: New file.
69572         * lib/localcharset.c: Include it.
69573         * lib/unicodeio.c: Likewise.
69574
69575 2002-12-31  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69578         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69579
69580 2002-12-31  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/getline.h: Include <stddef.h>, for size_t.
69583
69584         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69585         * lib/unicodeio.c: Don't include <stddef.h>.
69586
69587 2002-12-31  Bruno Haible  <bruno@clisp.org>
69588
69589         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69590         HAVE_TM_ZONE.
69591
69592 2002-12-24  Karl Berry  <karl@gnu.org>
69593
69594         * config/config.guess: update from prep.
69595
69596 2002-12-24  Bruno Haible  <bruno@clisp.org>
69597
69598         General infrasructure.
69599         * m4/README: Rewritten.
69600         * m4/onceonly.m4: New file.
69601         * m4/onceonly_2_57.m4: New file.
69602
69603         Module atexit.
69604         * m4/atexit.m4: New file.
69605
69606         Module strtod.
69607         * m4/strtod.m4: New file.
69608
69609         Module strtol.
69610         * m4/strtol.m4: New file.
69611
69612         Module strtoul.
69613         * m4/strtoul.m4: New file.
69614
69615         Module memchr.
69616         * m4/memchr.m4: New file.
69617
69618         Module memcmp.
69619         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69620         (jm_FUNC_MEMCMP): Invoke it.
69621
69622         Module memcpy.
69623         * m4/memcpy.m4: New file.
69624
69625         Module memmove.
69626         * m4/memmove.m4: New file.
69627
69628         Module memset.
69629         * m4/memset.m4: New file.
69630
69631         Module strcspn.
69632         * m4/strcspn.m4: New file.
69633
69634         Module strpbrk.
69635         * m4/strpbrk.m4: New file.
69636
69637         Module strstr.
69638         * m4/strstr.m4: New file.
69639
69640         Module strerror.
69641         * m4/strerror.m4: New file.
69642
69643         Module mktime.
69644         * m4/mktime.m4: Renamed from jm-mktime.m4.
69645         (gl_PREREQ_MKTIME): New macro.
69646         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69647
69648         Module malloc.
69649         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69650         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69651         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69652
69653         Module realloc.
69654         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69655         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69656         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69657
69658         Module strftime.
69659         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69660         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69661         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69662         gl_TM_GMTOFF.
69663         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69664
69665         Module xalloc.
69666         * m4/xalloc.m4: New file.
69667
69668         Module alloca.
69669         * m4/alloca.m4: New file.
69670
69671         Module putenv.
69672         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69673         (jm_FUNC_PUTENV): Invoke it.
69674
69675         Module setenv.
69676         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69677         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69678         when invoked twice.
69679         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69680         gt_FUNC_SETENV.
69681
69682         Module memrchr.
69683         * m4/memrchr.m4: New file.
69684
69685         Module stpcpy.
69686         * m4/stpcpy.m4: New file.
69687
69688         Module strcase.
69689         * m4/strcase.m4: New file.
69690
69691         Module strdup.
69692         * m4/strdup.m4: New file.
69693
69694         Module strnlen.
69695         * m4/strnlen.m4: New file.
69696
69697         Module strndup.
69698         * m4/strndup.m4: New file.
69699
69700         Module xstrtod.
69701         * m4/xstrtod.m4: New file.
69702
69703         Module xstrtol.
69704         * m4/xstrtol.m4: New file.
69705
69706         Module getdate.
69707         * m4/getdate.m4: New file.
69708
69709         Module unlocked-io.
69710         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69711         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69712         * m4/jm-glibc-io.m4n: Remove file.
69713
69714         Module long-options.
69715         * m4/long-options.m4: New file.
69716
69717         Module md5.
69718         * m4/md5.m4: New file.
69719
69720         Module sha.
69721         * m4/sha.m4: New file.
69722
69723         Module getstr.
69724         * m4/getstr.m4: New file.
69725
69726         Module getline.
69727         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69728         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69729         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69730         simply getline. Infoke gl_PREREQ_GETLINE.
69731
69732         Module obstack.
69733         * m4/obstack.m4: New file.
69734
69735         Module hash.
69736         * m4/hash.m4: New file.
69737
69738         Module readtokens.
69739         * m4/readtokens.m4: New file.
69740
69741         Module strverscmp.
69742         * m4/strverscmp.m4: New file.
69743
69744         Module stdbool.
69745         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69746         OSF/1.
69747
69748         Module strtoll.
69749         * m4/strtoll.m4: New file.
69750
69751         Module strtoull.
69752         * m4/strtoull.m4: New file.
69753
69754         Module strtoimax.
69755         * m4/strtoimax.m4: New file.
69756
69757         Module strtoumax.
69758         * m4/strtoumax.m4: New file.
69759
69760         Module xstrtoimax.
69761         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69762         jm_AC_PREREQ_XSTRTOIMAX.
69763         Moved the strtol prerequisites to strtol.m4.
69764         Moved the strtoll prerequisites to strtoll.m4.
69765         Moved the strtoimax prerequisites to strtoimax.m4.
69766
69767         Module xstrtoumax.
69768         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69769         jm_AC_PREREQ_XSTRTOUMAX.
69770         Moved the strtoul prerequisites to strtoul.m4.
69771         Moved the strtoull prerequisites to strtoull.m4.
69772         Moved the strtoumax prerequisites to strtoumax.m4.
69773
69774         Module chown.
69775         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69776         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69777
69778         Module dup2.
69779         * m4/dup2.m4: New file.
69780
69781         Module ftruncate.
69782         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69783         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69784
69785         Module getgroups.
69786         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69787         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69788
69789         Module gettimeofday.
69790         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69791         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69792         gl_PREREQ_GETTIMEOFDAY.
69793
69794         Module mkdir.
69795         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69796         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69797
69798         Module mkstemp.
69799         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69800         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69801         jm_AC_TYPE_UINTMAX_T.
69802         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69803
69804         Module stat.
69805         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69806         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69807
69808         Module lstat.
69809         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69810         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69811
69812         Module timespec.
69813         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69814         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69815         * m4/st_mtim.m4: Indentation.
69816
69817         Module nanosleep.
69818         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69819         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69820         gl_PREREQ_NANOSLEEP.
69821
69822         Module regex.
69823         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69824         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69825         (gl_REGEX): New macro.
69826
69827         Module rename.
69828         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69829         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69830
69831         Module rmdir.
69832         * m4/rmdir.m4: New file.
69833
69834         Module utime.
69835         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69836         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69837         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69838
69839         Module dirname.
69840         * m4/dirname.m4: New file.
69841
69842         Module getopt.
69843         * m4/getopt.m4: New file.
69844
69845         Module unistd-safer.
69846         * m4/unistd-safer.m4: New file.
69847
69848         Module fnmatch.
69849         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69850         declaration.
69851         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69852         (gl_FUNC_FNMATCH_POSIX): New macro.
69853         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69854         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69855         simply fnmatch.
69856
69857         Module exclude.
69858         * m4/exclude.m4: New file.
69859
69860         Module human.
69861         * m4/human.m4: New file.
69862
69863         Module acl.
69864         * m4/acl.m4: Nop.
69865
69866         Module backupfile.
69867         * m4/backupfile.m4: New file.
69868         * m4/d-ino.m4: Indentation.
69869
69870         Module fsusage.
69871         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69872         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69873         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69874
69875         Module dirfd.
69876         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69877         requirements.
69878
69879         Module euidaccess.
69880         * m4/euidaccess.m4: New file.
69881
69882         Module file-type.
69883         * m4/file-type.m4: New file.
69884
69885         Module fileblocks.
69886         * m4/fileblocks.m4: New file.
69887
69888         Module filemode.
69889         * m4/filemode.m4: New file.
69890
69891         Module isdir.
69892         * m4/isdir.m4: New file.
69893
69894         Module lchown.
69895         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69896         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69897
69898         Module makepath.
69899         * m4/makepath.m4: New file.
69900
69901         Module modechange.
69902         * m4/modechange.m4: New file.
69903
69904         Module mountlist.
69905         * m4/mountlist.m4: New file.
69906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69907         Indentation.
69908
69909         Module path-concat.
69910         * m4/path-concat.m4: New file.
69911
69912         Module pathmax.
69913         * m4/pathmax.m4: New file.
69914
69915         Module same.
69916         * m4/same.m4: New file.
69917
69918         Module save-cwd.
69919         * m4/save-cwd.m4: New file.
69920
69921         Module savedir.
69922         * m4/savedir.m4: New file.
69923
69924         Module xgetcwd.
69925         * m4/xgetcwd.m4: New file.
69926         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69927
69928         Module xreadlink.
69929         * m4/xreadlink.m4: New file.
69930
69931         Module safe-read.
69932         * m4/safe-read.m4: New file.
69933
69934         Module safe-write.
69935         * m4/safe-write.m4: New file.
69936
69937         Module closeout.
69938         * m4/closeout.m4: New file.
69939
69940         Module stdio-safer.
69941         * m4/stdio-safer.m4: New file.
69942
69943         Module getpass.
69944         * m4/getpass.m4: New file.
69945
69946         Module getugroups.
69947         * m4/getugroups.m4: New file.
69948
69949         Module group-member.
69950         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69951         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69952
69953         Module idcache.
69954         * m4/idcache.m4: New file.
69955
69956         Module userspec.
69957         * m4/userspec.m4: New file.
69958
69959         Module gettime.
69960         * m4/clock_time.m4: New file.
69961         * m4/gettime.m4: New file.
69962
69963         Module settime.
69964         * m4/settime.m4: New file.
69965
69966         Module posixtm.
69967         * m4/posixtm.m4: New file.
69968
69969         Module gethostname.
69970         * m4/gethostname.m4: New file.
69971
69972         Module canon-host.
69973         * m4/canon-host.m4: New file.
69974
69975         Module gettext.
69976         * m4/codeset.m4: New file, from gettext-0.11.5.
69977         * m4/gettext.m4: New file, from gettext-0.11.5.
69978         * m4/glibc21.m4: New file, from gettext-0.11.5.
69979         * m4/iconv.m4: New file, from gettext-0.11.5.
69980         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69981         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69982         * m4/inttypes.m4: New file, from gettext-0.11.5.
69983         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69984         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69985         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69986         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69987         * m4/lib-link.m4: New file, from gettext-0.11.5.
69988         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69989         * m4/progtest.m4: New file, from gettext-0.11.5.
69990         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69991         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69992         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69993
69994         Module localcharset.
69995         * m4/localcharset.m4: New file.
69996
69997         Module hard-locale.
69998         * m4/hard-locale.m4: New file.
69999
70000         Module mbswidth.
70001         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70002         onceonly macros.
70003         * m4/mbrtowc.m4: Add comment.
70004
70005         Module memcasecmp.
70006         * m4/memcasecmp.m4: New file.
70007
70008         Module memcoll.
70009         * m4/memcoll.m4: New file.
70010
70011         Module unicodeio.
70012         * m4/unicodeio.m4: New file.
70013
70014         Module rpmatch.
70015         * m4/rpmatch.m4: New file.
70016
70017         Module yesno.
70018         * m4/yesno.m4: New file.
70019
70020         Module exitfail.
70021         * m4/exitfail.m4: New file.
70022
70023         Module c-stack.
70024         * m4/c-stack.m4 (gl_C_STACK): New macro.
70025         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70026
70027         Module error.
70028         * m4/error.m4 (gl_ERROR): New macro.
70029         (jm_PREREQ_ERROR): Use onceonly macros.
70030
70031         Module fatal.
70032         * m4/fatal.m4: New file.
70033
70034         Module getloadavg.
70035         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70036         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70037
70038         Module getpagesize.
70039         * m4/getpagesize.m4: New file.
70040
70041         Module getusershell.
70042         * m4/getusershell.m4: New file.
70043
70044         Module physmem.
70045         * m4/physmem.m4: New file.
70046
70047         Module posixver.
70048         * m4/posixver.m4: New file.
70049
70050         Module quotearg.
70051         * m4/quotearg.m4: New file.
70052
70053         Module quote.
70054         * m4/quote.m4: New file.
70055
70056         Module readutmp.
70057         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70058
70059         Module sig2str.
70060         * m4/sig2str.m4: New file.
70061
70062         Other.
70063         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70064         ulonglong.m4.
70065         * m4/intmax_t.m4: New file.
70066         * m4/d-type.m4: Indentation.
70067         * m4/jm-macros.m4: Update.
70068         * m4/prereq.m4 (jm_PREREQ): Update.
70069         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70070         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70071         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70072         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70073         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70074         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70075         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70076         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70077         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70078         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70079         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70080         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70081         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70082         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70083         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70084         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70085         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70086         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70087         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70088
70089 2002-12-24  Bruno Haible  <bruno@clisp.org>
70090
70091         * MODULES.txt: Update according to m4/ changes.
70092
70093         Module gettext.
70094         * config.rpath: New file, from gettext-0.11.5.
70095
70096         * modules/*: New module descriptions.
70097         * gnulib-tool: New file.
70098         * MODULES.html.sh: New file.
70099
70100 2002-12-21  Karl Berry  <karl@gnu.org>
70101
70102         * doc/fdl.texi: update to version 1.2.
70103
70104 2002-12-19  Karl Berry  <karl@gnu.org>
70105
70106         * config/config.guess: update from prep.
70107
70108 2002-12-18  Bruno Haible  <bruno@clisp.org>
70109
70110         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70111         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70112
70113 2002-12-17  Bruno Haible  <bruno@clisp.org>
70114
70115         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70116         stdlib.h, string.h.
70117
70118 2002-12-17  Bruno Haible  <bruno@clisp.org>
70119
70120         * lib/canon-host.c (strdup): Remove unused declaration.
70121
70122         * lib/fsusage.c: Include full_read.h.
70123         (get_fs_usage): Use full_read instead of safe_read.
70124
70125         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70126
70127 2002-12-12  Karl Berry  <karl@gnu.org>
70128
70129         * config/config.guess: update from prep.
70130
70131 2002-12-11  Bruno Haible  <bruno@clisp.org>
70132
70133         * m4/setenv.m4: New file, from gettext-0.11.5.
70134
70135 2002-12-11  Bruno Haible  <bruno@clisp.org>
70136
70137         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70138         not unsetenv().
70139         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70140         modifications:
70141
70142         2002-12-11  Bruno Haible  <bruno@clisp.org>
70143
70144                 * setenv.c (alloca): Fall back to malloc.
70145                 (freea): New macro.
70146                 (setenv): Use freea() to free memory allocated with alloca().
70147
70148         2002-11-13  Bruno Haible  <bruno@clisp.org>
70149
70150                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70151                 function declarations.
70152                 * unsetenv.c (unsetenv): Likewise.
70153
70154         2002-03-04  Bruno Haible  <bruno@clisp.org>
70155
70156                 Portability to AIX 4.3.3.
70157                 * unsetenv.c: New file, extracted from setenv.c.
70158                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70159
70160         2001-12-20  Bruno Haible  <bruno@clisp.org>
70161
70162                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70163                 use malloc instead. For SunOS 4.
70164
70165         2001-12-11  Bruno Haible  <bruno@clisp.org>
70166
70167                 * setenv.c: Declare alloca.
70168                 (compar_fn_t): New typedef.
70169                 (KNOWN_VALUE, STORE_VALUE): Use it.
70170
70171         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70172         setenv.h.
70173
70174 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70175
70176         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70177         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70178         Choose values that are less likely to collide with system fnmatch
70179         options.
70180         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70181         defined (e.g., a pure POSIX system).
70182         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70183         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70184
70185 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70186
70187         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70188         a pain in practice to deal with generated m4 files.  This change
70189         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70190
70191         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70192         and jm-glibc-io.m4, as they are no longer a special case.
70193         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70194         kludge and the auto-generation stuff.  Check only whether the
70195         functions are declared, not whether they exist, since older hosts
70196         that don't declare the functions can't use the optimization anyway.
70197
70198 2002-12-06  Jim Meyering  <jim@meyering.net>
70199
70200         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70201
70202         Merge in changes from libc's misc/error.c, in preparation
70203         for the merge of gnulib's changes back into libc.
70204
70205         * lib/error.c (_): Define only if not already defined.
70206         Move definition to follow all #include directives.
70207         Include unlocked-io.h only if !_LIBC.
70208         [_LIBC]: Include <libio/libioP.h>.
70209         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70210         (fflush): Tweak definition to use INTUSE.
70211         (putc): Define.
70212
70213 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70214
70215         * lib/alloca.c [defined emacs]: Include "lisp.h".
70216         (xalloc_die) [defined emacs]: New macro.
70217         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70218         [! defined emacs]: Include <xalloc.h>.
70219         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70220         (pointer): Typedef to POINTER_TYPE *.
70221         (malloc): Remove decl; we now always use xmalloc.
70222         (alloca): Use old-style definition, since Emacs needs this.
70223         Check for arithmetic overflow when computing combined size.
70224
70225 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70226
70227         Do not generate unlocked-io.h automatically, since it's easier to
70228         maintain it by hand.
70229
70230         * lib/unlocked-io.h: New file, from GNU diffutils,
70231         but with proper copyright notice and attribution.
70232         * lib/gen-uio: Remove.
70233         * lib/Makefile.am: Add copyright notice.
70234         (libfetish_a_SOURCES): Add unlocked-io.h.
70235         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70236         (DISTCLEANFILES, io_functions): Remove macros.
70237         (EXTRA_DIST): Remove gen_uio.
70238         (unlocked-io.h): Remove rule.
70239
70240 2002-12-04  Jim Meyering  <jim@meyering.net>
70241
70242         Reflect the fact that stat.c and lstat.c are no longer generated.
70243         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70244         (DISTCLEANFILES): Likewise.
70245         (EXTRA_DIST): Likewise.
70246         (all_local): Don't depend on stat.c or lstat.c.
70247         (stat.c, lstat.c): Remove rules.
70248         (EXTRA_DIST): Remove xstat.in.
70249
70250         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70251         * lib/stat.c: New file.  Contents mostly from xstat.in.
70252         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70253         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70254
70255         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70256         too.
70257         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70258
70259 2002-12-03  Jim Meyering  <jim@meyering.net>
70260
70261         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70262         but not semantics, to minimize the differences between these two files.
70263         (safe_read): Change comment to mention SAFE_READ_ERROR.
70264
70265         * lib/safe-read.c (IS_EINTR): Define.
70266         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70267
70268 2002-12-02  Jim Meyering  <jim@meyering.net>
70269
70270         * lib/safe-read.c (EINTR): Define.
70271         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70272         (INT_MAX): Provide fallback.
70273         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70274
70275         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70276
70277 2002-12-02  Bruno Haible  <bruno@clisp.org>
70278
70279         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70280         Define, taken from safe-read.c.
70281         (INT_MAX): Provide fallback.
70282         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70283         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70284
70285         * lib/safe-read.c (EINTR): Remove definition.
70286         (safe_read): Don't use EINTR if it is absent.
70287
70288 2002-12-01  Jim Meyering  <jim@meyering.net>
70289
70290         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70291         zero.
70292         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70293
70294 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70295
70296         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70297         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70298         with `if (! (value < limit)) abort ();', for readability.
70299
70300 2002-11-26  Karl Berry  <karl@gnu.org>
70301
70302         * lib/strdup.c: copy from libc again, with jim's ok.
70303         * lib/.cppi-disable: re-add strdup.c
70304
70305 2002-11-25  Karl Berry  <karl@gnu.org>
70306
70307         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70308         instead of "strtol.c".
70309
70310 2002-11-25  Karl Berry  <karl@gnu.org>
70311
70312         * config/install-sh: update from automake for variable quoting, $0 in
70313         error msgs, etc.
70314
70315         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70316         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70317         entry.
70318
70319 2002-11-25  Jim Meyering  <jim@meyering.net>
70320
70321         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70322
70323 2002-11-24  Karl Berry  <karl@gnu.org>
70324
70325         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70326         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70327
70328 2002-11-24  Jim Meyering  <jim@meyering.net>
70329
70330         Update from coreutils:
70331
70332         * lib/mktime.c: Merge in changes from libc.
70333
70334         Avoid a link-time failure on some Linux systems.
70335         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70336         (otherwise).
70337         (__mon_yday): Declare with the STATIC attribute.
70338         (__mktime_internal): Likewise.
70339         Based on a report from Greg Schafer.
70340
70341 2002-11-23  Jim Meyering  <jim@meyering.net>
70342
70343         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70344         Use `unsigned', not `int', as type of index.
70345
70346         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70347
70348         * lib/fsusage.c: Remove unneeded parentheses around operands of
70349         `defined'.
70350
70351 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70352
70353         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70354         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70355         so that we can be included first.
70356         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70357         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70358         No need to include stddef.h or sys/types.h any more.
70359         Surround local include files with "", not "<>".
70360         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70361         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70362         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70363         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70364         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70365         (ISPRINT): Remove; no longer needed now that we assume C89.
70366
70367         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70368         Preserve errno.
70369
70370         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70371         quotearg_char): Use SIZE_MAX rather than
70372         (size_t) -1 when we are talking about "infinity".
70373
70374         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70375
70376 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70377
70378         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70379         hint that one should use `if (! x) abort ();' rather than `assert
70380         (x);', and anyway it's one less thing to worry about configuring.
70381         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70382         hash_rehash, hash_insert): Use abort rather than assert.
70383
70384 2002-11-22  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/safe-read.h: Assume C89. Add comments.
70387         (safe_read): Change return type to size_t.
70388         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70389         byte counts > SSIZE_MAX correctly.
70390         * lib/safe-write.h: New file.
70391         * lib/safe-write.c: New file.
70392         * lib/full-read.h: New file.
70393         * lib/full-read.c: New file.
70394         * lib/full-write.h: Assume C89. Add comments.
70395         * lib/full-write.c: Include safe-write.h.
70396         (full_write): Rewritten to use safe_write.
70397         Suggested by Jim Meyering and Paul Eggert.
70398
70399 2002-11-21  Jim Meyering  <jim@meyering.net>
70400
70401         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70402
70403         Merge in changes from the coreutils.
70404
70405         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70406         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70407         <stdint.h>.
70408         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70409         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70410         int.  Work more efficiently if X is the same width as uintmax_t.
70411         Do not compare X to -1, to avoid bogus compiler warning.
70412         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70413         Don't assume that f_frsize and f_bsize are the same type.
70414
70415         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70416         warning on FreeBSD.
70417
70418         * lib/makepath.c (make_path): Restore umask *before* creating the final
70419         component.
70420         (make_path): Minor reformatting.
70421
70422         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70423         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70424         HAVE_MALLOC/HAVE_REALLOC.
70425
70426         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70427         dummy ones.  At least on GNU/Linux systems, `auto' means something
70428         else.
70429         From Michael Stone.
70430
70431 2002-11-21  Bruno Haible  <bruno@clisp.org>
70432
70433         Remove case insensitive option matching.
70434         * lib/argmatch.h (argcasematch): Remove declaration.
70435         (ARGCASEMATCH): Remove macro.
70436         (__xargmatch_internal): Remove case_sensitive argument.
70437         (XARGMATCH): Update.
70438         (XARGCASEMATCH): Remove macro.
70439         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70440         case_sensitive argument.
70441         (argcasematch): Remove function.
70442         (__xargmatch_internal): Remove case_sensitive argument.
70443         (main): Use XARGMATCH instead of XARGCASEMATCH.
70444
70445         * lib/xmalloc.c: Change compile-time error message. Add comment about
70446         required autoconf version.
70447
70448 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70449
70450         Merge argmatch cleanups from Bison.  Assume C89.
70451
70452         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70453         Include stdlib.h, for EXIT_FAILURE.
70454         Always include <string.h>, since we assume C89.
70455         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70456         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70457         Include <stddef.h> instead, since it's all we need for size_t.
70458         (PARAMS): Remove.  All uses removed.
70459         (ARRAY_CARDINALITY): Do not bother to #undef.
70460         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70461         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70462         Remove unnecessary parentheses.
70463         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70464         Insert necessary parentheses.
70465         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70466         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70467
70468 2002-11-19  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70471         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70472
70473         * lib/mbswidth.h (PARAMS): Remove macro.
70474         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70475         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70476
70477         * lib/gcd.h (PARAMS): Remove macro.
70478         (gcd): Use ANSI C function declarations.
70479         * lib/gcd.c (gcd): Likewise.
70480
70481 2002-11-15  Bruno Haible  <bruno@clisp.org>
70482
70483         * lib/strcspn.c: Include <stddef.h>.
70484         (strcspn): Use ANSI C function declaration. Change return type to
70485         size_t. Use NULL.
70486         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70487         (strpbrk): Use NULL.
70488         * lib/strpbrk.h (PARAMS): Remove macro.
70489         (strpbrk): Use ANSI C function declaration.
70490         * lib/strstr.c: Don't include <sys/types.h>.
70491         * lib/strstr.h (PARAMS): Remove macro.
70492         (strstr): Use ANSI C function declarations.
70493
70494 2002-11-14  Karl Berry  <karl@gnu.org>
70495
70496         * config/mkinstalldirs: `do' on separate line, instead of
70497         `for var; do'.
70498
70499 2002-11-06  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70502         * lib/gcd.c (gcd): Likewise.
70503
70504 2002-11-05  Bruno Haible  <bruno@clisp.org>
70505
70506         * lib/gcd.h: New file, from gettext-0.11.5.
70507         * lib/gcd.c: New file, from gettext-0.11.5.
70508
70509 2002-11-05  Bruno Haible  <bruno@clisp.org>
70510
70511         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70512         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70513         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70514         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70515
70516         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70517         <libintl.h>.
70518         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70519         <libintl.h>.
70520
70521         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70522         * lib/human.c: Include gettext.h instead of <libintl.h>.
70523         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70524         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70525         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70526         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70527         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70528         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70529         (textdomain): Remove definition.
70530         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70531
70532         * lib/long-options.c: Remove include of <libintl.h> and definition of
70533         _.
70534         * lib/same.c: Remove include of <libintl.h> and definition of _.
70535
70536 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70537
70538         * lib/config.charset: A few additions for Solaris.
70539
70540 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70541
70542         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70543         * lib/localcharset.c (locale_charset): Declare as extern "C".
70544
70545 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70546
70547         * lib/config.charset: msdos in uk_UA uses CP1125.
70548
70549 2002-11-04  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70552         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70553         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70554         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70555         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70556
70557 2002-11-04  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/localcharset.c (locale_charset): Don't return an empty string.
70560
70561 2002-11-04  Bruno Haible  <bruno@clisp.org>
70562
70563         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70564         aliases.
70565
70566 2002-11-04  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/config.charset: Update for newest glibc. Add canonical names
70569         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70570
70571 2002-11-04  Bruno Haible  <bruno@clisp.org>
70572
70573         * lib/config.charset: Add support for NetBSD.
70574
70575 2002-11-04  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70578
70579 2002-11-01  Bruno Haible  <bruno@clisp.org>
70580
70581         * configure.in: Add AC_CONFIG_AUX_DIR call.
70582         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70583         test/Makefile.
70584         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70585
70586 2002-09-28  Karl Berry  <karl@gnu.org>
70587
70588         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70589         installed automake until the next release, since changes have been
70590         made.
70591
70592 2002-09-25  Karl Berry  <karl@gnu.org>
70593
70594         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70595         * lib/getopt*: copy from libc/posix.
70596         * lib/gettext.h: copy from gettext.
70597         * lib/.cppi-disable: add strdup.c, gettext.h.
70598
70599 2002-09-25  Karl Berry  <karl@gnu.org>
70600
70601         * config/srclist.txt: enable gettext.h check.
70602         * config/config.{guess,sub}: update from prep.
70603         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70604                 from automake 1.6.3.
70605         See srclist*.
70606
70607 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70608
70609         * regex.c (PATFETCH): Remove the translating fetch.
70610         (PATFETCH_RAW): Rename to PATFETCH.
70611         (set_image_of_range): New fun.
70612         (SET_RANGE_TABLE_WORK_AREA): Use it.
70613         (regex_compile): Don't translate the pattern chars so eagerly.
70614         Only do it when inserting an `exactn' bytecode or when handling
70615         a char-range.
70616         (mutually_exclusive_p): Avoid empty statement.
70617
70618 2002-07-06  Jim Meyering  <meyering@lucent.com>
70619
70620         * m4/README: Don't mention Makefile.am.in.
70621         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70622
70623 2002-07-01  Jim Meyering  <meyering@lucent.com>
70624
70625         * lib/c-stack.c: Include sys/time.h.
70626         From Volker Borchert.
70627
70628 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70629
70630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70631
70632 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70635         New macro.  Use it uniformly instead of
70636         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70637         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70638         reported by Vin Shelton.
70639
70640 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70641
70642         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70643         Do not assume SA_SIGINFO behavior.
70644         Bug reported by Jim Meyering on NetBSD 1.5.2.
70645
70646 2002-06-22  Jim Meyering  <meyering@lucent.com>
70647
70648         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70650
70651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70652         now that configure.ac uses AC_GNU_SOURCE.
70653         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70654         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70655
70656         Update to latest tools.  Suggestions from Paul Eggert.
70657         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70658         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70659         * m4/fnmatch.m4: Likewise.
70660         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70661         to AC_HEADER_STDBOOL
70662
70663 2002-06-22  Jim Meyering  <meyering@lucent.com>
70664
70665         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70666         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70667
70668 2002-06-22  Jim Meyering  <meyering@lucent.com>
70669
70670         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70671
70672         * lib/exitfail.c, exitfail.h: Likewise.
70673         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70674
70675         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70676         of fnmatch.h.
70677         (EXTRA_DIST): Add fnmatch_loop.c.
70678         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70679
70680         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70681         * lib/fnmatch.c: Update from diffutils-2.8.2.
70682         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70683         * lib/fnmatch.h: Remove file.
70684
70685 2002-06-21  Jim Meyering  <meyering@lucent.com>
70686
70687         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70688         * m4/mbrtowc.m4: Likewise.
70689
70690         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70691         * m4/mbswidth.m4: Reflect name change:
70692         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70694
70695         * m4/lib-link.m4: Update from gettext-0.11.2.
70696         * m4/gettext.m4: Likewise.
70697
70698         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70699         From Alfred M. Szmidt.
70700
70701 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70702
70703         * lib/file-type.h: Report an error if neither S_ISREG nor
70704         S_IFREG is defined, instead of using a test specific to glibc
70705         2.2.  This should be safe, since POSIX requires S_ISREG and
70706         Unix Version 7 had S_IFREG.  We don't need to check for
70707         <sys/types.h> since we don't use any symbols that it defines.
70708
70709 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70710
70711         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70712         $@-t, so that each temporary file name is unique and valid in the first
70713         8 characters, for operation under DOS.
70714
70715 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70716
70717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70718
70719 2002-06-15  Jim Meyering  <meyering@lucent.com>
70720
70721         Work even with DJGPP 2.03, which lacks support for symlinks.
70722         From Richard Dawe.
70723         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70724         is defined.
70725         * lib/lchown.c (S_ISLNK): Likewise.
70726
70727 2002-06-15  Jim Meyering  <meyering@lucent.com>
70728
70729         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70730         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70731         have been included before this file.
70732
70733 2002-06-14  Jim Meyering  <meyering@lucent.com>
70734
70735         * lib/file-type.h: Use the version from diffutils-2.8.2.
70736         * lib/file-type.c: Likewise.
70737
70738 2002-06-07  Jim Meyering  <meyering@lucent.com>
70739
70740         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70741         They're needed at least for NetBSD 1.5.2.
70742         ($statxfs_includes): Include those same headers.
70743         ($statxfs_includes): Include sys/vfs.h if available.
70744         ($statxfs_includes): Likewise for sys/statvfs.h.
70745         Check for the following members in both structs statfs and statvfs:
70746         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70747
70748 2002-06-01  Jim Meyering  <meyering@lucent.com>
70749
70750         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70751         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70752
70753 2002-05-28  Jim Meyering  <meyering@lucent.com>
70754
70755         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70756         Reported by Volker Borchert.
70757
70758 2002-05-27  Jim Meyering  <meyering@lucent.com>
70759
70760         Fix a problem seen only on nonconforming systems whereby ls.c's
70761         use of localtime, and then of gettimeofday would cause trouble:
70762         the localtime call used to initialize rpl_gettimeofday's save
70763         mechanism would clobber ls's current local time information so
70764         that in any long listing the first file would always be listed
70765         with date 1970-01-01.  Analysis by Volker Borchert.
70766
70767         * lib/gettimeofday.c (localtime): Undefine.
70768         (rpl_localtime): New function.
70769
70770 2002-05-27  Jim Meyering  <meyering@lucent.com>
70771
70772         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70773         localtime.
70774
70775         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70776         use the replacement function; it wouldn't resolve at link time.
70777         Reported by Volker Borchert.
70778
70779 2002-05-22  Jim Meyering  <meyering@lucent.com>
70780
70781         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70782         file-type.h.
70783         * lib/file-type.h: New file.
70784         * lib/file-type.c (file_type): New file/function.  Extracted from
70785         diffutils.
70786
70787 2002-04-30  Jim Meyering  <meyering@lucent.com>
70788
70789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70790
70791 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70792
70793         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70794
70795 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70796
70797         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70798         Do not check for alloca.h (no longer used) or stdbool.h (was never
70799         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70800
70801 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70802
70803         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70804
70805 2002-04-29  Jim Meyering  <meyering@lucent.com>
70806
70807         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70808         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70809         Use AC_FUNC_STRNLEN here instead.
70810
70811         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70812         With autoconf-2.53a, it's part of AC_PROG_CC.
70813
70814 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70815
70816         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70818
70819 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70820
70821         * lib/sig2str.h, lib/sig2str.c: New files.
70822         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70823
70824 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70825
70826         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70827         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70828         of 127, since 64 is the largest conceivable number for ancient
70829         nonstandard hosts.
70830         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70831
70832 2002-04-28  Jim Meyering  <meyering@lucent.com>
70833
70834         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70835
70836 2002-04-24  Jim Meyering  <meyering@lucent.com>
70837
70838         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70839         (jm_PREREQ): Use it.
70840
70841         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70842         mach/mach.h fcntl.h.
70843         Check for this function: setlocale.
70844
70845 2002-04-24  Jim Meyering  <meyering@lucent.com>
70846
70847         * lib/gettext.h: New file, from Gettext.
70848         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70849         (libfetish_a_SOURCES): Add gettext.h.
70850
70851 2002-04-16  Jim Meyering  <meyering@lucent.com>
70852
70853         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70854         ut_pid, ut_id, ut_exit.
70855
70856 2002-04-16  Jim Meyering  <meyering@lucent.com>
70857
70858         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70859         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70860         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70861
70862 2002-04-12  Jim Meyering  <meyering@lucent.com>
70863
70864         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70865         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70866         existence of the getmntinfo function.  Needed for Darwin 5.3.
70867
70868         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70869         This is necessary at least on Darwin 5.3.
70870
70871         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70872         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70873         strnlen.o in the library, and that makes some versions of ranlib
70874         object.
70875
70876 2002-04-12  Jim Meyering  <meyering@lucent.com>
70877
70878         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70879
70880 2002-04-09  Jim Meyering  <meyering@lucent.com>
70881
70882         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70883         to be more precise.  Rather than saying we're checking whether the
70884         function `works', say what we're testing.
70885         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70886         Reported by Bruno Haible.
70887
70888 2002-03-10  Jim Meyering  <meyering@lucent.com>
70889
70890         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70891         Suggestion from Santiago Vila.
70892
70893 2002-03-08  Jim Meyering  <meyering@lucent.com>
70894
70895         * lib/rename.c: Mention that this wrapper is needed also on
70896         mips-dec-ultrix4.4 systems.
70897
70898 2002-03-02  Jim Meyering  <meyering@lucent.com>
70899
70900         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70901         not HAVE_CLOCK_SETTIME.
70902
70903 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70904
70905         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70906         Check for clock_settime.
70907
70908 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70909
70910         * lib/nanosleep.h: Rename to....
70911         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70912
70913         * lib/gettime.c: New file.
70914         * lib/settime.c: New file.
70915         * lib/stime.c: Remove.
70916
70917         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70918         timespec.h.  Remove nanosleep.h.
70919
70920 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70921
70922         * m4/acl.m4: New file.
70923         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70924         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70925
70926 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70927
70928         * lib/acl.c, lib/acl.h: New files.
70929         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70930
70931 2002-02-24  Jim Meyering  <meyering@lucent.com>
70932
70933         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70934         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70935         cause trouble.  Reported by Nelson Beebe.
70936
70937 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70938
70939         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70940         compilers that don't know that xalloc_die never returns.
70941
70942 2002-02-20  Jim Meyering  <meyering@lucent.com>
70943
70944         * lib/getdate.c: Regenerate using bison-1.33.
70945
70946 2002-02-17  Jim Meyering  <meyering@lucent.com>
70947
70948         * config/config.guess (main): Don't use `head -1'; it's no longer
70949         portable. Use `sed 1q' instead.
70950
70951 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70952
70953         * m4/codeset.m4: Upgrade to gettext-0.11.
70954         * m4/gettext.m4: Upgrade to gettext-0.11.
70955         * m4/glibc21.m4: Upgrade to gettext-0.11.
70956         * m4/iconv.m4: Upgrade to gettext-0.11.
70957         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70958         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70959         * m4/lib-ld.m4: New file, from gettext-0.11.
70960         * m4/lib-link.m4: New file, from gettext-0.11.
70961         * m4/lib-prefix.m4: New file, from gettext-0.11.
70962         * m4/progtest.m4: Upgrade to gettext-0.11.
70963
70964 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70965
70966         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70967         (jm_PREREQ): Use it.
70968
70969 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70970
70971         * lib/posixver.c, lib/posixver.h: New files.
70972         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70973
70974 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70975             Bruno Haible  <bruno@clisp.org>
70976
70977         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70978         (fwrite_success_callback): New declaration.
70979         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70980         print_unicode_char. Call failure callback instead of error.
70981         (fwrite_success_callback): New function.
70982         (exit_failure_callback): New function.
70983         (fallback_failure_callback): New function.
70984         (print_unicode_char): Call unicode_to_mb.
70985
70986 2002-01-26  Jim Meyering  <meyering@lucent.com>
70987
70988         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70989         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70990
70991 2002-01-26  Jim Meyering  <meyering@lucent.com>
70992
70993         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70994
70995 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70996
70997         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70998
70999 2002-01-22  Jim Meyering  <meyering@lucent.com>
71000
71001         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71002         Otherwise, some versions of automake would omit the rule that makes
71003         Makefile from Makefile.in.
71004
71005 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71006
71007         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71008         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71009         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71010         (memcoll): Set errno to zero if there is no error.
71011
71012         * lib/quotearg.c (quotearg_buffer_restyled):
71013         Fix bug with quoting buffers containing NUL when backslashing escapes.
71014         This bug was exposed by the other changes in this patch.
71015         (quotearg_n_options): New arg ARGSIZE.
71016         All callers changed.
71017         (quoting_options_from_style): New function.
71018         (quotearg_n_style): Use it.
71019         (quotearg_n_style_mem): New function.
71020
71021         * lib/quotearg.h (quotearg_n_style_mem): New function.
71022
71023 2002-01-19  Jim Meyering  <meyering@lucent.com>
71024
71025         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71026         Remove useless quotes: DF_PROG="df".
71027         * m4/strnlen.m4: New file.
71028
71029 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71030
71031         * lib/backupfile.c (ISDIGIT): Comment fix.
71032         * lib/getdate.y (ISDIGIT): Likewise.
71033         * lib/posixtm.c (ISDIGIT, year): Likewise.
71034         * lib/strverscmp.c (ISDIGIT): Likewise.
71035         * lib/userspec.c (ISDIGIT): Likewise.
71036
71037 2002-01-16  Jim Meyering  <meyering@lucent.com>
71038
71039         * lib/getdate.y: Add three semicolons, each just before a closing
71040         brace. Bison (as of version 1.31) no longer papers over that mistake.
71041
71042 2002-01-05  Jim Meyering  <meyering@lucent.com>
71043
71044         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71045
71046 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71047
71048         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71049         not silently exit merely because the output buffer happens to
71050         have nothing pending.
71051
71052 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71053
71054         See the big note in ../ChangeLog.
71055         * lib/human.c (suffixes): Prefer K to k for 1024.
71056         (generate_suffix_backwards): New function.
71057         (human_readable_inexact): Use it.
71058         * lib/xstrtol.c (__xstrtol): If there is no number but there
71059         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71060         Accept 'K' as well as 'k'.
71061
71062 2001-12-15  Jim Meyering  <meyering@lucent.com>
71063
71064         * lib/regex.h (__restrict_arr): Update from libc.
71065
71066         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71067         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71068         (STREQ): Define.
71069
71070 2001-12-14  Jim Meyering  <meyering@lucent.com>
71071
71072         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71073         Suggestion from Bruno Haible.
71074
71075 2001-12-10  Jim Meyering  <meyering@lucent.com>
71076
71077         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71078         xrealloc, Instead, include "xalloc.h".
71079         (initbuffer): Don't cast xmalloc return value to char*.
71080         (readline): Reword comment.
71081         Don't cast xrealloc return value to char*
71082         Return NULL, not 0.
71083
71084 2001-12-09  Jim Meyering  <meyering@lucent.com>
71085
71086         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71087         about `signed and unsigned type in conditional expression'.
71088         * lib/posixtm.c (posix_time_parse): Likewise.
71089
71090         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71091
71092         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71093         to avoid a pedantic warning.
71094
71095         * lib/getstr.c: Don't include assert.h.
71096         (getstr): Remove warning-evoking assertions.
71097         Return -1 if offset parameter is out of bounds.
71098         Change the type of a local from int to size_t.
71099
71100         * lib/strftime.c (my_strftime_localtime_r): Include this function
71101         definition in the `#if ! HAVE_TM_GMTOFF' block.
71102
71103         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71104         Include xalloc.h instead.
71105
71106 2001-12-02  Jim Meyering  <meyering@lucent.com>
71107
71108         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71109         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71110         included.
71111
71112         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71113         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71114
71115 2001-11-30  Akim Demaille  <akim@epita.fr>
71116
71117         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71118         before being defined.
71119
71120 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71121
71122         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71123         First arg is int, not unsigned.
71124         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71125         (SIZE_MAX, UINT_MAX): New macros.
71126         (quotearg_n_options): Abort if N is negative.
71127         Avoid overflow check on hosts where size_t is 64 bits and int
71128         is 32 bits, as overflow is impossible there.
71129         Fix off-by-one typo that caused unnecessary reallocation.
71130
71131 2001-11-27  Jim Meyering  <meyering@lucent.com>
71132
71133         * lib/tempname.c: Merge with version from libc.
71134         * lib/regex.c: Likewise.
71135
71136         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71137         systems for which STDC_HEADERS is 0, it was not included, resulting in
71138         a warning about an integer-to-pointer conversion problem with getenv.
71139         Reported by Volker Borchert.
71140
71141 2001-11-26  Jim Meyering  <meyering@lucent.com>
71142
71143         * lib/gtod.h: Remove file.
71144         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71145         * lib/gettimeofday.c: Don't include gtod.h.
71146         (GTOD_init): Remove function.
71147         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71148         Suggestion from Volker Borchert.
71149
71150 2001-11-23  Jim Meyering  <meyering@lucent.com>
71151
71152         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71153         it.
71154         * lib/hash.c (struct hash_table): Define it here instead.
71155
71156 2001-11-22  Jim Meyering  <meyering@lucent.com>
71157
71158         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71159
71160 2001-11-20  Jim Meyering  <meyering@lucent.com>
71161
71162         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71163         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71164
71165 2001-11-19  Jim Meyering  <meyering@lucent.com>
71166
71167         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71168         directory.  Use "conftestXXXXXX" as the template.
71169         Suggestion from Paul Eggert.
71170
71171         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71172         immediately, so the test doesn't mistakenly hit the max-open-files
71173         limit.
71174
71175 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71176
71177         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71178         (TEMPORARIES): New macro.
71179         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71180         removes an artificial limitation (e.g. HP-UX 10.20, where
71181         TMP_MAX is 17576).
71182
71183 2001-11-18  Jim Meyering  <meyering@lucent.com>
71184
71185         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71186
71187 2001-11-18  Jim Meyering  <meyering@lucent.com>
71188
71189         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71190         on SunOS 4.
71191
71192         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71193         files will be created before anything else.
71194
71195 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71196
71197         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71198         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71199
71200 2001-11-17  Jim Meyering  <meyering@lucent.com>
71201
71202         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71203         Prompted by a report from Bob Proulx.
71204
71205         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71206         Instead, require UTILS_FUNC_MKSTEMP.
71207
71208 2001-11-17  Jim Meyering  <meyering@lucent.com>
71209
71210         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71211         Now, that's done as part of AC_FUNC_STRTOD.
71212
71213 2001-11-17  Jim Meyering  <meyering@lucent.com>
71214
71215         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71216         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71217         rather than group writable.  Patch by Juan F. Codagnone.
71218
71219         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71220         xrealloc, Instead, include "xalloc.h".
71221
71222         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71223         Remove explicit declarations of xmalloc, xrealloc,
71224         and xstrdup.  Instead, include "xalloc.h".
71225
71226         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71227         unlocked-io.h.
71228         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71229         Likewise.
71230         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71231
71232         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71233         Reported by Padraig Brady.
71234
71235         * lib/mkstemp.c: #undef mkstemp.
71236         Include config.h.
71237         (rpl_mkstemp): Rename from mkstemp.
71238         Protoize.
71239
71240 2001-11-16  Jim Meyering  <meyering@lucent.com>
71241
71242         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71243         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71244         determine the amount of total physical memory, use pstat_getstatic.
71245         HPUX-11 doesn't define _SC_PHYS_PAGES.
71246         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71247         If sysconf couldn't be used to determine the amount of available
71248         physical memory, use both pstat_getstatic and pstat_getdynamic.
71249         Based on a patch from Bob Proulx.
71250
71251 2001-11-10  Jim Meyering  <meyering@lucent.com>
71252
71253         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71254         (jm_PREREQ): Use it.
71255
71256 2001-11-09  Jim Meyering  <meyering@lucent.com>
71257
71258         * m4/jm-macros.m4: Require autoconf-2.52f.
71259         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71260         Use these AC_-prefixed names, not the AM_-prefixed ones.
71261
71262         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71263
71264 2001-11-05  Jim Meyering  <meyering@lucent.com>
71265
71266         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71267
71268 2001-11-04  Jim Meyering  <meyering@lucent.com>
71269
71270         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71271         $DEFS.
71272
71273 2001-11-03  Jim Meyering  <meyering@lucent.com>
71274
71275         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71276         of AC_DEFUN.
71277
71278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71279         know the name of the variable in the macro definition.
71280
71281 2001-11-03  Jim Meyering  <meyering@lucent.com>
71282
71283         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71284         in argmatch_to_argument call.
71285
71286         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71287         argument.
71288
71289         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71290         e.g., a fault due to an attempt to free a NULL pointer.
71291
71292 2001-11-01  Jim Meyering  <meyering@lucent.com>
71293
71294         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71295         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71296
71297 2001-11-01  Jim Meyering  <meyering@lucent.com>
71298
71299         * lib/dirfd.c, lib/dirfd.h: New files.
71300         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71301
71302         * lib/hash.c (hash_print) [TESTING]: Clean up.
71303
71304 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71305
71306         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71307         to avoid a warning if -Wall.
71308
71309 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71310
71311         * README: New file
71312         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71313         (per RMS's instructions, this is now the canonical source)
71314         * lgpl/, gpl/: New directories.
71315
71316 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71317
71318         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71319
71320 2001-10-21  Jim Meyering  <meyering@lucent.com>
71321
71322         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71323         this code would end up calling gettext even in packages built
71324         with --disable-nls.
71325         * lib/getopt.c (_): Likewise.
71326         * lib/regex.c (_): Likewise.
71327
71328 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71329
71330         * m4/error.m4 (jm_PREREQ_ERROR):
71331         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71332         AC_FUNC_STRERROR_R does that.
71333         Check for strerror declaration.
71334
71335         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71336         are supposed to have them these days.
71337         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71338         Merge changes from latest Autoconf CVS.
71339         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71340         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71341         POSIX decided to standardize on the int flavor of strerror_r.
71342
71343 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71344
71345         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71346         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71347         Use strerror_r that is only a macro, even if it is not a function.
71348         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71349         (private_strerror): Use prototypes, not old-style function definition.
71350         (print_errno_message): New function.
71351         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71352         char*-flavored one.
71353         (error_tail, error, error_at_line): Use it.
71354
71355 2001-10-11  Jim Meyering  <meyering@lucent.com>
71356
71357         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71358         and quote_n (1, ... to avoid clobbering a buffer.
71359
71360 2001-10-05  Jim Meyering  <meyering@lucent.com>
71361
71362         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71363         hash-pjw.h.
71364         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71365         * lib/hash-pjw.h: New file.
71366
71367 2001-09-30  Jim Meyering  <meyering@lucent.com>
71368
71369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71370         `struct fsstat' has the `f_fstypename' member.
71371         Use that to define FS_TYPE, which is now used to make
71372         the getfsstat link test tighter.
71373
71374 2001-09-30  Jim Meyering  <meyering@lucent.com>
71375
71376         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71377         Include <sys/ucred.h>, for Apple Darwin.
71378         Include sys/mount.h and sys/fs_types.h only if available.
71379         (FS_TYPE): Define.
71380         (read_filesystem_list): Use FS_TYPE.
71381
71382 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71383
71384         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71385         a boolean context.
71386
71387 2001-09-29  Jim Meyering  <meyering@lucent.com>
71388
71389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71390         [one-argument getmntent function]): Include stdio.h before mntent.h.
71391         SunOS 4.1.x needs it for the declaration of `FILE'.
71392         Patch by Volker Borchert.
71393
71394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71395         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71396         sys/fs_types.h, and make the link-test for getfsstat guard #include
71397         directives with appropriate #if HAVE_*_H tests so that we can
71398         detect getfsstat on Apple Darwin1.3.7 systems.
71399         Reported by Nelson Beebe.
71400         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71401
71402 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71403
71404         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71405         #defines strtoimax.  Also treat the other strto* functions
71406         like strtoimax.
71407
71408         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71409         Check for strtoul and strtoumax,
71410         as those declarations are made even in the signed case.
71411         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71412         Likewise, for strtol and strtoimax.
71413
71414 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71415
71416         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71417         #defines strtoimax.  Also treat the other strto* functions
71418         like strtoimax.
71419
71420         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71421         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71422         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71423
71424 2001-09-26  Jim Meyering  <meyering@lucent.com>
71425
71426         Most macros in unlocked-io.h had the wrong number of arguments.
71427         * lib/gen-uio: New script.
71428         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71429         * lib/unlocked-io.hin: Remove file.
71430         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71431         rather than trying to embed it here.
71432         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71433         Reported by Padraig Brady.
71434
71435 2001-09-25  Volker Borchert  <bt@teknon.de>
71436
71437         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71438         `result'.
71439
71440 2001-09-24  Jim Meyering  <meyering@lucent.com>
71441
71442         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71443
71444 2001-09-23  Jim Meyering  <meyering@lucent.com>
71445
71446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71447         instead of the mere test for existence of mntent.h.  The latter
71448         would get a false-positive on AIX 3.4 systems.
71449         In the outer getmntent if-block, don't die if neither of the getmntent
71450         tests succeeds.  Instead, just fall through and continue with the
71451         remaining tests.
71452
71453 2001-09-23  Jim Meyering  <meyering@lucent.com>
71454
71455         * lib/mountlist.c: Remove useless parentheses in #if directives.
71456         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71457         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71458
71459 2001-09-22  Jim Meyering  <meyering@lucent.com>
71460
71461         * m4/gettext.m4: New file.  From gettext.
71462         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71463         * m4/progtest.m4: Likewise
71464         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71465         * m4/glibc21.m4: Likewise.
71466
71467         * m4/libintl.m4: Remove.  No longer used.
71468
71469 2001-09-22  Jim Meyering  <meyering@lucent.com>
71470
71471         * lib/localcharset.c: Update from latest gettext.
71472         * lib/config.charset: Likewise.
71473
71474 2001-09-20  Jim Meyering  <meyering@lucent.com>
71475
71476         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71477         strtoimax.
71478         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71479         strtoumax.
71480
71481 2001-09-20  Jim Meyering  <meyering@lucent.com>
71482
71483         * lib/xstrtol.c (strtoimax): Guard declaration with
71484         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71485         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71486         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71487         (strtoumax): Likewise, for completeness (it wasn't necessary).
71488
71489 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71490
71491         * lib/strtoimax.c (HAVE_LONG_LONG):
71492         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71493         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71494         to work around bug in IBM C compiler.
71495
71496 2001-09-17  Jim Meyering  <meyering@lucent.com>
71497
71498         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71499         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71500         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71501         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71502         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71503         whenever the right hand side need not be expanded by the shell.
71504
71505 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71506
71507         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71508         library.  It's not correct, as some older glibcs are buggy.
71509         fnmatch wasn't fixed until glibc 2.2.
71510
71511         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71512         special shell magic here.
71513
71514 2001-09-16  Jim Meyering  <meyering@lucent.com>
71515
71516         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71517         * m4/jm-macros.m4: Require it.
71518
71519 2001-09-16  Jim Meyering  <meyering@lucent.com>
71520
71521         * lib/mkdir.c: New file.
71522
71523 2001-09-15  Jim Meyering  <meyering@lucent.com>
71524
71525         * m4/jm-macros.m4: Check for help2man.
71526
71527 2001-09-11  Jim Meyering  <meyering@lucent.com>
71528
71529         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71530         The body, by Paul Eggert, was moved here from configure.in.
71531         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71532
71533 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71534
71535         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71536         (jm_PREREQ): Use it.
71537
71538 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71539
71540         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71541         Use ssize_t, not int, to store result of readlink.
71542         Check for ssize_t overflow as well as size_t overflow,
71543         as POSIX says the result of readlink is implementation-defined
71544         when ssize_t overflows.
71545         Remove unnecessary cast to char*.
71546         Use free+malloc instead of realloc, as the storage doesn't need
71547         to be preserved and it's clearer and can be more efficient that way.
71548         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71549         * lib/xreadlink.h (xreadlink): Update prototype.
71550
71551 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71552
71553         * lib/xgetcwd.c: Revert some of the previous change; intead,
71554         fix the HAVE_GETCWD_NULL code to behave more like the
71555         !HAVE_GETCWD_NULL code used to.
71556
71557         Include "xalloc.h".
71558         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71559         invoke xalloc_die.
71560
71561 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71562
71563         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71564         sys/param.h, as pathmax.h includes them.
71565
71566 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71567
71568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71569         (jm_PREREQ_XGETCWD): New macro.
71570
71571         * m4/getcwd.m4: New file.
71572
71573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71574
71575         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71576         like the HAVE_GETCWD_NULL code.
71577         Include pathmax.h if not HAVE_GETCWD.
71578         Do not include xalloc.h.
71579         (INITIAL_BUFFER_SIZE): New symbol.
71580         Do not use xmalloc / xrealloc, since the caller is responsible for
71581         handling errors.  Preserve errno around `free' during failure.
71582         Do not overrun buffer when using getwd.
71583
71584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71585
71586         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71587         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71588         getcwd (NULL, 0).
71589
71590 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71591
71592         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71593         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71594         spotted by Jim Meyering.
71595
71596 2001-09-03  Jim Meyering  <meyering@lucent.com>
71597
71598         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71599         failure.
71600
71601 2001-09-02  Jim Meyering  <meyering@lucent.com>
71602
71603         * lib/error.c: Update from GNU libc.
71604
71605 2001-09-01  Jim Meyering  <meyering@lucent.com>
71606
71607         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71608         Used by df.
71609
71610 2001-09-01  Jim Meyering  <meyering@lucent.com>
71611
71612         * lib/xreadlink.c: New file.
71613         * lib/xreadlink.h: New file.
71614         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71615         xreadlink.h.
71616
71617         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71618         doesn't conflict with sparc Solaris 7's definition in
71619         /usr/include/sys/int_types.h.
71620
71621         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71622         files.
71623         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71624         and strncasecmp as r-values.  Unixware didn't have declarations.
71625
71626 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71627
71628         * lib/xstrtol.h: Add copyright notice.
71629         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71630         LONGINT_INVALID_SUFFIX_CHAR.
71631
71632 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71633
71634         * lib/xstrtol.c (strtoimax): New decl.
71635
71636 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71637
71638         * lib/xgetcwd.c: Don't include pathmax.h.
71639         Include stdlib.h and unistd.h if available.
71640         Include xalloc.h.
71641         (xmalloc, xstrdup, free): Remove decls.
71642         (xgetcwd): Don't assume sizes fit in unsigned.
71643         Check for overflow when computing sizes.
71644         Simplify reallocation code.
71645
71646 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71647
71648         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71649         a directory's st_size can have an arbitrary value, so the old
71650         usage could waste an arbitrary amount of memory.  All uses
71651         changed.
71652         * lib/savedir.h: Update prototype.
71653
71654 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71655
71656         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71657
71658         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71659         old strtoimax.c.
71660
71661         Also, make the following further changes to make this file's
71662         configuration more similar to that of strtol.c:
71663         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71664         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71665         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71666         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71667         changed to signed values.
71668
71669         And make the following changes as well:
71670         Fix copyright notice, as 1999 was missing.
71671         (verify): New macro.
71672         (strtoimax): Check sizes at compile-time, not run-time.
71673         Prefer strtol to strtoll if both work.
71674         (main): Remove; it was not that useful and was a pain to maintain.
71675
71676         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71677
71678 2001-08-31  Jim Meyering  <meyering@lucent.com>
71679
71680         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71681         Use an initial, malloc'd, buffer of length 128 rather than
71682         a statically allocated one of length 1024.
71683
71684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71685
71686         Simplify code, partly by assuming autoconf 2.52 semantics.
71687
71688         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71689
71690         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71691         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71692         All uses removed.
71693         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71694         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71695         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71696         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71697         jm_AC_HEADER_INTTYPES_H.
71698         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71699
71700         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71701
71702         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71703         Quote first arg of AC_DEFUN.
71704         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71705         since they are needed to parse the include file even if we need
71706         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71707         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71708         but with opposite signedness.
71709
71710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71711
71712         Merge 'exclude' changes from tar 1.13.22.
71713         This fixes one or two unlikely storage allocation overflow bugs,
71714         but doesn't change user-visible behavior otherwise.
71715
71716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71717
71718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71719         (jm_PREREQ_EXCLUDE): New macro.
71720
71721 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71722
71723         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71724         tm to be declared.
71725
71726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71727
71728         * lib/hash.c: Remove '2001' from copyright notice.
71729
71730 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71731
71732         * lib/full-write.h: New file.
71733         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71734         * lib/full-write.c: Correct credits, as cccp.c no longer
71735         exists and anyway it was so heavily changed from the old cccp
71736         code as to be unrecognizable.  Include full-write.h.
71737         (full_write) Return size_t, with short writes meaning failure.
71738         All callers changed.  This fixes a bug with large buffers
71739         on 64-bit hosts.
71740         * lib/utime.c: Include full-write.h.
71741
71742 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71743
71744         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71745         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71746         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71747         Include if available.
71748         (<xalloc.h>): Include
71749         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71750         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71751         collide with FNM macros.
71752         (struct patopts): New struct.
71753         (struct exclude): Use it, as exclude patterns now come with options.
71754         (new_exclude): Support above changes.
71755         (new_exclude, add_exclude_file):
71756         Initial size must now be a power of two to simplify overflow checking.
71757         (free_exclude, fnmatch_no_wildcards): New function.
71758         (excluded_filename): No longer requires options arg, as the options
71759         are determined by add_exclude.  Now returns bool, not int.
71760         (excluded_filename, add_exclude):
71761         Add support for the fancy new exclusion options.
71762         (add_exclude, add_exclude_file): Now takes int options arg.
71763         Check for arithmetic overflow when computing sizes.
71764         (add_exclude_file): xrealloc might modify errno, so don't
71765         realloc until after errno might be used.
71766
71767         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71768         New macros.
71769         (free_exclude): New decl.
71770         (add_exclude, add_exclude_file): Now takes int options arg.
71771         (excluded_filename): No longer requires options arg, as the options
71772         are determined by add_exclude.  Now returns bool, not int.
71773
71774 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71775
71776         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71777
71778 2001-08-27  Jim Meyering  <meyering@lucent.com>
71779
71780         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71781
71782         * lib/version-etc.c (N_): Remove definition.
71783         Revert most of last change.
71784         Instead, simply don't mark the `Copyright...' string for translation.
71785         Based on advice from Paul Eggert.
71786
71787         * lib/strtoxmax.c: Tweak comment.
71788
71789 2001-08-26  Jim Meyering  <meyering@lucent.com>
71790
71791         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71792
71793         * m4/xstrtoimax.m4: New file.
71794         * m4/xstrtoumax.m4: Add comments explaining why we
71795         AC_REPLACE_FUNCS(strtol).
71796
71797 2001-08-26  Jim Meyering  <meyering@lucent.com>
71798
71799         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71800         of copyright with `%s' so translators don't get an untranslated
71801         message in 2002.
71802         (COPYRIGHT_YEAR): Define.
71803         (version_etc): Use fprintf rather than fputs.
71804         Suggestion from Ulrich Drepper.
71805
71806         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71807
71808         * lib/strtoll.c: New file, from GNU libc.
71809         * lib/xstrtoimax.c: New file.
71810
71811         * lib/xstrtol.h: Add xstrtoimax.
71812         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71813         * lib/strtoimax.c: New file.  Likewise, but first define
71814         STRTOUXMAX_SIGNED.
71815
71816         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71817         ...
71818         * lib/strtoxmax.c: ... then renamed to this.
71819
71820 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71821
71822         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71823         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71824         (jm_AC_TYPE_INTMAX_T): New macro.
71825         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71826
71827         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71828
71829         * m4/longlong.m4: Renamed from ulonglong.m4.
71830         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71831         * m4/uintmax_t.m4: Removed.
71832
71833 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71834
71835         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71836         Port to Solaris 8, where 'sed' requires a space after the 'r'
71837         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71838         Redirect output to $tmp just once.
71839
71840 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71841
71842         * lib/addext.c (<errno.h>): Include.
71843         (errno): Declare if not defined.
71844         (addext): Work correctly when pathconf returns -1 and leaves
71845         errno alone because there is no limit.  Also, work even if
71846         pathconf returns a value greater than SIZE_MAX.
71847
71848 2001-08-12  Jim Meyering  <meyering@lucent.com>
71849
71850         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71851         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71852         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71853         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71854         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71855         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71856         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71857         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71858         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71859         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71860         utime.m4, utimes.m4, xstrtoumax.m4:
71861         Quote the first argument in each use of AC_DEFUN.
71862
71863 2001-08-12  Jim Meyering  <meyering@lucent.com>
71864
71865         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71866         Simply `return getcwd (NULL, 0);'.
71867         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71868         Use 1300 as initial value for length, not PATH_MAX.
71869
71870         * lib/pathmax.h: Clean up cpp syntax.
71871
71872 2001-08-12  Jim Meyering  <meyering@lucent.com>
71873
71874         * lib/gettimeofday.c: New file.
71875         * lib/gtod.h: New file.
71876         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71877
71878 2001-08-05  Jim Meyering  <meyering@lucent.com>
71879
71880         * m4/jm-macros.m4: Require autoconf-2.52.
71881
71882 2001-08-04  Jim Meyering  <meyering@lucent.com>
71883
71884         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71885         stmt, to get in sync with glibc.
71886
71887 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71888
71889         The following changes are from gettext 0.10.39 as maintained by
71890         Bruno Haible.
71891
71892         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71893         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71894         with inverted sense.  All uses changed.
71895
71896         * lib/mbswidth.c: Don't include <limits.h>.
71897         Include <stdlib.h> and <string.h> unconditionally.
71898         (iswcntrl, mbsinit, ISCNTRL): New macros.
71899         (mbsnwidth): Use K&R style function declarations.
71900         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71901         can optimize it when MB_CUR_MAX == 1.
71902         The width of control characters is zero, not 1.
71903
71904 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71905
71906         The following changes are from gettext 0.10.39 as maintained by
71907         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71908
71909         * m4/codeset.m4: Upgrade to serial AM1.
71910         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71911         all uses changed.  Quote first arg of AC_DEFUN.
71912         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71913
71914         * m4/iconv.m4: Upgrade to serial AM2.
71915         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71916         Add --with-libconv-prefix.
71917         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71918         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71919         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71920         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71921         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71922
71923         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71924         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71925         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71926         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71927         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71928         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71930         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71931         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71932
71933         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71934         string.h any more.
71935
71936         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71937         not the default value.
71938
71939         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71940         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71941         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71942         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71943         Also check for iswcntrl, used for wcwidth fallback.
71944         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71945         to Autoconf 2.13.
71946
71947 2001-08-03  Jim Meyering  <meyering@lucent.com>
71948
71949         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71950         as it was in the original.  Reported by Paul Eggert.
71951
71952 2001-07-16  Jim Meyering  <meyering@lucent.com>
71953
71954         * m4/gettimeofday.m4: New file.
71955         Prompted by a report from Bernhard Baehr.
71956
71957 2001-07-15  Jim Meyering  <meyering@lucent.com>
71958
71959         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71960         stuff. Now it's in ../Makefile.cfg.
71961
71962 2001-07-15  Jim Meyering  <meyering@lucent.com>
71963
71964         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71965         (BUILT_SOURCES): Add unlocked-io.h.
71966         (io_functions): Define.
71967         (unlocked-io.h): New rule.
71968         (DISTCLEANFILES): Add unlocked-io.h.
71969         (all-local): Depend on unlocked-io.h, to ensure it is created.
71970
71971         * lib/unlocked-io.hin: New file
71972
71973         * lib/regex.c: Update from glibc.
71974
71975 2001-07-05  Jim Meyering  <meyering@lucent.com>
71976
71977         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71978         recommendation.
71979         (libfetish_a_SOURCES): Put all .h files here instead.
71980         Remove a thus-exposed (better checks in automake) duplicate and
71981         two unnecessary .h files.
71982
71983 2001-07-04  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71986         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71987         distcheck failure.
71988
71989 2001-07-02  Jim Meyering  <meyering@lucent.com>
71990
71991         The following changes were prompted by suggestions from Bruno Haible.
71992
71993         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71994         is now generated.
71995         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71996         definition of EXTRA_DIST.
71997         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71998         ensure that the generated file is created/updated whenever the list
71999         of $(unlocked_functions) is changed.
72000         (jm-glibc-io.m4): New rule.
72001         (unlocked-io.h): New rule -- currently unused.
72002
72003 2001-06-24  Jim Meyering  <meyering@lucent.com>
72004
72005         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72006         unmatched right bracket, rather than kludging it with an extra,
72007         falsely-matching quote in a comment.  Patch by Akim Demaille.
72008
72009 2001-06-11  Jim Meyering  <meyering@lucent.com>
72010
72011         * lib/regex.c: Update from GNU libc.
72012
72013 2001-05-27  Jim Meyering  <meyering@lucent.com>
72014
72015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72016         Check for ut_type in struct utmp.
72017
72018 2001-05-27  Jim Meyering  <meyering@lucent.com>
72019
72020         * lib/readutmp.h (UT_TYPE): Define.
72021
72022 2001-05-24  Jim Meyering  <meyering@lucent.com>
72023
72024         * lib/argmatch.c: Include "quote.h".
72025         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72026         quote function.  Reported by Göran Uddeborg.
72027
72028 2001-05-22  Jim Meyering  <meyering@lucent.com>
72029
72030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72031         now that we use the package-supplied version unconditionally.
72032         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72033
72034 2001-05-21  Jim Meyering  <meyering@lucent.com>
72035
72036         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72037         shell syntax errors.
72038
72039 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72040
72041         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72042
72043 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72044
72045         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72046         Don't bother to check library strftime, since
72047         we'll be using our own my_strftime function anyway.
72048         Define my_strftime instead of strftime.
72049
72050 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72051
72052         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72053         which is not yet declared.
72054
72055 2001-05-15  Jim Meyering  <meyering@lucent.com>
72056
72057         * m4/regex.m4: Use proper quoting so brackets appear in the test
72058         program.
72059         Reported by, and with help from, Bruno Haible.
72060
72061 2001-05-13  Jim Meyering  <meyering@lucent.com>
72062
72063         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72064         undefined.
72065
72066 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72067
72068         dirname code cleanup.  base_name now behaves more compatibly
72069         with POSIX basename when given file names that have trailing
72070         slashes, and similarly for dir_name.  Add new primitives
72071         base_len and dir_len.  Put the directory-name-related decls
72072         into dirname.h.
72073
72074         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72075         * lib/backupfile.c (base_name): Likewise.
72076         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72077         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72078         * lib/makepath.c (strip_trailing_slashes): Likewise.
72079         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72080         ISSLASH): Likewise.
72081         * lib/rename.c (strip_trailing_slashes): Likewise.
72082         * lib/same.c (base_name): Likewise.
72083         * lib/stripslash.c (ISSLASH): Likewise.
72084
72085         * lib/addext.c: Include <dirname.h> after size_t is defined.
72086         * lib/backupfile.c: Likewise.
72087
72088         * lib/addext.c (addext): Use base_len to trim redundant
72089         trailing slashes instead of doing it ourselves.
72090         But do not trim the last slash if it is not redundant.
72091
72092         * lib/backupfile.c (find_backup_file_name,
72093         max_backup_version): Use base_len instead of rolling it ourselves.
72094         Handle the case of "" and (on DOS) "C:" correctly.
72095
72096         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72097         needed. Include <string.h>, <dirname.h>.
72098         (base_name): Allow file names ending in slashes, other than names
72099         that are all slashes.  In this case, return the basename followed
72100         by the slashes.  This is more general, and can be used in places
72101         where the original base_name purposely had an assertion failure.
72102         (base_len): New function.
72103
72104         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72105         Do not include <assert.h>; no longer needed.
72106         Include xalloc.h.
72107         (memrchr): Remove decl.
72108         (dir_name_r): Remove.
72109         (dir_len): Renamed from dirlen.  All callers changed.
72110         Rewrite in terms of base_name, for simplicity and consistency.
72111         (dir_name): Never return NULL.  All callers changed.
72112         Do not include <stdlib.h> in test program; no longer needed.
72113         return 0; is fine for test program.
72114
72115         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72116         New macros.
72117         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72118
72119         * lib/path-concat.c (path_concat): Use base_len to compute
72120         base length, not strlen; this means we cannot rely on memcpy
72121         to null-terminate.
72122
72123         * lib/same.c (STREQ): Remove.
72124         (same_name): Handle the case where the basename ends in trailing '/'.
72125
72126         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72127         a slash was stripped.  Do not strip the last slash after a
72128         file system prefix.
72129
72130 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72131
72132         * lib/Makefile.am (libfetish_a_SOURCES):
72133         Add strftime.c, since we now compile it on all hosts.
72134
72135         * lib/strftime.c (my_strftime):
72136         Define to nstrftime if emacs, but only if my_strftime is not defined.
72137         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72138         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72139         Add one more extra argument: a nanoseconds value.
72140         All uses changed.
72141         (ns): New macro.
72142         (my_strftime function): Add %N format.
72143         (emacs_strftimeu): Renamed from emacs_strftime,
72144         with extra ut argument.
72145
72146 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72147
72148         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72149
72150 2001-04-21  Jim Meyering  <meyering@lucent.com>
72151
72152         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72153         doesn't interfere.
72154
72155 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72156
72157         * m4/ftruncate.m4: Check for chsize.
72158         Link with ftruncate.o unconditionally if ftruncate is missing.
72159         This was required when cross-compiling to i586-mingw32msvc.
72160
72161 2001-04-08  Jim Meyering  <meyering@lucent.com>
72162
72163         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72164         recomputed; that's necessary when the offset spans a DST transition.
72165         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72166
72167 2001-04-02  Jim Meyering  <meyering@lucent.com>
72168
72169         * lib/regex.h, regex.c: Update from GNU libc.
72170
72171 2001-03-24  Jim Meyering  <meyering@lucent.com>
72172
72173         * m4/jm-macros.m4: Require autoconf-2.49d.
72174
72175 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72176
72177         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72178
72179 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72180
72181         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72182
72183 2001-03-17  Jim Meyering  <meyering@lucent.com>
72184
72185         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72186         now that the version in autoconf is equivalent.
72187         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72188
72189         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72190         Suggestion from Akim Demaille.
72191
72192         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72193         (jm_PREREQ_TEMPNAME): New function.
72194
72195 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72196
72197         * lib/tempname.c (uint64_t): Define to uintmax_t if
72198         not defined, and if UINT64_MAX is not defined.
72199         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72200         Reported by John David Anglin.
72201
72202 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72203
72204         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72205         resolve alias if codeset is empty.
72206         * lib/config.charset (BeOS): Use wildcard syntax.
72207
72208 2001-03-13  Jim Meyering  <meyering@lucent.com>
72209
72210         * lib/path-concat.c (path_concat)
72211         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72212         concatenating e.g., `C:' and `foo'.
72213         From Bruno Haible.
72214
72215 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72216
72217         * lib/localcharset.c (locale_charset): Don't use
72218         setlocale(LC_CTYPE,NULL). Don't return NULL.
72219         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72220
72221 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72222
72223         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72224         support for DOS/DJGPP.
72225
72226 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72227
72228         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72229         lacks mkstemp.  Compile our own tempname.c if we compile our own
72230         mkstemp.c, as mkstemp relies on tempname.
72231
72232 2001-03-01  Jim Meyering  <meyering@lucent.com>
72233
72234         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72235         AH_VERBATIM really does output its argument verbatim.
72236
72237 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72238
72239         * lib/Makefile.am (libfetish_a_SOURCES):
72240         Add dup-safer.c, fopen-safer.c.
72241         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72242
72243         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72244         * lib/unistd-safer.h: New files.
72245
72246 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72247
72248         The mkstemp replacement is taken from glibc 2.2.2, with some
72249         portability fixes for use outside glibc, as follows:
72250
72251         * lib/tempname.c (struct_stat64): New macro.
72252         (direxists, __gen_tempname): Use it.
72253         This avoids a portability problem with Solaris 8.
72254
72255         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72256         (<stddef.h>, <stdint.h>, <string.h>):
72257         Include only if STDC_HEADERS || _LIBC.
72258         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72259         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72260         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72261         (__set_errno): Define this macro if <errno.h> doesn't.
72262         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72263         Define these macros if <stdio.h> doesn't.
72264         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72265         Define these macros if <sys/stat.h>
72266         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72267         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72268         __xstat64): Define if not _LIBC.
72269         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72270         (__gen_tempname): Invoke gettimeofday only if
72271         HAVE_GETTIMEOFDAY || _LIBC;
72272         otherwise, fall back on plain "time".
72273         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72274
72275         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72276
72277         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72278
72279 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72280
72281         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72282
72283 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72284
72285         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72286         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72287         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72289
72290 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72291
72292         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72293         Remove workaround macros for hosts that have mbrtowc but not
72294         mbstate_t, as we now insist on proper declarations for both
72295         before using mbrtowc.
72296
72297 2001-02-17  Jim Meyering  <meyering@lucent.com>
72298
72299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72300         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72301         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72302         UnixWare 7.1.1.
72303
72304         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72305         rather than AC_CACHE_VAL.
72306
72307 2001-02-17  Jim Meyering  <meyering@lucent.com>
72308
72309         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72310         around included file name.
72311
72312         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72313
72314         * lib/strftime.c: Update from GNU libc (the only changes were to
72315         comments).
72316
72317 2001-02-17  Jim Meyering  <meyering@lucent.com>
72318
72319         * lib/regex.c: Update from libc.
72320
72321 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72322
72323         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72324         clash.
72325
72326 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72327
72328         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72329         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72330         Reported by Mark Hounschell via Paul Eggert.
72331
72332 2001-02-07  Jim Meyering  <meyering@lucent.com>
72333
72334         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72335
72336 2001-02-05  Jim Meyering  <meyering@lucent.com>
72337
72338         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72339         it includes the patch required for `large file' support with at least
72340         HP-UX's 10.20 /bin/cc.
72341
72342 2001-02-03  Jim Meyering  <meyering@lucent.com>
72343
72344         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72345         AS_IF, now that it works once again (mysteriously).
72346         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72347
72348 2001-01-30  Jim Meyering  <meyering@lucent.com>
72349
72350         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72351         * m4/chown.m4: Rename conftestchown to conftest.chown.
72352         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72353         s/conftestdir2/conftest.d2/.
72354         * m4/utimes.m4: s/conftestdata/conftest.data/
72355         Inspired by Pavel Roskin's change in autoconf.
72356
72357 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72358
72359         * lib/config.charset: Update for FreeBSD 4.2.
72360
72361 2001-01-27  Jim Meyering  <meyering@lucent.com>
72362
72363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72364         a use of AS_IF.
72365         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72366
72367 2001-01-26  Jim Meyering  <meyering@lucent.com>
72368
72369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72370         quotearg.c includes it.
72371
72372 2001-01-26  Jim Meyering  <meyering@lucent.com>
72373
72374         * lib/quotearg.c: Include stddef.h.
72375         * lib/quote.c: Include stddef.h.
72376         Reported by Axel Kittenberger.
72377
72378         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72379         line in double quotes so that it evokes a better diagnostic.
72380         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72381         Reported by Axel Kittenberger.
72382
72383 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72384
72385         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72386         as if it was a `charset'.
72387
72388 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72389
72390         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72391         has const.
72392
72393 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72394
72395         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72396         to avoid a warning.  Add back 'const' to inptr.
72397
72398 2001-01-20  Jim Meyering  <meyering@lucent.com>
72399
72400         Be sure that headers are checked before used in code compiled
72401         for the type checks.
72402         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72403         In place of that, invoke jm_CHECK_ALL_TYPES.
72404         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72405         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72406         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72407         The check for ssize_t was mistakenly run before the test for unistd.h.
72408
72409         The configure-time check for stdbool.h was missing.
72410         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72411         (jm_PREREQ_HASH): New function.
72412
72413 2001-01-17  Jim Meyering  <meyering@lucent.com>
72414
72415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72416         for autoconf-2.49c.
72417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72418
72419 2001-01-16  Jim Meyering  <meyering@lucent.com>
72420
72421         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72422         From Bruno Haible.
72423
72424 2001-01-14  Jim Meyering  <meyering@lucent.com>
72425
72426         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72427         foo and bar.  Create conftestdir/ in the script, not in the C code.
72428         Remove directories in the script, not in the C code.
72429         Remove conftestdir{,2} before trying to create the directory.
72430         Make the entire configure script fail if the mkdir fails.
72431
72432 2001-01-14  Jim Meyering  <meyering@lucent.com>
72433
72434         * lib/rename.c: New file.  From Volker Borchert.
72435         Include stdlib.h, string.h or strings.h, and xalloc.h.
72436         Use strip_trailing_slashes rather than open-coding it.
72437
72438 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72439
72440         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72441
72442 2001-01-03  Jim Meyering  <meyering@lucent.com>
72443
72444         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72445         of local `inptr' to avoid warning with some system declarations of
72446         iconv.
72447
72448 2001-01-02  Volker Borchert  <bt@teknon.de>
72449
72450         * m4/rename.m4: New file.
72451         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72452
72453 2001-01-01  Jim Meyering  <meyering@lucent.com>
72454
72455         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72456         even on systems with utmpx.h.  It's necessary for the declaration of
72457         utmp's ut_user member.  Reported by Andreas Jaeger.
72458
72459         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72460         available. They are required for the declarations of getgrgid and
72461         getpwuid resp.
72462         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72463         Reported by Andreas Jaeger.
72464
72465 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72466
72467         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72468         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72469         so `make install' also works in VPATH builds.
72470
72471 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72472
72473         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72474         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72475         can be used in subdirectories.
72476
72477 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72478
72479         * lib/modechange.c: Do not assume that mode_t uses the
72480         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72481         the other-execute bit of FOO even if S_IXOTH != 1.
72482
72483         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72484         WOTH, XOTH, ALLM): New macros.
72485         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72486          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72487         Use them.
72488         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72489         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72490         (mode_compile):
72491         No need to use uintmax_t; unsigned long is long enough.
72492         Don't bother to get suffix since we don't use it.
72493
72494 2000-12-26  Jim Meyering  <meyering@lucent.com>
72495
72496         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72497         better with autoheader.
72498
72499 2000-12-24  Jim Meyering  <meyering@lucent.com>
72500
72501         * lib/hash.c (is_prime): Return explicit boolean values.
72502         (hash_get_first): Return NULL to appease Irix5.6's 89.
72503         Reported by Nelson Beebe.
72504
72505 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72506
72507         * lib/localcharset.c (locale_charset): Add support for Win32.
72508
72509 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72510
72511         * lib/physmem.h, lib/physmem.c: New files.
72512
72513         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72514         (noinst_HEADERS): Add physmem.h.
72515
72516         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72517         't' for compatibility with Solaris 8 sort.
72518
72519 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72520
72521         * lib/config.charset: Add support for BeOS.
72522
72523 2000-12-17  Jim Meyering  <meyering@lucent.com>
72524
72525         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72526         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72527
72528 2000-12-16  Jim Meyering  <meyering@lucent.com>
72529
72530         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72531         N and M) would have treated it like `chown N:N FILE'.
72532
72533         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72534
72535 2000-12-16  Jim Meyering  <meyering@lucent.com>
72536
72537         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72538         SHELLS_FILE to a file name that's useful on djgpp systems.
72539         Include stdlib.h.
72540         (ADDITIONAL_DEFAULT_SHELLS): Define.
72541         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72542         Based mostly on a patch from Prashant TR.
72543
72544 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72545
72546         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72547         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72548         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72549
72550 2000-12-08  Andreas Schwab  <schwab@suse.de>
72551
72552         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72553         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72554
72555 2000-12-07  Jim Meyering  <meyering@lucent.com>
72556
72557         * lib/stripslash.c (ISSLASH): Define.
72558         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72559         `/'.
72560         From Prashant TR.
72561
72562         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72563         (dir_name_r): Declare this function as static.
72564         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72565         manifest itself on a name containing a mix of slashes and
72566         backslashes.
72567         Make this function work with names starting with a DOS-style
72568         drive letter and colon prefix.
72569         (dir_name): Append `.' if necessary.
72570         Based mostly on patches from Prashant TR and Eli Zaretskii.
72571
72572         * lib/dirname.h (dir_name_r): Remove prototype.
72573
72574 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72575
72576         * m4/off_t-format.m4: Remove this file.
72577         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72578
72579 2000-12-06  Jim Meyering  <meyering@lucent.com>
72580
72581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72582         replacement strtoull, we may well need the replacement strtoul, too.
72583         Check for declarations of strtoul and strtoull.
72584         Check for strtol.  Mainly as a cue to cause automake to include
72585         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72586         Check for limits.h -- strtol.c needs it.
72587
72588 2000-12-05  Jim Meyering  <meyering@lucent.com>
72589
72590         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72591
72592 2000-12-04  Jim Meyering  <meyering@lucent.com>
72593
72594         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72595         Also include memory.h, stdlib.h, unistd.h if appropriate.
72596         Reported by Andreas Jaeger (conflicting declaration of malloc).
72597
72598 2000-12-02  Jim Meyering  <meyering@lucent.com>
72599
72600         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72601         * m4/jm-macros.m4 (jm_MACROS): require it.
72602
72603 2000-12-02  Jim Meyering  <meyering@lucent.com>
72604
72605         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72606
72607 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72608
72609         * lib/memrchr.c: Include <config.h> before any system include file.
72610
72611 2000-11-30  Jim Meyering  <meyering@lucent.com>
72612
72613         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72614
72615 2000-11-30  Jim Meyering  <meyering@lucent.com>
72616
72617         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72618
72619 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72620
72621         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72622
72623 2000-11-26  Jim Meyering  <meyering@lucent.com>
72624
72625         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72626
72627 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72628
72629         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72630         size of (size_t) -1; it's not portable.
72631
72632 2000-11-17  Jim Meyering  <meyering@lucent.com>
72633
72634         * lib/strstr.c: Update from GNU libc.
72635
72636 2000-11-17  Akim Demaille  <akim@epita.fr>
72637
72638         * lib/obstack.h: Formatting changes.
72639         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72640         prevent type checking.
72641         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72642         cast the value to (void *): assigning a `foo *' to a `void *'
72643         variable is valid.
72644         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72645
72646 2000-11-16  Jim Meyering  <meyering@lucent.com>
72647
72648         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72649
72650 2000-11-11  Jim Meyering  <meyering@lucent.com>
72651
72652         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72653
72654 2000-11-10  Jim Meyering  <meyering@lucent.com>
72655
72656         * lib/obstack.h: Update from GNU libc.
72657         * lib/obstack.c: Likewise.
72658
72659 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72660
72661         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72662
72663 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72664
72665         * lib/getusershell.c (setusershell): Use rewind rather than
72666         fseek/fseeko, to avoid configuration hassles with fseeko.
72667         Don't bother opening SHELLS_FILE if shellstream is NULL;
72668         it's not necessary.
72669
72670 2000-11-05  Jim Meyering  <meyering@lucent.com>
72671
72672         * lib/makepath.h (make_dir): Declare.
72673         * lib/makepath.c (make_dir): Remove `static' attribute.
72674         Tweak a comment.
72675
72676 2000-11-04  Jim Meyering  <meyering@lucent.com>
72677
72678         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72679
72680 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72681
72682         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72683         last one in a bucket, advance to the next bucket.
72684
72685 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72686
72687         * lib/fnmatch.c: Do not comment out all the code if we are using
72688         the GNU C library, because in some cases we are replacing buggy
72689         code in the GNU C library itself.
72690
72691 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72692
72693         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72694         (regex_compile): Catch bogus \(\1\).
72695
72696 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72697
72698         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72699         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72700         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72701
72702 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72703
72704         * lib/error.h, getline.h, modechange.h:
72705         Remove "2000" from Copyright line, as the file hasn't been
72706         changed this year other than in the copyright notice.
72707
72708         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72709         was changed this year.
72710
72711 2000-10-29  Jim Meyering  <meyering@lucent.com>
72712
72713         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72714         renaming.
72715         * m4/ls-mntd-fs.m4: Likewise
72716
72717 2000-10-29  Jim Meyering  <meyering@lucent.com>
72718
72719         * lib/xstat.in: Fix grammar in comment.
72720
72721 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72722
72723         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72724         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72725         doesn't define __restrict_arr.
72726
72727 2000-10-28  Jim Meyering  <meyering@lucent.com>
72728
72729         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72730         (jm_PREREQ_MEMCHR): New function.
72731
72732 2000-10-28  Jim Meyering  <meyering@lucent.com>
72733
72734         * lib/memchr.c: Update from libc.
72735         Adjust for portability:
72736         [HAVE_STDLIB_H]: Include stdlib.h.
72737         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72738         Undef __memchr, too.
72739         [!weak_alias]: Define __memchr to memchr.
72740
72741         * lib/regex.c: Update from libc.
72742         * lib/regex.h: Likewise.
72743         * lib/getopt1.c: Likewise.
72744         * lib/memcmp.c: Likewise.
72745
72746         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72747         Avoid using fseek, when possible -- it's broken by design.
72748         Patch by Ulrich Drepper.
72749
72750 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72751
72752         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72753         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72754         Giving in to popular pressure to shut up the compiler with casts.
72755
72756 2000-10-26  Jim Meyering  <meyering@lucent.com>
72757
72758         * lib/strftime.c: Update from libc.
72759
72760 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72761
72762         * regex.c: More `unsigned char' -> `re_char' changes.
72763         Also change several `int' into `re_wchar_t'.
72764         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72765         (PUSH_FAILURE_POINTER): Don't cast any more.
72766         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72767         We want GCC to complain, since this piece of code makes
72768         re_match non-reentrant, which *should* be fixed.
72769         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72770         (EXTEND_BUFFER): Use RETALLOC.
72771         (SET_LIST_BIT): Don't cast.
72772         (re_wchar_t): New type.
72773         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72774         that those two functions will always properly return.
72775         (IMMEDIATE_QUIT_CHECK): Cast to void.
72776         (analyse_first): Use recursion rather than an explicit stack.
72777         (re_compile_fastmap): Can't fail anymore.
72778         (re_search_2): Don't check re_compile_fastmap for failure.
72779         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72780         Now also sets the new value (passed in a new argument).
72781         (re_match_2_internal): Use it.
72782         Also, use a new var `reg' of type size_t when looping through regs
72783         rather than reuse the inappropriate `mcnt'.
72784
72785 2000-10-25  Jim Meyering  <meyering@lucent.com>
72786
72787         * lib/obstack.c: Update from libc.
72788
72789 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72790
72791         * regex.c (regex_compile): Change the way of handling a range from
72792         a char less than 256 to a char not less than 256.
72793
72794 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72795
72796         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72797         NT-Emacs only.
72798         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72799         so that re_search functions only quit when callers expect them to.
72800
72801 2000-10-23  Jim Meyering  <meyering@lucent.com>
72802
72803         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72804         wrong.  That set_locale call must not have any side effects.
72805         From Paul Eggert.
72806
72807 2000-10-22  Jim Meyering  <meyering@lucent.com>
72808
72809         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72810         [CYCLIC]: Remove now-unused definition.
72811
72812         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72813         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72814         Suggestion from Ulrich Drepper.
72815
72816 2000-10-21  Jim Meyering  <meyering@lucent.com>
72817
72818         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72819         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72821
72822 2000-10-21  Jim Meyering  <meyering@lucent.com>
72823
72824         * lib/dirname.c (memrchr): Declare if necessary.
72825         (dir_name): Remove the restriction that there be no
72826         trailing slashes.  Now, this code skips past them, effectively
72827         ignoring them.
72828         [TEST_DIRNAME] (main): New unit tests.
72829
72830         * lib/memrchr.c: New file from GNU libc.
72831         Undef __memrchr, too.
72832         [!weak_alias]: Define __memrchr to memrchr.
72833         Guard weak_alias use with `#ifdef weak_alias'.
72834
72835 2000-10-21  Jim Meyering  <meyering@lucent.com>
72836
72837         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72838         (dir_name): Use dir_name_r.
72839         * lib/dirname.h (dir_name_r): Declare it.
72840
72841 2000-10-17  Jim Meyering  <meyering@lucent.com>
72842
72843         * lib/quote.h (PARAMS): Define and use.
72844         Reported by Akim Demaille.
72845
72846         * lib/getopt.c: Update from libc.
72847
72848 2000-10-16  Jim Meyering  <meyering@lucent.com>
72849
72850         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72851         setlocale.
72852         From Jan Fedak.
72853
72854 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72855
72856         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72857
72858 2000-09-25  Jim Meyering  <meyering@lucent.com>
72859
72860         * lib/md5.h (rol): Define (from GnuPG).
72861
72862         * lib/sha.c: Give credit (GnuPG) where due.
72863         (M): Use rol rather than open-coding it.
72864         Add a FIXME comment.
72865
72866 2000-09-21  Jim Meyering  <meyering@lucent.com>
72867
72868         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72869         Reported by Michael Stone.
72870
72871 2000-09-20  Jim Meyering  <meyering@lucent.com>
72872
72873         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72874         (noinst_HEADERS): Add sha.h.
72875         Based on code from Scott G. Miller and from GnuPG.
72876
72877 2000-09-18  Jim Meyering  <meyering@lucent.com>
72878
72879         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72880         LIBS. Otherwise, everyone ends up linking with -lelf for some
72881         configurations.
72882         Reported by Mike Stone.
72883
72884 2000-09-15  Jim Meyering  <meyering@lucent.com>
72885
72886         * lib/regex.c: Update from libc.
72887
72888 2000-09-10  Jim Meyering  <meyering@lucent.com>
72889
72890         * lib/getopt.c (_getopt_internal): Update from glibc.
72891
72892 2000-09-09  Jim Meyering  <meyering@lucent.com>
72893
72894         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72895         think it should be used as a general replacement for isascii.
72896         * lib/fnmatch.c: Likewise.
72897         * lib/mbswidth.c: Likewise
72898         * lib/regex.c: Likewise.
72899
72900         Don't use atoi.
72901         * lib/userspec.c: Include sys/param.h and limits.h.
72902         Include xstrtol.h.
72903         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72904         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72905         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72906         UID, GID.  Check range.
72907
72908 2000-09-06  Jim Meyering  <meyering@lucent.com>
72909
72910         * lib/getopt.c (_getopt_internal): Update from glibc.
72911
72912 2000-08-30  Jim Meyering  <meyering@lucent.com>
72913
72914         * lib/strftime.c: Merge in changes from GNU libc.
72915
72916 2000-08-26  Jim Meyering  <meyering@lucent.com>
72917
72918         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72919         * m4/fpending.m4: New file.
72920
72921 2000-08-26  Jim Meyering  <meyering@lucent.com>
72922
72923         * lib/closeout.c: Include "__fpending.h".
72924         (close_stdout_status): Return right away if there's nothing to flush.
72925
72926         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72927         * lib/__fpending.c: New file.
72928         * lib/__fpending.h: New file.
72929
72930 2000-08-20  Jim Meyering  <meyering@lucent.com>
72931
72932         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72933         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72934         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72935
72936 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72937
72938         Improve fileutils installation on systems where running
72939         programs (like install) can't be unlinked.
72940         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72941         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72942
72943 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72944
72945         Standardize on "memory exhausted" instead of "Memory exhausted"
72946         or "virtual memory exhausted".
72947         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72948         "virtual memory exhausted".
72949         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72950         our own message.
72951         * lib/userspec.c (parse_user_spec): Likewise.
72952         * lib/bumpalloc.h: comment fix
72953         * lib/same.c, userspec.c: Include xalloc.h.
72954
72955         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72956         not char *const and pointing to a constant array.
72957         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72958         (xrealloc): Comment fix.
72959
72960         * lib/userspec.c (parse_user_spec):
72961         Don't translate a message until just before returning,
72962         to avoid unnecessary translation.
72963
72964 2000-08-07  Jim Meyering  <meyering@lucent.com>
72965
72966         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72967         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72968         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72969         getgroups.c, gethostname.c, getopt.h, group-member.c,
72970         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72971         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72972         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72973         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72974         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72975         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72976         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72977         yesno.c: Back out Copyright date changes for each file with no change
72978         this year.  This eases coordination with other programs using the same
72979         source code modules.  From Paul Eggert.
72980
72981 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72982
72983         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72984         not char, for compatibility with glibc 2.1.3 strftime.c.
72985
72986 2000-08-03  Greg McGary  <greg@mcgary.org>
72987
72988         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72989         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72990         (EXTEND_BUFFER): Use them.
72991
72992 2000-08-01  Jim Meyering  <meyering@lucent.com>
72993
72994         * lib/dirname.c (ISSLASH): Define.
72995         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72996         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72997         both `\' and `/' may be use as path separators.
72998         Based on a patch from Prashant TR.
72999
73000 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73001
73002         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73003         slot vector a constant, since it might get modified.
73004
73005 2000-07-31  Jim Meyering  <meyering@lucent.com>
73006
73007         * lib/xmalloc.c: Use `virtual memory exhausted', not
73008         `Memory exhausted'.
73009         * lib/obstack.c (print_and_abort): Likewise.
73010
73011 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73012
73013         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73014         buffer, so that the caller can always quote one small
73015         component of a "memory exhausted" message in slot 0.
73016         From a suggestion by Jim Meyering.
73017
73018 2000-07-30  Jim Meyering  <meyering@lucent.com>
73019
73020         * lib/makepath.c (make_path): Quote the other instance, too.
73021
73022         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73023         (STATIC_BUF_SIZE): Define.
73024         (quotearg_n_options): Use only statically allocated storage when
73025         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73026         than STATIC_BUF_SIZE.
73027
73028 2000-07-29  Jim Meyering  <meyering@lucent.com>
73029
73030         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73031         * lib/dirname.c (dir_name): Likewise.
73032
73033         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73034         `/'.
73035
73036         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73037         (dir_name): Assert that there are no trailing slashes.
73038
73039 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73040
73041         * lib/mbswidth.h (mbswidth): Add a flags argument.
73042         (mbswidth): New declaration.
73043         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73044         * lib/mbswidth.c (mbswidth): Add a flags argument.
73045         (mbsnwidth): New function.
73046
73047 2000-07-24  Jim Meyering  <meyering@lucent.com>
73048
73049         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73050
73051 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73052
73053         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73054
73055 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73056
73057         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73058         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73059         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73060         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73061         invoke multibyte primitives.
73062
73063 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73064
73065         * lib/quotearg.c:
73066         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73067         so that mbstate_t is always defined.
73068
73069         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73070         be 1 in at least one GCC installation, and this configuration
73071         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73072         performance on hosts that have mbrtowc but have only unibyte
73073         locales, but I assume these hosts are rare.
73074
73075 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73076
73077         * lib/mbswidth.c (_XOPEN_SOURCE):
73078         Don't define; this causes problems on Solaris 7.
73079         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73080
73081 2000-07-23  Jim Meyering  <meyering@lucent.com>
73082
73083         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73084         too: getgrgid, getpwuid, getuid.
73085
73086 2000-07-23  Jim Meyering  <meyering@lucent.com>
73087
73088         * lib/basename.c (base_name): Add an assertion.
73089
73090 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73091
73092         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73093         shadow its mbsinit function.
73094
73095 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73096
73097         * lib/mbswidth.h: New file.
73098         * lib/mbswidth.c: New file.
73099         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73100         (noinst_HEADERS): Add mbswidth.h.
73101
73102 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73103
73104         * lib/config.charset: Add support for FreeBSD. Improve support for
73105         HP-UX and IRIX 6.
73106
73107 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73108
73109         * m4/mbswidth.m4: New file.
73110         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73111
73112 2000-07-15  Jim Meyering  <meyering@lucent.com>
73113
73114         * lib/makepath.c: Include quote.h.
73115         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73116         corresponding argument in a `quote (...)' call.
73117         Give better diagnostics.
73118
73119         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73120         (noinst_HEADERS): Add quote.h.
73121
73122         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73123         from tar's src/misc.c.
73124         * lib/quote.h: New file.  Prototypes for same.
73125
73126 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73127
73128         From a suggestion by Bruno Haible.
73129         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73130         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73131         to decide whether to define the BeOS workaround macro;
73132         this adjusts to the change to AC_MBSTATE_T.
73133
73134 2000-07-14  Jim Meyering  <meyering@lucent.com>
73135
73136         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73137         jm_AC_TYPE_UINTMAX_T.
73138
73139 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73140
73141         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73142
73143         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73144         quotearg_buffer_restyled): Add support for
73145         clocale_quoting_style.  Undo previous change to
73146         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73147         and "{RIGHT QUOTATION MARK}" msgids.
73148
73149 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73150
73151         From a suggestion by Bruno Haible.
73152         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73153         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73154         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73155         and mbstate_t, to a single-part test that simply defines mbstate_t.
73156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73157         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73158
73159 2000-07-10  Jim Meyering  <meyering@lucent.com>
73160
73161         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73162
73163         * m4/gnu-source.m4: Output to confdefs.h directly.
73164         Suggestion from Akim Demaille.
73165
73166 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73167
73168         The old behavior of quoting `like this' doesn't look good with
73169         newer, ISO-style fonts.  See:
73170         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73171
73172         Instead, quote "like this" by default.  Let the translator
73173         tailor the locale-specific quoting behavior by providing
73174         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73175
73176         * lib/quotearg.c (N_): New macro.
73177         (gettext_default): New function.
73178         (quotearg_buffer_restyled): Use
73179         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73180         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73181
73182 2000-07-09  Jim Meyering  <meyering@lucent.com>
73183
73184         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73185         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73186
73187         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73189
73190 2000-07-09  Jim Meyering  <meyering@lucent.com>
73191
73192         * lib/Most files: Update copyright dates to include 2000.
73193
73194 2000-07-08  Jim Meyering  <meyering@lucent.com>
73195
73196         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73197         if not defined.
73198         (xgethostname): Remove now-unnecessary #ifdef.
73199         Move declaration of `err' into loop where it's used.
73200
73201 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73202         and Bruno Haible  <haible@clisp.cons.org>
73203
73204         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73205         only if the test for an object-type mbstate_t fails.  This
73206         prevents us from mistakenly reporting that mbstate_t is a
73207         system object type after we "#define mbstate_t int" to work
73208         around its lack.
73209
73210 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73211         and Bruno Haible  <haible@clisp.cons.org>
73212
73213         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73214
73215 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73216
73217         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73218         to strerror_r.
73219         Include <ctype.h> for use of isalpha.
73220
73221 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73222
73223         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73224         by allocating a larger buffer. Test the gethostname return value for
73225         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73226         returns an error and ENAMETOOLONG isn't defined.
73227
73228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73229
73230         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73231         dimension.
73232
73233 2000-07-04  Jim Meyering  <meyering@lucent.com>
73234
73235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73236         of the deprecated AC_CHECKING.
73237
73238 2000-07-04  Jim Meyering  <meyering@lucent.com>
73239
73240         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73241         Reported by Bruno Haible.
73242
73243 2000-07-04  Jim Meyering  <meyering@lucent.com>
73244
73245         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73246         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73247         lacks mbrtowc.
73248
73249 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73250
73251         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73252         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73253
73254 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73255         and Bruno Haible  <haible@clisp.cons.org>
73256
73257         * lib/quotearg.c (mbrtowc):
73258         Assign to *pwc, and return 1 only if result is nonzero.
73259         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73260
73261 2000-07-03  Jim Meyering  <meyering@lucent.com>
73262
73263         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73264
73265 2000-07-03  Jim Meyering  <meyering@lucent.com>
73266
73267         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73268         This is necessary to get a definition of e.g., UTMP_FILE on
73269         HP-UX 10.20.
73270         From Bob Proulx.
73271
73272 2000-07-02  Jim Meyering  <meyering@lucent.com>
73273
73274         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73275
73276         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73277         AC_LIBOBJ(function_name).
73278         * m4/chown.m4: Likewise.
73279         * m4/fnmatch.m4: Likewise.
73280         * m4/ftruncate.m4: Likewise.
73281         * m4/getgroups.m4: Likewise.
73282         * m4/getline.m4: Likewise.
73283         * m4/group-member.m4: Likewise.
73284         * m4/jm-macros.m4: Likewise.
73285         * m4/lstat.m4: Likewise.
73286         * m4/malloc.m4: Likewise.
73287         * m4/memcmp.m4: Likewise.
73288         * m4/nanosleep.m4: Likewise.
73289         * m4/putenv.m4: Likewise.
73290         * m4/realloc.m4: Likewise.
73291         * m4/regex.m4: Likewise.
73292         * m4/stat.m4: Likewise.
73293         * m4/strftime.m4: Likewise.
73294
73295 2000-07-02  Jim Meyering  <meyering@lucent.com>
73296
73297         * lib/quotearg.c (mbstate_t): Don't define here.
73298
73299 2000-07-02  Jim Meyering  <meyering@lucent.com>
73300
73301         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73302
73303 2000-07-01  Jim Meyering  <meyering@lucent.com>
73304
73305         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73306
73307 2000-07-01  Jim Meyering  <meyering@lucent.com>
73308
73309         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73310         problem.
73311
73312 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73313
73314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73315         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73316
73317 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73318
73319         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73320         per change in ../m4/ls-mntd-fs.m4.
73321         (read_filesystem_list): Ignore symbolic links.
73322
73323 2000-06-29  Jim Meyering  <meyering@lucent.com>
73324
73325         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73326         for declaration of strcmp.
73327
73328         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73329
73330         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73331         Avoid warning by casting result to `char *' to remove `const'.
73332
73333 2000-06-28  Jim Meyering  <meyering@lucent.com>
73334
73335         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73336         included by quotearg.c, for which we perform this test.  From
73337         Bruno Haible.
73338
73339 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73340
73341         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73342         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73343         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73344
73345 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73346
73347         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73348
73349 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73350
73351         savedir now sets errno on failure and invokes xmalloc to get memory.
73352         Fix a couple of other minor bugs while we're at it.
73353
73354         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73355         (NAMLEN): Remove macro.
73356         (malloc, realloc): Remove decls.
73357         (stpcpy): Likewise.
73358         ("xalloc.h"): Include.
73359         (NAME_SIZE_DEFAULT): New macro.
73360         (savedir): Use xmalloc / xrealloc to allocate memory.
73361         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73362         Skip "" directory entries.
73363         Use strlen to calculate directory entry length, since the old method
73364         is rarely used these days and isn't worth supporting.
73365         Don't use a pointer after freeing it.
73366         Check for integer overflow when calculating allocation size.
73367         Use memcpy to copy entries, instead of stpcpy.
73368         Set errno properly when returning NULL.
73369         Check for readdir error.
73370
73371 2000-06-26  Jim Meyering  <meyering@lucent.com>
73372
73373         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73374
73375 2000-06-25  Jim Meyering  <meyering@lucent.com>
73376
73377         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73378         Linux header bug when _XOPEN_SOURCE is defined to 500.
73379
73380 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73381
73382         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73383         deficiency.
73384
73385 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73386
73387         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73388         Include xalloc.h.
73389         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73390
73391 2000-06-24  Jim Meyering  <meyering@lucent.com>
73392
73393         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73394         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73395         for which strerror does return char*, but which lacks a conveniently
73396         accessible declaration of the function.  If the compile-test says
73397         strerror_r doesn't work, then resort to a `run'-test that works on
73398         BeOS and segfaults on DEC Unix.
73399
73400 2000-06-24  Jim Meyering  <meyering@lucent.com>
73401
73402         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73403
73404 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73405
73406         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73408
73409 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73410
73411         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73412         (mbrtowc, mbstate_t): Define substitutes if
73413         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73414         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73415         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73416
73417 2000-06-23  Jim Meyering  <meyering@lucent.com>
73418
73419         * m4/afs.m4: Add missing AC_MSG_RESULT.
73420         Reported by Bruno Haible.
73421
73422         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73423         Suggestion from Bruno Haible.
73424
73425 2000-06-23  Jim Meyering  <meyering@lucent.com>
73426
73427         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73428
73429 2000-06-21  Jim Meyering  <meyering@lucent.com>
73430
73431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73432
73433 2000-06-21  Jim Meyering  <meyering@lucent.com>
73434
73435         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73436         (noinst_HEADERS): Add getstr.h.
73437
73438         * lib/getline.c (getstr): Move into a separate file.
73439         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73440         the following changes: new parameter, delim2; both delim[12]
73441         parameters have type `int', not `char'.  The latter would lose
73442         with 8-bit delimiters.
73443         * lib/getstr.h: New file.
73444
73445 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73446
73447         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73448         than 1024, return a memory chunk of least possible size, instead
73449         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73450         Use free/xmalloc instead of xrealloc to avoid copying for very long
73451         paths.
73452
73453 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73454
73455         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73456         the empty string.
73457
73458 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73459
73460         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73461         address, not strdup.  Include <stdlib.h> and don't declare free().
73462
73463 2000-06-19  Jim Meyering  <meyering@lucent.com>
73464
73465         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73466
73467 2000-06-18  Jim Meyering  <meyering@lucent.com>
73468
73469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73470
73471         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73472         `checking whether...' message to be consistent with that of the
73473         lstat test.
73474
73475 2000-06-18  Jim Meyering  <meyering@lucent.com>
73476
73477         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73478         Besides, these days every porting target provides a mkdir function.
73479
73480         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73481         needed. (this snippet comes from src/system.h).
73482
73483 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73484
73485         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73486
73487 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73488
73489         * lib/human.c (adjust_value): New function.
73490         (human_readable_inexact): Apply rounding style even when
73491         printing approximate values.
73492
73493 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73494
73495         * lib/human.c (human_readable_inexact): Allow an input block
73496         size that is not a multiple of the output block size, and vice versa.
73497         Reported by Piergiorgio Sartor.
73498
73499 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73500
73501         * lib/getdate.y (get_date): Apply relative times after time
73502         zone indicator, not before.  Reported by Todd A. Jacobs.
73503
73504 2000-06-13  Jim Meyering  <meyering@lucent.com>
73505
73506         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73507
73508         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73509
73510 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73511
73512         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73513
73514 2000-06-12  Jim Meyering  <meyering@lucent.com>
73515
73516         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73517         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73518         optional argument.
73519         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73520         the optional argument, `lib'.
73521
73522 2000-06-08  Jim Meyering  <meyering@lucent.com>
73523
73524         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73525
73526 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73527
73528         Rewrite largefile configuration so that we don't need to run
73529         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73530         AC_CANONICAL_HOST in configure.in -- jmm]
73531
73532         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73533         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73534         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73535         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73536         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73537         All uses changed.
73538         Instead of inspecting the output of getconf, try to compile the
73539         test program without and with the macro definition.
73540         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73541         for getconf.  Instead, check for the needed flags by compiling
73542         test programs.
73543
73544 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73545
73546         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73547
73548 2000-06-04  Jim Meyering  <meyering@lucent.com>
73549
73550         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73551         SunOS 4.1.4 for which gid_t is an unsigned type.
73552
73553 2000-06-03  Jim Meyering  <meyering@lucent.com>
73554
73555         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73556         now that autoconf requires that.
73557
73558         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73559         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73560         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73561
73562 2000-06-03  Jim Meyering  <meyering@lucent.com>
73563
73564         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73565
73566 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73567
73568         * m4/glibc21.m4: New file.
73569         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73570
73571 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73572
73573         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73574         newer, don't install charset.alias.
73575         * lib/config.charset: Change the Linux/glibc rules so they become empty
73576         on glibc-2.1 or newer.
73577
73578 2000-06-02  Jim Meyering  <meyering@lucent.com>
73579
73580         * lib/mountlist.c: Back out last change.  Instead, do this...
73581         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73582         me_dummy member using the same `ignore'-testing code.
73583         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73584         fs_type strings.
73585         From Mark D. Roth.
73586
73587 2000-05-29  Jim Meyering  <meyering@lucent.com>
73588
73589         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73590         mounts with the `ignore' attribute.  Based on a patch from
73591         Mark D. Roth.
73592
73593 2000-05-28  Jim Meyering  <meyering@lucent.com>
73594
73595         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73596         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73597         * m4/stat.m4: Likewise.
73598         * m4/lstat.m4: Likewise.
73599         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73600
73601         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73602         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73603
73604 2000-05-26  Jim Meyering  <meyering@lucent.com>
73605
73606         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73607
73608 2000-05-24  Jim Meyering  <meyering@lucent.com>
73609
73610         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73611         autoconf requires that.
73612         * m4/lib-check.m4: Likewise.
73613         * m4/jm-macros.m4: Likewise.
73614         * m4/strftime.m4: Likewise.
73615
73616         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73617         AC_CHECK_DECLS, now that autoconf requires that.
73618
73619 2000-05-22  Jim Meyering  <meyering@lucent.com>
73620
73621         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73622         * m4/lstat.m4: Likewise.
73623
73624 2000-05-22  Jim Meyering  <meyering@lucent.com>
73625
73626         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73627
73628 2000-05-20  Jim Meyering  <meyering@lucent.com>
73629
73630         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73631         (jm_PREREQ): Use it.
73632
73633 2000-05-18  Jim Meyering  <meyering@lucent.com>
73634
73635         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73636         back, too, since it may have been modified by allocate_entry.
73637         (hash_delete): Rewrite to use neither the assignment operator
73638         nor the comma operator in an if-expression.
73639
73640 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73641
73642         * lib/closeout.c:
73643         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73644         Remove; no longer needed.
73645         "quotearg.h": Add include.
73646         (file_name): Do not bother to explicitly initialize to NULL; it's less
73647         efficient on some hosts.
73648         (close_stdout_status): Remove test as to whether stdout was already
73649         closed; it breaks for the case "echo x | sort >&-".
73650         Quote file name colons.
73651         Do not assume that _("write error") lacks format strings.
73652
73653 2000-05-15  Jim Meyering  <meyering@lucent.com>
73654
73655         * lib/version-etc.c (version_etc_copyright): Update the copyright
73656         string used in all --version output.
73657
73658 2000-05-14  Jim Meyering  <meyering@lucent.com>
73659
73660         * lib/closeout.c (close_stdout_set_file_name): New function.
73661         (close_stdout_status): Use new file-scoped global.
73662         Return right away if fstat says the stdout file descriptor is invalid.
73663         * lib/closeout.h (close_stdout_set_file_name): Declare.
73664
73665 2000-05-10  Jim Meyering  <meyering@lucent.com>
73666
73667         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73668         (close_stdout_set_status): New function.
73669         * lib/closeout.h (close_stdout_set_status): Declare.
73670
73671 2000-05-09  Jim Meyering  <meyering@lucent.com>
73672
73673         * m4/gettext.m4: Rename this...
73674         * m4/libintl.m4: ...to this.
73675
73676 2000-05-08  Jim Meyering  <meyering@lucent.com>
73677
73678         * lib/long-options.c: Don't include closeout.h.
73679         (parse_long_options): Don't call close_stdout for --version.
73680
73681 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73682
73683         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73684         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73685         2.1.3 bug.  This avoids a clash when files like regex.c define
73686         _GNU_SOURCE.
73687
73688 2000-05-06  Jim Meyering  <meyering@lucent.com>
73689
73690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73691         (AC_REPLACE_FUNCS): Add strnlen.
73692
73693         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73694         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73695
73696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73697         AC_SEARCH_LIBS call for nanosleep.
73698         (LIB_NANOSLEEP): Set and AC_SUBST.
73699
73700 2000-05-06  Jim Meyering  <meyering@lucent.com>
73701
73702         * lib/strnlen.c: Undefine __strnlen and strnlen.
73703         [!weak_alias]: Define __strnlen to strnlen.
73704
73705         * lib/atexit.c: New file, from libiberty.
73706
73707 2000-05-06  Jim Meyering  <meyering@lucent.com>
73708
73709         * lib/closeout.c (close_stdout_status): Also check for errors on the
73710         stderr stream.
73711
73712 2000-05-05  Jim Meyering  <meyering@lucent.com>
73713
73714         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73715         AC_SEARCH_LIBS call for clock_gettime.
73716         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73717
73718         * m4/search-libs.m4: Update from autoconf.
73719
73720         su doesn't work on Solaris 2.6.
73721         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73722         <shadow.h>.  Reported by Dragos Harabor.
73723
73724 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73725
73726         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73727         memcpy instead of xmalloc, xrealloc, path_concat.
73728         (locale_charset): Treat empty environment variables as absent.
73729         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73730
73731 2000-05-04  Jim Meyering  <meyering@lucent.com>
73732
73733         * lib/getopt.c: Update from glibc.
73734         * lib/obstack.c: Likewise.
73735         * lib/obstack.h: Likewise.
73736         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73737         file
73738
73739         * lib/regex.h: Likewise.
73740         * lib/strndup.c: Likewise.
73741         * lib/strnlen.c: New file, from glibc.
73742
73743 2000-05-03  Jim Meyering  <meyering@lucent.com>
73744
73745         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73746
73747 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73748
73749         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73750         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73751         compile-time test, rather than inspecting host and OS, to
73752         decide whether to define _LARGEFILE_SOURCE.
73753
73754 2000-05-01  Jim Meyering  <meyering@lucent.com>
73755
73756         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73757
73758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73759         Based on a patch from Bruno Haible.
73760
73761 2000-05-01  Jim Meyering  <meyering@lucent.com>
73762
73763         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73764
73765 2000-04-29  Jim Meyering  <meyering@lucent.com>
73766
73767         * lib/path-concat.c: Declare strdup only if it's not defined.
73768         * lib/canon-host.c: Likewise.
73769
73770 2000-04-28  Jim Meyering  <meyering@lucent.com>
73771
73772         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73773         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73774         is included first, then limits.h is included by locale.h by libintl.h.
73775         From John David Anglin.
73776
73777 2000-04-25  Jim Meyering  <meyering@lucent.com>
73778
73779         * lib/makepath.c (S_IRWXUGO): Define.
73780         (make_path): Always perform explicit chmod if MODE specifies any
73781         of the `special' permission bits.  Prompted by a bug report against
73782         install from Mate Wierdl and Joost van Baal.
73783
73784 2000-04-18  Jim Meyering  <meyering@lucent.com>
73785
73786         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73787         (jm_PREREQ): Use it.
73788
73789 2000-04-18  Jim Meyering  <meyering@lucent.com>
73790
73791         * lib/README: New file.
73792
73793         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73794         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73795
73796 2000-04-17  Jim Meyering  <meyering@lucent.com>
73797
73798         Get it right :-)
73799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73800         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73801         Suggestion from Akim Demaille.
73802
73803 2000-04-17  Jim Meyering  <meyering@lucent.com>
73804
73805         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73806         the definition of it to rpl_strftime also defined-away the system's
73807         declaration.
73808
73809 2000-04-15  Jim Meyering  <meyering@lucent.com>
73810
73811         Use `C' to denote so-called `contiguous' files, the same way
73812         that tar does.
73813         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73814         (ftypelet): Use S_ISCTG.
73815         From Michael Deutschmann.
73816
73817 2000-04-14  Jim Meyering  <meyering@lucent.com>
73818
73819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73820         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73821         clobbered.
73822
73823 2000-04-14  Jim Meyering  <meyering@lucent.com>
73824
73825         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73826
73827 2000-04-13  Jim Meyering  <meyering@lucent.com>
73828
73829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73830         AH_VERBATIM to insert required #ifndef into config.h.in.
73831         Suggestion from Akim Demaille.
73832
73833 2000-04-12  Jim Meyering  <meyering@lucent.com>
73834
73835         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73836         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73837         Christian Krackowizer.
73838
73839         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73840         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73841         (AC_SYS_LARGEFILE): Require.
73842         (AM_C_PROTOTYPES): Require.
73843
73844 2000-04-08  Jim Meyering  <meyering@lucent.com>
73845
73846         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73847         names don't conflict.  Reported by Eli Zaretskii.
73848
73849 2000-04-07  Jim Meyering  <meyering@lucent.com>
73850
73851         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73852         sys/types.h, to work around system header problems on AIX 3.2.5.
73853         From Bruno Haible.
73854
73855 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73856
73857         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73858         bug.  Deal with the different error behavior of Irix iconv.
73859
73860 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73861
73862         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73863         IRIX if the installer said otherwise.
73864
73865 2000-04-05  Jim Meyering  <meyering@lucent.com>
73866
73867         Portability tweaks required for ultrix4.3.
73868         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73869         (jm_CHECK_DECLS): Add getutent to the list of functions.
73870         (_jm_DECL_HEADERS): Add utmpx.h.
73871         From John David Anglin.
73872
73873         * m4/strftime.m4: Back out the 2000-04-02 change.
73874         Instead of that change, simply undefine putenv in the test program.
73875
73876 2000-04-05  Jim Meyering  <meyering@lucent.com>
73877
73878         Portability tweaks required for ultrix4.3.
73879         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73880         getutent.
73881         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73882         * lib/canon-host.c: Declare strdup.
73883         * lib/path-concat.c: Likewise.
73884         From John David Anglin.
73885
73886 2000-04-04  Jim Meyering  <meyering@lucent.com>
73887
73888         Be more DOS 8.3-friendly.
73889         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73890         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73891         * lib/Makefile.am: Reflect renaming.
73892         Reported by Eli Zaretskii.
73893
73894         Use a temporary file name that won't clash with `charset.alias'
73895         in the DOS 8.3 name space.
73896         * lib/Makefile.am (charset_tmp): Define.
73897         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73898         (uninstall-local): Likewise.
73899         Reported by Eli Zaretskii.
73900
73901 2000-04-03  Jim Meyering  <meyering@lucent.com>
73902
73903         * m4/gettext.m4: Fix typo in comment.
73904
73905         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73906         textutils/configure.in).  Suggestion from Paul Eggert.
73907         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73908
73909 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73910
73911         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73912         variable in the shell rather than using putenv, which isn't
73913         portable.  This avoids the configure-time inter-test dependency
73914         on the potentially-renamed putenv function.
73915
73916 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73917
73918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73919         before checking struct stat.st_blksize, so that
73920         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73921
73922 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73923
73924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73925         since strftime.c uses HAVE_STRFTIME to decide whether to use
73926         the underlying strftime.
73927
73928 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73929
73930         * lib/time/strftime.c (my_strftime): Make sure we call the system
73931         strftime, not ourselves, when invoking the underlying strftime.
73932
73933 2000-03-24  Jim Meyering  <meyering@lucent.com>
73934
73935         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73936         (charset_alias): Define.
73937         (install-exec-local): Factor out common code.
73938         (uninstall-local): Split lines longer than 80.
73939         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73940         (SUFFIXES): Define.
73941         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73942         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73943
73944 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73945
73946         * lib/config.charset: Output a line containing "Packages using this
73947         file".
73948         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73949         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73950         ref-del.sed): New rules.
73951
73952 2000-03-17  Jim Meyering  <meyering@lucent.com>
73953
73954         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73955         Otherwise, include <strings.h>
73956
73957 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73958
73959         * lib/unicodeio.c (utf8_wctomb): New function.
73960         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73961         format instead of in UCS-4 with platform dependent endianness.
73962
73963 2000-03-10  Jim Meyering  <meyering@lucent.com>
73964
73965         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73966         From Marco Franzen.
73967
73968 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73969
73970         * lib/savedir.c (savedir): Work even if directory size is
73971         negative; this can happen with some screwy NFS configurations.
73972
73973 2000-03-06  Jim Meyering  <meyering@lucent.com>
73974
73975         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73976         if it's NULL (because we ran out of memory).  From Bruno Haible.
73977
73978 2000-03-05  Jim Meyering  <meyering@lucent.com>
73979
73980         * lib/localcharset.c ("path-concat.h"): Include.
73981         (get_charset_aliases): Use path_concat instead of ANSI string
73982         concatenation.
73983
73984         * lib/unicodeio.h (PARAMS): Define.
73985         Use it to guard prototype.
73986
73987 2000-03-04  Jim Meyering  <meyering@lucent.com>
73988
73989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73990         for lib/localcharset.c.
73991
73992 2000-03-04  Jim Meyering  <meyering@lucent.com>
73993
73994         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73995         installing into it.
73996         (uninstall-local): Uncomment this rule so `make distcheck' works
73997         once again.
73998
73999         * lib/unicodeio.c (<errno.h>): Include it.
74000         (errno): Declare if not defined.
74001
74002         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74003
74004         * lib/config.charset: New version, incorporating remarks from a linux
74005         i18n mailing list.  From Bruno Haible.
74006
74007 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74008
74009         * m4/codeset.m4: New file.
74010         * m4/iconv.m4: New file.
74011         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74012
74013 2000-03-03  Jim Meyering  <meyering@lucent.com>
74014
74015         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74016
74017 2000-03-02  Jim Meyering  <meyering@lucent.com>
74018
74019         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74020         the messages come out on separate lines.
74021
74022         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74023         rather than jm_CHECK_DECLARATIONS.
74024         * m4/decl.m4: Remove now-unused file.
74025
74026         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74027         geteuid.
74028
74029 2000-03-02  Jim Meyering  <meyering@lucent.com>
74030
74031         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74032
74033 2000-03-01  Jim Meyering  <meyering@lucent.com>
74034
74035         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74036         * lib/unicodeio.c: Likewise.
74037
74038 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74039
74040         * lib/config.charset: New file.
74041         * lib/localcharset.c: New file.
74042         * lib/unicodeio.h, lib/unicodeio.c: New files.
74043         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74044         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74045         (noinst_HEADERS): Add unicodeio.h.
74046         (all-local, install-exec-local, charset.alias): New targets.
74047
74048 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74049
74050         * lib/quotearg.c (ALERT_CHAR): New macro.
74051         (quotearg_buffer_restyled): Use it.
74052
74053 2000-02-27  Jim Meyering  <meyering@lucent.com>
74054
74055         * m4/check-decl.m4: Add getenv to the list.
74056
74057 2000-02-27  Jim Meyering  <meyering@lucent.com>
74058
74059         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74060         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74061
74062         * lib/backupfile.c: Guard inclusion of stdlib.h with
74063         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74064         Declare malloc if needed.
74065
74066         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74067         `#ifndef HAVE_DECL..'
74068         now that autoconf always defines the HAVE_DECL_ symbols.
74069         * lib/human.c: Likewise.
74070         * lib/same.c: Likewise.
74071         * lib/strtoumax.c: Likewise.
74072
74073         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74074         declaration check was not run.
74075         * lib/hash.c: Likewise.
74076         * lib/human.c: Likewise.
74077         * lib/same.c: Likewise.
74078         * lib/strtoumax.c: Likewise.
74079
74080         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74081         `.', then first look up the entire `.'-containing string as a login
74082         name.
74083
74084 2000-02-23  Jim Meyering  <meyering@lucent.com>
74085
74086         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74087         in place of my hack.
74088
74089 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74090
74091         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74092         (textint): New typedef.
74093         (parser_control): Member year changed from int to textint.
74094         All uses changed.
74095         (YYSTYPE): Removed; replaced by %union with int and textint members.
74096         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74097         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74098         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74099         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74100         (date, number, to_year): Use width of number in digits, not its value,
74101         to determine whether it's a 2-digit year, or a 2-digit time.
74102         (yylex): Store number of digits of numeric tokens.
74103         Reported by John Kendall.
74104
74105         (parser_control): Changed from struct parser_control to typedef (for
74106         consistency).  All uses changed.
74107
74108         (tID): Removed; not used.
74109         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74110
74111 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74112
74113         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74114         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74115
74116 2000-02-12  Jim Meyering  <meyering@lucent.com>
74117
74118         * lib/userspec.c (ISDIGIT): Define it.
74119         (isdigit): Remove definition.
74120         (is_number): Use ISDIGIT, not isdigit.
74121         <libintl.h>: Include.
74122         (_ and N_): Define.
74123         (parse_user_spec): Mark translatable strings.
74124
74125 2000-02-10  Jim Meyering  <meyering@lucent.com>
74126
74127         With these changes, nanosleep.[ch] are finally enough like the other
74128         lib/* replacement files to compile on a few more losing systems.
74129
74130         * lib/nanosleep.h: Don't include config.h.
74131         Remove prototype from declaration of nanosleep.
74132         (PARAMS): Remove now-unneeded definition.
74133         * lib/nanosleep.c: #undef nanosleep.
74134         (rpl_nanosleep): Rename from nanosleep.
74135
74136 2000-02-10  Jim Meyering  <meyering@lucent.com>
74137
74138         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74139         gnu_nanosleep to rpl_nanosleep.
74140
74141 2000-02-09  Jim Meyering  <meyering@lucent.com>
74142
74143         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74144         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74145
74146 2000-02-08  Akim Demaille  <akim@epita.fr>
74147
74148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74149         `[' and `]' and remove uses of `changequote'.
74150         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74151         (AC_SYS_LARGEFILE): Likewise.
74152         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74153         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74154         of changequote.
74155         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74156         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74157         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74158         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74159
74160 2000-02-05  Jim Meyering  <meyering@lucent.com>
74161
74162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74163         Remove explicit use of AC_HEADER_TIME.  It is required by
74164         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74165         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74166         in autoconf whereby the expansion of the latter ended up preceding
74167         the expansion of its prerequisite, AC_HEADER_TIME.
74168         Reported by Volker Borchert.
74169
74170 2000-02-03  Jim Meyering  <meyering@lucent.com>
74171
74172         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74173
74174 2000-02-03  Jim Meyering  <meyering@lucent.com>
74175
74176         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74177         rather than with `#if HAVE_UTMPNAME'.
74178
74179 2000-02-02  Jim Meyering  <meyering@lucent.com>
74180
74181         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74182         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74183         Reported by Eli Zaretskii.
74184
74185 2000-02-01  Jim Meyering  <meyering@lucent.com>
74186
74187         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74188
74189 2000-01-31  Jim Meyering  <meyering@lucent.com>
74190
74191         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74192         functions.  Add the time.h and sys/time.h headers along with the
74193         AC_REQUIRE'ment of AC_HEADER_TIME.
74194
74195 2000-01-31  Jim Meyering  <meyering@lucent.com>
74196
74197         * lib/nanosleep.h (nanosleep): Guard declaration with
74198         `#if ! HAVE_DECL_NANOSLEEP'.
74199         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74200         the declaration in that vendor's sys/timers.h.
74201         Reported by Christian Krackowizer.
74202
74203         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74204         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74205         (ISPRINT): Likewise.
74206         Reported by Tom Tromey.
74207
74208 2000-01-30  Jim Meyering  <meyering@lucent.com>
74209
74210         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74211
74212         * m4/prereq.m4 (utmp_includes): Define.
74213         Check for ut_user and ut_name members in both struct utmpx
74214         and struct utmp.
74215
74216 2000-01-30  Jim Meyering  <meyering@lucent.com>
74217
74218         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74219         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74220         header files where only utmpx.ut_user is declared.
74221
74222         * lib/readutmp.h (UT_USER): Define.
74223
74224 2000-01-29  Jim Meyering  <meyering@lucent.com>
74225
74226         * m4/lib-check.m4: New file containing library-related checks from
74227         fileutils and sh-utils (textutils had none).
74228
74229 2000-01-28  Jim Meyering  <meyering@lucent.com>
74230
74231         * m4/perl.m4: Change format of warning message to look more like that
74232         from the missing script.  Suggestion from François Pinard.
74233
74234 2000-01-25  Jim Meyering  <meyering@lucent.com>
74235
74236         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74237         well as time.h in the compile check.
74238         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74239         Fix typo in cross-compiling case: s/yes/no/.
74240
74241 2000-01-23  Jim Meyering  <meyering@lucent.com>
74242
74243         * m4/jm-macros.m4: Move df-related tests here from
74244         fileutils/configure.in
74245
74246         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74247         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74248
74249         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74250         s/space/ac_fsusage_space/.
74251         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74252
74253         * m4/ftruncate.m4: New file (derived from part of
74254         fileutils/configure.in).
74255         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74256         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74257
74258         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74259         AC_SUBST these here, rather than just in sh-util/configure.in, so
74260         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74261         all the same.
74262         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74263         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74264         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74265         (AC_SUBST(POW_LIBM)): Likewise.
74266         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74267
74268 2000-01-23  Jim Meyering  <meyering@lucent.com>
74269
74270         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74271         obstack.c.
74272
74273 2000-01-22  Jim Meyering  <meyering@lucent.com>
74274
74275         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74276
74277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74278
74279         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74280         configure.in
74281         (AC_CHECK_HEADERS): Likewise for sh-utils.
74282         (AC_CHECK_HEADERS): Likewise for textutils.
74283         Merge the three lists of headers.
74284
74285         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74286         from fileutils' configure.in.
74287
74288         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74289         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74290         check-decl.m4.
74291
74292         * m4/check-decl.m4: Use #if rather than #ifdef.
74293         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74294         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74295         (_jm_DECL_HEADERS): Define new function.
74296         (jm_CHECK_DECLARATIONS): Require it.
74297
74298 2000-01-22  Jim Meyering  <meyering@lucent.com>
74299
74300         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74301         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74302         Required for some AIX systems.  Reported by Christian Krackowizer.
74303         [TESTING] (main): New function.
74304
74305         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74306         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74307         letters.
74308
74309         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74310         iswprint.
74311
74312         * lib/strverscmp.c (ISDIGIT): Define.
74313         (strverscmp): Use ISDIGIT, not isdigit.
74314
74315 2000-01-19  Jim Meyering  <meyering@lucent.com>
74316
74317         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74318         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74319         defines `struct timespec' in <sys/time.h>
74320
74321         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74322         Thanks to Akim for explaining.
74323
74324 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74325
74326         * lib/nanosleep.c (nanosleep):
74327         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74328         POSIX.1 doesn't require SA_INTERRUPT and some systems
74329         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74330         it's been part of POSIX.1 since day 1 (in 1988).
74331
74332 2000-01-17  Jim Meyering  <meyering@lucent.com>
74333
74334         * lib/interlock: Remove unused file.  Reported by François Pinard.
74335
74336 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74337
74338         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74339         alert, backslash, formfeed, and vertical tab unnecessarily in
74340         shell quoting style.
74341
74342 2000-01-16  Jim Meyering  <meyering@lucent.com>
74343
74344         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74345         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74346         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74347         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74348
74349 2000-01-16  Jim Meyering  <meyering@lucent.com>
74350
74351         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74352         because the latter didn't work.
74353
74354 2000-01-15  Jim Meyering  <meyering@lucent.com>
74355
74356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74357         (AC_REPLACE_FUNCS): Add memcpy and memset.
74358         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74359         Add strpbrk.
74360         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74361
74362 2000-01-12  Jim Meyering  <meyering@lucent.com>
74363
74364         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74365         (jm_PREREQ): Use it.
74366         (jm_PREREQ_READUTMP): New macro.
74367         (jm_PREREQ): Use it.
74368
74369 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74370
74371         Quote multibyte characters correctly.
74372         * m4/c-bs-a.m4: New file.
74373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74374         (jm_PREREQ): Use it.
74375
74376 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74377
74378         * m4/uintmax_t.m4: Port to autoconf 2.13.
74379
74380 2000-01-08  Jim Meyering  <meyering@ascend.com>
74381
74382         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74383         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74384
74385 2000-01-04  Jim Meyering  <meyering@ascend.com>
74386
74387         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74388         jm_STRUCT_DIRENT_D_TYPE.
74389         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74390         jm_STRUCT_DIRENT_D_INO.
74391         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74392         jm_STRUCT_UTIMBUF.
74393         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74394         renamings.
74395         * m4/utime.m4: Likewise.
74396
74397         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74398         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74399
74400 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74401
74402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74403         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74404
74405 2000-01-02  Jim Meyering  <meyering@ascend.com>
74406
74407         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74408         remember if this is necessary.
74409
74410 1999-12-26  Jim Meyering  <meyering@ascend.com>
74411
74412         * m4/jm-macros.m4: Use it here.
74413         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74414
74415 1999-12-23  Jim Meyering  <meyering@ascend.com>
74416
74417         * m4/jm-macros.m4: Check for clock_gettime (moved from
74418         fileutils/configure.in)
74419         Check for gettimeofday.
74420
74421 1999-12-20  Jim Meyering  <meyering@ascend.com>
74422
74423         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74424         autoconf-2.14a-1999-12-20.
74425
74426 1999-12-19  Jim Meyering  <meyering@ascend.com>
74427
74428         * m4/lstat-slash.m4: New file.
74429         * m4/jm-macros.m4: Use the new macro:
74430         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74431
74432 1999-12-07  Jim Meyering  <meyering@ascend.com>
74433
74434         * m4/perl.m4: Require that File::Compare be available, too.
74435         Too many systems seem to lack it.
74436
74437         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74438         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74439
74440 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74441
74442         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74443         problem with the QNX 4.25 shell, which doesn't propagate exit
74444         status of failed commands inside shell assignments.
74445
74446 1999-11-17  Jim Meyering  <meyering@ascend.com>
74447
74448         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74449
74450 1999-11-07  Jim Meyering  <meyering@ascend.com>
74451
74452         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74453
74454 1999-11-06  Jim Meyering  <meyering@ascend.com>
74455
74456         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74457         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74458
74459 1999-11-05  Jim Meyering  <meyering@ascend.com>
74460
74461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74462         configure.in of textutils, fileutils, and sh-utils into this one
74463         (shared between those packages) file.
74464         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74465         AC_STRUCT_ST_BLKSIZE.
74466
74467 1999-11-03  Jim Meyering  <meyering@ascend.com>
74468
74469         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74470         of AC_CHECK_TYPE checks includes unistd.h.
74471         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74472         Suggestion from Akim Demaille.
74473
74474 1999-10-30  Jim Meyering  <meyering@ascend.com>
74475
74476         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74477         m4-quoted string.
74478         * m4/ls-mntd-fs.m4: Likewise.
74479         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74480         * m4/jm-winsz1.m4: Likewise.
74481
74482         * m4/const.m4: Remove file, since the fix made it into the experimental
74483         version of autoconf.
74484         * m4/mktime.m4: Likewise.
74485
74486         * m4/check-type.m4: Remove file, now that the latest version of
74487         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74488
74489         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74490         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74491         AC_CHECK_TYPE.
74492
74493 1999-10-04  Jim Meyering  <meyering@ascend.com>
74494
74495         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74496
74497 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74498
74499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74500         2.95.1 bug with HP-UX 10.20.
74501
74502 1999-09-17  Jim Meyering  <meyering@ascend.com>
74503
74504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74505         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74506         due to missing strdup (against sh-utils-2.0).
74507
74508 1999-08-29  Jim Meyering  <meyering@ascend.com>
74509
74510         * m4/jm-macros.m4: Require jm_BISON.
74511         * m4/bison.m4: New file.
74512
74513 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74514
74515         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74516         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74517
74518 1999-08-05  Jim Meyering  <meyering@ascend.com>
74519
74520         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74521         to avoid conflicts with `conftest' on 8+3 filesystems.
74522         Suggestion from Eli Zaretskii.
74523
74524 1999-08-04  Jim Meyering  <meyering@ascend.com>
74525
74526         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74527         fileutils and sh-utils (textutils's getline test was inadequate).
74528         (AM_FUNC_GETLINE): Run this test.
74529         (AC_CHECK_FUNCS): Check for getdelim.
74530         Reported by Bob Proulx.
74531
74532 1999-08-02  Jim Meyering  <meyering@ascend.com>
74533
74534         * m4/jm-macros.m4: Add a comment.
74535
74536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74537
74538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74539         <inttypes.h> defines strtoumax as a macro (and not as a
74540         function).
74541
74542 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74543
74544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74545         that we can shift, multiply and divide unsigned long long
74546         values; Ultrix cc can't do it.
74547
74548 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74549
74550         * m4/mktime.m4: New file, which is a preview of what should appear
74551         in the next public autoconf release.
74552
74553 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74554
74555         * m4/lfs.m4: Remove this file.
74556         * m4/largefile.m4: New file.  It contains the old contents of
74557         lfs.m4, except that all names with prefix AC_LFS have been
74558         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74559         compatible with future autoconf versions.  Also, some minor m4
74560         quoting problems have been fixed.
74561
74562 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74563
74564         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74565         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74566         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74567         and simplify the shell code.
74568
74569 1999-08-01  Jim Meyering  <meyering@ascend.com>
74570
74571         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74572         m4.
74573
74574 1999-07-20  Jim Meyering  <meyering@ascend.com>
74575
74576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74577
74578 1999-07-15  Jim Meyering  <meyering@ascend.com>
74579
74580         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74581
74582 1999-05-22  Jim Meyering  <meyering@ascend.com>
74583
74584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74585
74586 1999-05-20  Jim Meyering  <meyering@ascend.com>
74587
74588         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74589         Add a colon after each `then' in case $4 is empty.
74590
74591 1999-05-16  Jim Meyering  <meyering@ascend.com>
74592
74593         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74594
74595 1999-05-10  Jim Meyering  <meyering@ascend.com>
74596
74597         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74598
74599         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74600         AC_FUNC_MKTIME.
74601
74602 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74603
74604         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74605
74606 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74607
74608         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74609         not CPPFLAGS, so that linking works correctly in IRIX.
74610
74611 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74612
74613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74614
74615 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74616
74617         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74618         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74620         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74621         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74622
74623         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74624
74625 1999-04-20  Jim Meyering  <meyering@ascend.com>
74626
74627         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74628         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74629         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74630
74631 1999-04-18  Jim Meyering  <meyering@ascend.com>
74632
74633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74634         * m4/jm-macros.m4: Use it.
74635
74636 1999-04-06  Jim Meyering  <meyering@ascend.com>
74637
74638         * m4/strftime.m4: Remove test for %f.
74639
74640 1999-03-29  Jim Meyering  <meyering@ascend.com>
74641
74642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74643         superset of the AC_TYPE_* checks in the textutils, fileutils,
74644         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74645         AC_TYPE_PID_T.
74646
74647 1999-03-28  Jim Meyering  <meyering@ascend.com>
74648
74649         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74650         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74651         replaced e.g., in the *.sh files of the sh-utils.
74652
74653 1999-03-20  Jim Meyering  <meyering@ascend.com>
74654
74655         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74656         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74657         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74658
74659 1999-03-19  Jim Meyering  <meyering@ascend.com>
74660
74661         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74662
74663 1999-03-12  Jim Meyering  <meyering@ascend.com>
74664
74665         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74666
74667 1999-03-07  Jim Meyering  <meyering@ascend.com>
74668
74669         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74670         declared.
74671
74672 1999-02-17  Jim Meyering  <meyering@ascend.com>
74673
74674         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74675         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74676
74677 1999-02-07  Jim Meyering  <meyering@ascend.com>
74678
74679         * m4/group-member.m4: New file -- extracted from sh-utils'
74680         configure.in.
74681
74682         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74683         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74684
74685 1999-02-06  Jim Meyering  <meyering@ascend.com>
74686
74687         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74688         * m4/fnmatch.m4: Likewise.
74689         * m4/getgroups.m4: Likewise.
74690         * m4/lstat.m4: Likewise.
74691         * m4/malloc.m4: Likewise.
74692         * m4/putenv.m4: Likewise.
74693         * m4/realloc.m4: Likewise.
74694         * m4/regex.m4: Likewise.
74695         * m4/stat.m4: Likewise.
74696         * m4/strftime.m4: Likewise.
74697         Suggestion from Alain Magloire.
74698
74699         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74700         * m4/fnmatch.m4: Likewise.
74701         * m4/getgroups.m4: Likewise.
74702         * m4/getline.m4: Likewise.
74703         * m4/lstat.m4: Likewise.
74704         * m4/malloc.m4: Likewise.
74705         * m4/memcmp.m4: Likewise.
74706         * m4/putenv.m4: Likewise.
74707         * m4/realloc.m4: Likewise.
74708         * m4/regex.m4: Likewise.
74709         * m4/stat.m4: Likewise.
74710         * m4/strftime.m4: Likewise.
74711         Suggestion from Alain Magloire.
74712
74713         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74714         an argument.
74715
74716         * m4/regex.m4: Add a run-time Test for proper operation of
74717         re_compile_pattern.
74718
74719 1999-01-31  Jim Meyering  <meyering@ascend.com>
74720
74721         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74722
74723 1999-01-30  Jim Meyering  <meyering@ascend.com>
74724
74725         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74726
74727         * m4/jm-mktime.m4: Make this a wrapper around the official
74728         AM_FUNC_MKTIME rather than my private copy, now that the official one
74729         is up to date.
74730         * m4/mktime.m4: Remove file.
74731
74732         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74733         * m4/uptime.m4: Likewise.
74734         * m4/uintmax_t.m4: Likewise.
74735
74736 1999-01-28  Jim Meyering  <meyering@ascend.com>
74737
74738         * m4/jm-macros.m4: Use jm_AFS.
74739         * m4/afs.m4: New file (from fileutils' configure.in).
74740
74741         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74742         * m4/chown.m4: Likewise.
74743         * m4/d-ino.m4: Likewise.
74744         * m4/d-type.m4: Likewise.
74745         * m4/fnmatch.m4: Likewise.
74746         * m4/getgroups.m4: Likewise.
74747         * m4/gettext.m4: Likewise.
74748         * m4/jm-mktime.m4: Likewise.
74749         * m4/jm-winsz2.m4: Likewise.
74750         * m4/lcmessage.m4: Likewise.
74751         * m4/ls-mntd-fs.m4: Likewise.
74752         * m4/malloc.m4: Likewise.
74753         * m4/memcmp.m4: Likewise.
74754         * m4/putenv.m4: Likewise.
74755         * m4/realloc.m4: Likewise.
74756         * m4/st_mtim.m4: Likewise.
74757         * m4/strftime.m4: Likewise.
74758
74759 1999-01-16  Jim Meyering  <meyering@ascend.com>
74760
74761         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74762         (ARGMATCH_DIE_DECL): Define.
74763
74764 1999-01-12  Jim Meyering  <meyering@ascend.com>
74765
74766         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74767         Reported by Lars Hecking.
74768
74769 1999-01-10  Jim Meyering  <meyering@ascend.com>
74770
74771         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74772         gross kludge.
74773         * m4/inttypes_h.m4: Likewise.
74774         * m4/lstat.m4: Likewise.
74775         * m4/malloc.m4: Likewise.
74776         * m4/readdir.m4: Likewise.
74777         * m4/realloc.m4: Likewise.
74778         * m4/st_dm_mode.m4: Likewise.
74779         * m4/stat.m4: Likewise.
74780         * m4/utimbuf.m4: Likewise.
74781         * m4/utimes.m4: Likewise.
74782
74783         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74784         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74785         comments in config.h.in are meaningful.
74786
74787         * m4/jm-macros.m4: Require autoconf-2.13 here.
74788
74789         * m4/regex.m4: By default, don't use the included regex.c on systems
74790         with glibc 2.  Suggestion from Uli Drepper.
74791
74792 1999-01-02  Jim Meyering  <meyering@ascend.com>
74793
74794         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74795
74796 1998-12-18  Jim Meyering  <meyering@ascend.com>
74797
74798         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74799         Based on a suggestion from Lars Hecking.
74800
74801 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74802
74803         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74804
74805 1998-11-16  Jim Meyering  <meyering@ascend.com>
74806
74807         * m4/lfs.m4: Double-quote the `uname...` expression.
74808
74809 1998-11-14  Jim Meyering  <meyering@ascend.com>
74810
74811         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74812         * m4/stat.m4: Likewise.
74813
74814 1998-11-03  Jim Meyering  <meyering@ascend.com>
74815
74816         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74817         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74818
74819 1998-10-18  Jim Meyering  <meyering@ascend.com>
74820
74821         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74822
74823 1998-10-17  Jim Meyering  <meyering@ascend.com>
74824
74825         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74826         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74827         calls for those previously hard-coded headers.  Instead, take a new
74828         parameter.
74829         (jm_CHECK_DECLARATIONS): Reflect interface change.
74830         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74831         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74832
74833         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74834
74835 1998-10-14  Jim Meyering  <meyering@ascend.com>
74836
74837         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74838         instead of "TZ=America/Vancouver".  From Paul Eggert.
74839
74840 1998-10-11  Jim Meyering  <meyering@ascend.com>
74841
74842         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74843         This adds a test for a recently added compatibility fix for mktime.c.
74844         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74845
74846 1998-09-27  Jim Meyering  <meyering@ascend.com>
74847
74848         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74849
74850         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74851         ../configure.in, including a change from Gordon Matzigkeit to allow
74852         cross-compiling for the Hurd.
74853
74854         * m4/glibc.m4: New file/macro to test for the GNU C Library
74855         versions 1 and 2.  From Gordon Matzigkeit.
74856         Indent.
74857
74858 1998-09-21  Jim Meyering  <meyering@ascend.com>
74859
74860         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74861
74862 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74863
74864         Port nanosecond-resolution times to UnixWare 2.1.2 and
74865         pedantic Solaris 2.6.
74866
74867         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74868         AC_STRUCT_ST_MTIM.
74869         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74870         Generate name of ns member, instead of just 1 or undef.
74871         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74872
74873 1998-08-15  Jim Meyering  <meyering@ascend.com>
74874
74875         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74876         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74877         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74878         instead of jm_TYPE_SSIZE_T.
74879
74880 1998-08-12  Jim Meyering  <meyering@ascend.com>
74881
74882         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74883
74884 1998-08-02  Jim Meyering  <meyering@ascend.com>
74885
74886         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74887         in acconfig.h manually.
74888
74889 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74890
74891         * m4/st_mtim.m4: New file.
74892
74893 1998-07-28  Jim Meyering  <meyering@ascend.com>
74894
74895         * m4/utimes.m4: Undef stat.
74896
74897 1998-07-25  Jim Meyering  <meyering@ascend.com>
74898
74899         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74900         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74901
74902 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74903
74904         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74905         uid and gid actually remain unchanged.
74906
74907 1998-07-07  Jim Meyering  <meyering@ascend.com>
74908
74909         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74910
74911 1998-07-04  Jim Meyering  <meyering@ascend.com>
74912
74913         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74914         to prove that this macro can be used in packages without regex.c.
74915
74916 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74917
74918         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74919         is to be used.
74920
74921 1998-07-03  Jim Meyering  <meyering@ascend.com>
74922
74923         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74924
74925         * m4/gettext.m4: New file -- from gettext-0.10.35.
74926         * m4/lcmessage.m4: Likewise.
74927         * m4/progtest.m4: Likewise.
74928
74929         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74930         * m4/jm-macros.m4: Require the new macro.
74931
74932 1998-06-29  Jim Meyering  <meyering@ascend.com>
74933
74934         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74935         for the definition of NGROUPS (used in a system header included
74936         by sys/mount.h).
74937
74938 1998-06-28  Jim Meyering  <meyering@ascend.com>
74939
74940         * m4/ls-mntd-fs.m4: New file.
74941         * m4/fstypename.m4: New file.
74942
74943         * m4/jm-macros.m4: Require the new macro.
74944         * m4/jm-glibc-io.m4: New file.
74945
74946 1998-05-19  Jim Meyering  <meyering@ascend.com>
74947
74948         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74949         * m4/lchown.m4: New file.
74950
74951         * m4/Makefile.am.in: New file.
74952         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74953
74954 1998-05-14  Jim Meyering  <meyering@ascend.com>
74955
74956         * m4/Makefile.am (EXTRA_DIST): Add them.
74957         * m4/jm-macros.m4: New file.
74958         * m4/utimbuf.m4: New file.
74959
74960 1998-05-12  Jim Meyering  <meyering@ascend.com>
74961
74962         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74963
74964 1998-05-11  Jim Meyering  <meyering@ascend.com>
74965
74966         * m4/isc-posix.m4: New file.
74967
74968 1998-05-10  Jim Meyering  <meyering@ascend.com>
74969
74970         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74971
74972 1998-05-09  Jim Meyering  <meyering@ascend.com>
74973
74974         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74975         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74976         with automake.
74977
74978         * m4/ssize_t.m4: New file.
74979         * m4/mktime.m4: Remove file -- the new automake has this now.
74980
74981 1998-04-26  Jim Meyering  <meyering@ascend.com>
74982
74983         * m4/assert.m4: New file.
74984         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74985
74986 1998-04-05  Jim Meyering  <meyering@ascend.com>
74987
74988         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74989         (jm_PREREQ): Use it here.
74990
74991 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74992
74993         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74994         in acconfig.h.
74995
74996 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74997
74998         * m4/prereq.m4: New file.
74999         * m4/error.m4: New file.
75000         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75001
75002 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75003
75004         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75005         cache-check for the same variable -- that defeated the purpose of
75006         the test; the test program was never run.  This was a problem only
75007         on systems with losing getline functions -- HP-UX 10.20 is one.
75008         Reported by Bjorn Helgaas.
75009
75010 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75011
75012         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75013
75014 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75015
75016         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75017
75018         * m4/const.m4: New file.  Use an initializer in this declaration
75019         typedef int charset[2]; const charset x;
75020         Reported by Bob Glickstein.
75021
75022 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75023
75024         * m4/chown.m4: Fix reversed types on -1 args to chown.
75025         From Kaveh Ghazi.
75026
75027 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75028
75029         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75030         Add lseek and memchr.
75031
75032         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75033         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75034         have a 20-character limit on names.
75035
75036 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75037
75038         * m4/inttypes_h.m4: New file.
75039         * m4/uintmax_t.m4: New file.
75040         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75041
75042
75043         -----
75044
75045         Local Variables:
75046         coding: utf-8
75047         End:
75048
75049         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75050
75051         Copying and distribution of this file, with or without
75052         modification, are permitted provided the copyright notice
75053         and this notice are preserved.